picture_library_test/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java
/**
     * Select the image and animate it
     *
     * @param holder
     * @param isChecked
     */
Select the image and animate it
@param holder
@param isChecked
Select the image and animate it @param holder @param isChecked
public void selectImage(ViewHolder holder, boolean isChecked) {
        holder.tvCheck.setSelected(isChecked);
        if (isChecked) {
            holder.ivPicture.setColorFilter(ContextCompat.getColor
                    (context, R.color.picture_color_80), PorterDuff.Mode.SRC_ATOP);
        } else {
            holder.ivPicture.setColorFilter(ContextCompat.getColor
                    (context, R.color.picture_color_20), PorterDuff.Mode.SRC_ATOP);
        }
    }
public void selectImage ( ViewHolder holder , boolean isChecked ) { holder . tvCheck . setSelected ( isChecked ) ; if ( isChecked ) { holder . ivPicture . setColorFilter ( ContextCompat . getColor ( context , R . color . picture_color_80 ) , PorterDuff . Mode . SRC_ATOP ) ; } else { holder . ivPicture . setColorFilter ( ContextCompat . getColor ( context , R . color . picture_color_20 ) , PorterDuff . Mode . SRC_ATOP ) ; } }
Select the image and animate it
 @param holder
 @param isChecked
Select the image and animate it @param holder @param isChecked