summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/episodes_apply_action_fragment.xml
blob: 0baa2061a397883701f656a2aa5483f06a68fd64 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="?attr/actionBarSize"
        android:theme="?attr/actionBarTheme"
        android:layout_alignParentTop="true"
        app:navigationIcon="?homeAsUpIndicator"
        android:id="@+id/toolbar"/>

    <ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/toolbar"
        android:layout_marginTop="0dp" />

    <com.leinardi.android.speeddial.SpeedDialOverlayLayout
        android:id="@+id/fabSDOverlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/toolbar" />
    <!-- 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_alignParentBottom="true"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:elevation="@dimen/sd_open_elevation"
        tools:ignore="UnusedAttribute" >

        <com.leinardi.android.speeddial.SpeedDialView
            android:id="@+id/fabSD"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:sdMainFabClosedSrc="?attr/batch_edit_fab_icon"
            app:sdOverlayLayout="@id/fabSDOverlay"
            android:layout_marginEnd="16dp"
            android:layout_marginRight="16dp"
            android:layout_marginBottom="16dp"
            />
    </ScrollView>

</RelativeLayout>