android - appcompat v7 overflow icon color different in V-21 -
i have imagebutton
src="@drawable/abc_ic_menu_moreoverflow_mtrl_alpha"
using appcompat-v7 21.0.3.
<imagebutton android:layout_width="@dimen/abc_action_button_min_height_material" android:layout_height="@dimen/abc_action_button_min_height_material" android:layout_alignparentright="true" android:background="?attr/selectableitembackground" android:src="@drawable/abc_ic_menu_moreoverflow_mtrl_alpha" />
it's showing me black overflow button until api 20. in api >=21 shows white icon not visible correctly in layout.
see images.
in kitkat
in lollipop
as seen, it's white in >=21 .
i have single styles.xml file versions follows.
<style name="appbasetheme" parent="theme.appcompat.light.noactionbar"> <item name="colorprimary">@color/colorprimary</item> <item name="colorprimarydark">@color/blue</item> <item name="coloraccent">@color/white</item> </style>
so , should hack here , great.
note : -i using button in recyclerview item layout. -appcompat v7-22.2.0 produces same result.
as suggested @reverse ,
android:tint
works great tints image specified color.
Comments
Post a Comment