6
我正在使用compile 'com.android.support:design:23.1.1'
和android.support.design.widget.FloatingActionButton
创建FAB。Android支持设计浮动动作按钮标高对于白色以外的颜色不可见
当背景色调为白色时,海拔(阴影)非常明显。
但是对于其他颜色不海拔可见。
这里是我的代码:
<android.support.design.widget.FloatingActionButton
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/create_floating_button"
app:elevation="6dp"
app:borderWidth="0dp"
android:clickable="true"
app:backgroundTint="@color/colorAccent"
app:rippleColor="@color/colorAccentLight"
android:layout_margin="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
除了这个问题,即使有白色,按钮似乎并不像在google material design spec的人。
检查此例如(影子的方向是向下):
我在做什么错?