SegmentedButton icon indicating copy to clipboard operation
SegmentedButton copied to clipboard

Fix drawable caching

Open FirstSpectr opened this issue 5 years ago • 0 comments

Fix for this issue: ` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/black" android:orientation="horizontal">

<com.addisonelliott.segmentedbutton.SegmentedButton
    android:layout_width="0dp"
    android:layout_height="40dp"
    android:layout_weight="1"
    app:drawable="@drawable/some_white_icon"
    app:selectedDrawableTint="#F00" />

<ImageView
    android:id="@+id/iv1"
    android:layout_width="0dp"
    android:layout_height="40dp"
    android:layout_weight="1"
    android:src="@drawable/some_white_icon" />
` Now our ImageView drawable have red tint

FirstSpectr avatar Jan 29 '21 23:01 FirstSpectr