我找不到一個沒有邊框的FAB。例如,當我嘗試:FloatingActionButton無邊框?
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/fab"
android:background="@android:color/transparent"
android.support.design:fabSize="normal"
android:adjustViewBounds="true"
style="@style/Fab"/>
我得到:
通知邊框仍然圍繞FAB。我已經嘗試adjustViewBounds =「true」和android:background =「@ android:color/transparent」這兩個都是建議的解決方案,用於擺脫ImageView(FAB擴展)上的邊框,但都不起作用。我怎樣才能擺脫這個邊界?
注意:all @ style/Fab確實是定位按鈕,與邊框無關。
也試過android:scaleType =「fitXY」,結果相同 –
你爲什麼要試圖建立一個透明的FAB? – ianhanniballake
嘗試將borderwidth設置爲0dp..app:borderWidth =「0dp」 – Psypher