Search in sources :

Example 1 with SelectedStateListDrawable

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));
}
Also used : SelectedStateListDrawable(com.yalantis.ucrop.util.SelectedStateListDrawable) ImageView(android.widget.ImageView) CropImageView(com.yalantis.ucrop.view.CropImageView) TransformImageView(com.yalantis.ucrop.view.TransformImageView) GestureCropImageView(com.yalantis.ucrop.view.GestureCropImageView)

Aggregations

ImageView (android.widget.ImageView)1 SelectedStateListDrawable (com.yalantis.ucrop.util.SelectedStateListDrawable)1 CropImageView (com.yalantis.ucrop.view.CropImageView)1 GestureCropImageView (com.yalantis.ucrop.view.GestureCropImageView)1 TransformImageView (com.yalantis.ucrop.view.TransformImageView)1