use of com.yalantis.ucrop.util.SelectedStateListDrawable in project uCrop by Yalantis.
the class UCropActivity method setupStatesWrapper.
/**
* Use {@link #mActiveWidgetColor} for color filter
*/
private void setupStatesWrapper() {
ImageView stateScaleImageView = (ImageView) findViewById(R.id.image_view_state_scale);
ImageView stateRotateImageView = (ImageView) findViewById(R.id.image_view_state_rotate);
ImageView stateAspectRatioImageView = (ImageView) findViewById(R.id.image_view_state_aspect_ratio);
stateScaleImageView.setImageDrawable(new SelectedStateListDrawable(stateScaleImageView.getDrawable(), mActiveWidgetColor));
stateRotateImageView.setImageDrawable(new SelectedStateListDrawable(stateRotateImageView.getDrawable(), mActiveWidgetColor));
stateAspectRatioImageView.setImageDrawable(new SelectedStateListDrawable(stateAspectRatioImageView.getDrawable(), mActiveWidgetColor));
}
Aggregations