的Fab按鈕,我想我的自定義圖標添加到FAB按鈕, 我指定它像自定義圖像
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@mipmap/ic_custom" />
其顯示圖標,但沒有完全填充晶圓廠,各地留下一定的餘量。
我希望我的圖標完全佔據晶圓廠尺寸和寬度(我的圖標是圓形的)
dp中的圖標大小是多少? – jitinsharma
我在所有資源中都有圖標'xhdpi','xxhdpi','xxxhdpi' –
你試過更大尺寸的圖標嗎? – jitinsharma