xml - Android Floating Action Button Semi Transparent Background Color -
i want use fab semi transparent background color. getting fab 2 different colors. what's problem?
<android.support.design.widget.floatingactionbutton xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|left" android:fadingedgelength="5dp" app:borderwidth="0dp" app:elevation="4dp" app:backgroundtint="#99f03456" app:fabsize="normal"/>
and without drawable.
got same issue here. tried set alpha transparency in xml using backgroundtint didn't work , resulted in same appearance in screenshots (two circles).
so set in code :
floatingbutton = (floatingactionbutton) findviewbyid(r.id.fab); floatingbutton.setalpha(0.25f);
and consistent.
Comments
Post a Comment