2017-08-11 78 views
0

我得到华为7" 设备奇怪抬高,这里是代码:的Android - 华为设备上奇怪的晶圆厂海拔

<android.support.design.widget.FloatingActionButton 
    android:id="@+id/fab_start" 
    android:layout_width="92dp" 
    android:layout_height="92dp" 
    android:layout_gravity="center_horizontal" 
    android:layout_marginTop="42dp" 
    android:src="@mipmap/ic_play_arrow_white_48dp" 
    app:backgroundTint="@color/teal" 
    app:useCompatPadding="true" /> 

这里是结果:

enter image description here

任何想法,为什么发生这种情况?

回答

0

wrap_content晶圆厂按钮的高度和宽度;

android:layout_width="wrap_content" 
android:layout_height="wrap_content"  
+0

它的工作!但如何增加晶圆厂的规模? –

+0

您可以尝试应用程序:fabSize =“mini” –

+1

请upvote并标记我的答案.. –