【发布时间】:2017-10-21 11:34:34
【问题描述】:
我的布局导致浮动操作 src 图标无法展开以填充按钮的整个视图是怎么回事?
我认为app:borderWidth="0dp" 可能会解决问题,但事实并非如此。加号图标仍然小于按钮(红色区域)。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cat"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/chordButtons"
android:orientation="vertical" >
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_margin="16dp"
android:clickable="true"
app:borderWidth="0dp"
android:src="@drawable/ic_add_circle_outline_black_24dp"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
【问题讨论】:
标签: android xml material-design floating-action-button