Fixed
Status Update
Comments
al...@android.com <al...@android.com>
ch...@google.com <ch...@google.com> #2
Confirmed. I can only recreate on API 16 though.
Workaround for now is to set app:borderWidth="0dp"
Workaround for now is to set app:borderWidth="0dp"
my...@gmail.com <my...@gmail.com> #3
app:borderWidth="0dp" also fixes elevation issues on 21+. Without it, no matter how much elevation is specified the FAB is flat.
ad...@gmail.com <ad...@gmail.com> #4
<android.support.design.widget.FloatingActionButton
xmlns:app="http://schemas.android.com/apk/res-auto "
app:borderWidth="0dp"
android:id="@+id/fab_1"
android:layout_marginBottom="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:src="@drawable/abc_ic_clear_mtrl_alpha"/>
And i still get a square on lollipop devices
xmlns:app="
app:borderWidth="0dp"
android:id="@+id/fab_1"
android:layout_marginBottom="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:src="@drawable/abc_ic_clear_mtrl_alpha"/>
And i still get a square on lollipop devices
[Deleted User] <[Deleted User]> #5
testes on nexus 5 os version 5.1
ca...@gmail.com <ca...@gmail.com> #6
Fixed internally. Will be out soon.
de...@gmail.com <de...@gmail.com> #7
please release bugfixed version , we need that.
kr...@gmail.com <kr...@gmail.com> #8
Any news on this?
br...@gmail.com <br...@gmail.com> #9
For those that still have a square button after adding app:borderWidth="0dp", I found that setting android:background was causing the issue for me. Set android:backgroundTint instead.
lo...@gmail.com <lo...@gmail.com> #10
[Comment deleted]
ma...@gmail.com <ma...@gmail.com> #11
For those whom nothing else worked, this is the xml layout I used in the end and worked like a charm among all the devices I used:
<android.support.design.widget.FloatingActionButton
android:id="@+id/ddd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="10dp"
android:layout_marginRight="10dp"
app:elevation="@dimen/floating_button_elevation"
app:borderWidth="0dp"
app:rippleColor="@color/red"
app:backgroundTint="@color/blue" />
Notice the "app:backgroundTint" instead of "android:backgroundTint"
Hope it helps!
<android.support.design.widget.FloatingActionButton
android:id="@+id/ddd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="10dp"
android:layout_marginRight="10dp"
app:elevation="@dimen/floating_button_elevation"
app:borderWidth="0dp"
app:rippleColor="@color/red"
app:backgroundTint="@color/blue" />
Notice the "app:backgroundTint" instead of "android:backgroundTint"
Hope it helps!
pr...@gmail.com <pr...@gmail.com> #12
Any Update?
jo...@gmail.com <jo...@gmail.com> #13
In my case after adding app:borderWidth="0dp" still button was square. Because before using this newly released support lib, i used google android sample in which i end up creating "fab_background" file which was causing this issue. After removing said file button is appearing as circle.
pr...@gmail.com <pr...@gmail.com> #14
Released in v22.2.1.
al...@gmail.com <al...@gmail.com> #15
FAB still seems to be square in API 16 after new release.
ja...@gmail.com <ja...@gmail.com> #16
#17: are you changing the FAB's background?
bo...@gmail.com <bo...@gmail.com> #17
FAB is still square on lollipop devices, i noticed that setting borderWidth to a greater value doesn't exactly fix things but reduces the square drawables size so it resides inside the circular view but is easily distinguished and without giving borderWidth the drawable takes up the whole width and height available to it. Is there a problem with how CircularDrawableForLollipop is implemented??
bo...@gmail.com <bo...@gmail.com> #18
This seems to still be an issue. Im using support libs 23.0.0, setting app:backgroundTint seems to work as a workaround, has a cause been found for this?
Description
Version used: 22.2.0
In a CoordinatorLayout with fitsSystemWindows="true" so that the backdrop image can be seen behind the status bar, on API 21 the toolbar buttons such as back and the menu button end up behind the status bar and disappear when the view is scrolled. This is not seen on any other API level, including 22.