make speed dials scrollable, so that they work in landscape / split window mode.

This commit is contained in:
orionlee 2019-03-20 11:44:30 -07:00
parent 737f7571ab
commit f7fa0836ea
1 changed files with 14 additions and 8 deletions

View File

@ -103,19 +103,25 @@
android:id="@+id/fabSDOverlay" android:id="@+id/fabSDOverlay"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
<com.leinardi.android.speeddial.SpeedDialView <ScrollView
android:id="@+id/fabSD"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:sdMainFabClosedSrc="@drawable/ic_fab_edit"
app:sdOverlayLayout="@id/fabSDOverlay"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginEnd="16dp" android:elevation="@dimen/sd_close_elevation"
android:layout_marginRight="16dp" > <!-- needs to match the speed dial's minimal elevation, or the speed dial can't be clicked at all -->
android:layout_marginBottom="16dp" <com.leinardi.android.speeddial.SpeedDialView
/> android:id="@+id/fabSD"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:sdMainFabClosedSrc="@drawable/ic_fab_edit"
app:sdOverlayLayout="@id/fabSDOverlay"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
/>
</ScrollView>
<View <View
android:visibility="gone" android:visibility="gone"
android:id="@+id/divider" android:id="@+id/divider"