This is what my floating action button is showing为什么我的浮动操作按钮不能正确显示其图像?
宁可只是显示图像的实际圆形部分,它会尝试使我的.png文件的背景适合浮动动作按钮。
这里是我的XML代码:
<android.support.design.widget.FloatingActionButton
android:id="@+id/addToKitchenButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:layout_gravity="bottom|end"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:src="@drawable/fab_icon"
/>
how do I get it to look like this?
我已经给我的PNG文件透明背景,所以我不知道还有什么我需要做的。请帮忙。
谢谢。
谢谢,这正是我所需要的,但现在我有这个问题http://stackoverflow.com/questions/39737699/why-is-my-floating-action-button-not-displaying-properly-different-问题从m它不能正常显示 –