@Test public void testSetColorFilter() { final Context context = RuntimeEnvironment.application; final ImageView iv = new ImageView(context); assertNull(iv.getColorFilter()); final int color = Color.CYAN; BindingAdapters.setColorFiler(iv, color); assertNotNull(iv.getColorFilter()); }
@BindingAdapter("colorFilter") public static void setColorFiler( @NonNull final ImageView imageView, @ColorInt final int color) { imageView.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); }
BindingAdapters { @BindingAdapter("colorFilter") public static void setColorFiler( @NonNull final ImageView imageView, @ColorInt final int color) { imageView.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); } }
BindingAdapters { @BindingAdapter("colorFilter") public static void setColorFiler( @NonNull final ImageView imageView, @ColorInt final int color) { imageView.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); } private  BindingAdapters(); }
BindingAdapters { @BindingAdapter("colorFilter") public static void setColorFiler( @NonNull final ImageView imageView, @ColorInt final int color) { imageView.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); } private  BindingAdapters(); @NonNull static DataBindingComponent glideBindingComponent(
            @NonNull final RequestManager requestManager); @BindingAdapter("formattedDuration") static void setFormattedDuration(
            @NonNull final TextView textView,
            final long seconds); @BindingAdapter("recyclerAdapter") static void setRecyclerAdapter(
            @NonNull final RecyclerView recyclerView,
            @Nullable final RecyclerView.Adapter<?> adapter); @BindingAdapter({"drawableTop", "tintAttr"}) static void setDrawableTopTintedFromAttr(
            @NonNull final TextView textView,
            @Nullable Drawable top,
            @AttrRes final int tintAttr); @BindingAdapter({"srcRes", "tintAttr"}) static void setSrcResTintedFromAttr(
            @NonNull final ImageView imageView,
            @DrawableRes final int res,
            @AttrRes final int tintAttr); @BindingAdapter({"src", "tintAttr"}) static void setSrcTintedFromAttr(
            @NonNull final ImageView imageView,
            @Nullable Drawable src,
            @AttrRes final int tintAttr); @BindingAdapter({"src", "tintNormal", "useActivatedSrcTint"}) static void setUseActivatedSrcTint(
            @NonNull final ImageView imageView,
            @Nullable final Drawable src,
            @ColorInt final int tintNormal,
            final boolean useActivatedSrcTint); @BindingAdapter("activated") static void setActivated(@NonNull final View view, final boolean activated); @BindingAdapter("srcRes") static void setImageResource(
            @NonNull final ImageView imageView,
            @DrawableRes final int src); @BindingAdapter("colorFilter") static void setColorFiler(
            @NonNull final ImageView imageView,
            @ColorInt final int color); }
BindingAdapters { @BindingAdapter("colorFilter") public static void setColorFiler( @NonNull final ImageView imageView, @ColorInt final int color) { imageView.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); } private  BindingAdapters(); @NonNull static DataBindingComponent glideBindingComponent(
            @NonNull final RequestManager requestManager); @BindingAdapter("formattedDuration") static void setFormattedDuration(
            @NonNull final TextView textView,
            final long seconds); @BindingAdapter("recyclerAdapter") static void setRecyclerAdapter(
            @NonNull final RecyclerView recyclerView,
            @Nullable final RecyclerView.Adapter<?> adapter); @BindingAdapter({"drawableTop", "tintAttr"}) static void setDrawableTopTintedFromAttr(
            @NonNull final TextView textView,
            @Nullable Drawable top,
            @AttrRes final int tintAttr); @BindingAdapter({"srcRes", "tintAttr"}) static void setSrcResTintedFromAttr(
            @NonNull final ImageView imageView,
            @DrawableRes final int res,
            @AttrRes final int tintAttr); @BindingAdapter({"src", "tintAttr"}) static void setSrcTintedFromAttr(
            @NonNull final ImageView imageView,
            @Nullable Drawable src,
            @AttrRes final int tintAttr); @BindingAdapter({"src", "tintNormal", "useActivatedSrcTint"}) static void setUseActivatedSrcTint(
            @NonNull final ImageView imageView,
            @Nullable final Drawable src,
            @ColorInt final int tintNormal,
            final boolean useActivatedSrcTint); @BindingAdapter("activated") static void setActivated(@NonNull final View view, final boolean activated); @BindingAdapter("srcRes") static void setImageResource(
            @NonNull final ImageView imageView,
            @DrawableRes final int src); @BindingAdapter("colorFilter") static void setColorFiler(
            @NonNull final ImageView imageView,
            @ColorInt final int color);  }