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"
bk...@gmail.com <bk...@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.
bk...@gmail.com <bk...@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
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #5
testes on nexus 5 os version 5.1
Description
Version used: 22.2.0
With the CollapsingToolbarLayout on Android 4.1 - it appears that settings expandedTitleTextAppearance and collapsedTitleTextAppearance do not work properly unless the styles specifically extend fromTextAppearance. So if you set them using this style:
<style name="GreenText">
<item name="android:textColor">#00FF00</item>
</style>
the text will not appear at all (and can cause the crash found in this ticket):
However if the style is changed to this:
<style name="GreenText" parent="@android:style/TextAppearance">
<item name="android:textColor">#00FF00</item>
</style>
everything works fine.
Since a standard TextView properly displays the text when the TextAppearance is set using the first format:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Info"
android:textAppearance="@style/GreenText" />
I assume this is a bug in the CollapsingToolbarLayout.
I also logged another bug under