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"/> 

enter image description here

and without drawable.

enter image description here

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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -