dialog_app_choosal.xml 3.5 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
              xmlns:app="http://schemas.android.com/apk/res-auto"
4
5
6
7
8
9
10
11
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:paddingLeft="@dimen/dialog_horizontal_margin"
              android:paddingRight="@dimen/dialog_horizontal_margin"
              android:paddingTop="@dimen/dialog_vertical_margin"
              android:paddingBottom="@dimen/dialog_vertical_margin"
              android:layout_height="match_parent">

12
13
14
15
16
17
    <TextView
            android:layout_width="wrap_content"
            android:id="@+id/text"
            android:layout_marginBottom="8dp"
            android:layout_height="wrap_content"/>

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    <RelativeLayout
            android:layout_width="match_parent"
            android:visibility="gone"
            android:id="@+id/searchWrap"
            android:layout_height="wrap_content">

        <ImageButton
                android:layout_width="24dp"
                android:id="@+id/clearSearch"
                android:layout_centerVertical="true"
                android:src="@drawable/ic_times"
                android:contentDescription="@string/contentdescription_clear_search"
                android:layout_marginStart="8dp"
                android:layout_alignParentEnd="true"
                style="@style/Base.Widget.AppCompat.Button.Borderless"
                android:layout_height="24dp"/>

35
        <com.google.android.material.textfield.TextInputLayout
36
                android:layout_width="match_parent"
37
38
39
40
                android:id="@+id/nameTil"
                app:errorEnabled="true"
                android:hint="@string/search"
                android:textColorHint="?attr/foregroundElementColor"
41
42
43
44
                android:layout_toStartOf="@id/clearSearch"
                android:layout_alignParentStart="true"
                android:layout_height="wrap_content">

45
            <com.google.android.material.textfield.TextInputEditText
46
47
48
                    android:layout_width="match_parent"
                    android:hint="@string/hint_searchterm"
                    android:id="@+id/search"
49
50
51
                    android:inputType="text"
                    android:layout_height="wrap_content"/>
        </com.google.android.material.textfield.TextInputLayout>
52
53
54
55
56
57
58
59
60
61
62
63
64

    </RelativeLayout>

    <CheckBox
            android:layout_width="wrap_content"
            android:text="@string/dialog_appchoosal_showsystemapps"
            android:id="@+id/showSystemApps"
            android:textColor="?android:attr/textColor"
            android:visibility="gone"
            android:checked="true"
            android:layout_marginBottom="8dp"
            android:layout_height="wrap_content"/>

65
66
67
68
69
70
71
72
73
74
    <CheckBox
            android:layout_width="wrap_content"
            android:text="@string/dialog_appchoosal_whitelist"
            android:id="@+id/whitelist"
            android:textColor="?android:attr/textColor"
            android:visibility="gone"
            android:checked="true"
            android:layout_marginBottom="8dp"
            android:layout_height="wrap_content"/>

75

76
77
78
79
80
81
82
83
84
85
86
87
    <androidx.recyclerview.widget.RecyclerView
            android:layout_width="match_parent"
            android:id="@+id/list"
            android:layout_height="wrap_content"/>

    <ProgressBar
            android:layout_width="64dp"
            android:id="@+id/progress"
            android:layout_gravity="center"
            android:layout_height="64dp"/>

</LinearLayout>