summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/multi_select_speed_dial.xml
blob: 0451471bc5bc356f25c928cec0056d55da56a8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<merge
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <com.leinardi.android.speeddial.SpeedDialOverlayLayout
        android:id="@+id/fabSDOverlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:importantForAccessibility="no" />

    <!-- The FAB SpeedDial
         1. MUST be placed at the bottom of the layout xml to ensure it is at the front,
            clickable on Pre-Lollipop devices (that do not support elevation).
            See: https://stackoverflow.com/a/2614402
         2. ScrollView is needed to ensure the vertical list of speed dials are
            accessible when screen height is small, eg., landscape mode on most phones.
      -->
    <ScrollView
        android:id="@+id/fabSDScrollCtr"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|right"
        android:layout_alignParentBottom="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:elevation="@dimen/sd_open_elevation">

        <com.leinardi.android.speeddial.SpeedDialView
            android:id="@+id/fabSD"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:accessibilityTraversalBefore="@android:id/list"
            android:contentDescription="@string/apply_action"
            android:visibility="gone"
            app:sdMainFabClosedSrc="@drawable/ic_fab_edit"
            app:sdOverlayLayout="@id/fabSDOverlay" />

    </ScrollView>

</merge>