|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | | - xmlns:tools="http://schemas.android.com/tools" |
5 | 4 | android:id="@+id/mainLayout" |
6 | 5 | android:layout_width="match_parent" |
7 | 6 | android:layout_height="match_parent" |
8 | 7 | android:animateLayoutChanges="true" |
9 | 8 | android:background="?attr/primaryShadeDarkColor"> |
10 | 9 |
|
11 | 10 | <!-- Search Bar positioned at the top --> |
12 | | - <LinearLayout |
| 11 | + <androidx.constraintlayout.widget.ConstraintLayout |
13 | 12 | android:id="@+id/searchContainer" |
14 | 13 | android:layout_width="match_parent" |
15 | 14 | android:layout_height="wrap_content" |
16 | | - android:layout_alignParentTop="true" |
17 | 15 | android:layout_marginTop="34dp" |
18 | | - android:orientation="horizontal" |
| 16 | + android:layout_marginEnd="12dp" |
19 | 17 | android:paddingHorizontal="8dp"> |
20 | 18 |
|
21 | 19 | <com.github.creativecodecat.components.views.FontSearchView |
22 | 20 | android:id="@+id/search" |
23 | 21 | android:layout_width="0dp" |
24 | 22 | android:layout_height="wrap_content" |
25 | | - android:layout_weight="1" |
26 | | - android:gravity="end" |
27 | 23 | android:imeOptions="actionSearch" |
28 | | - android:paddingHorizontal="0dp" |
29 | | - android:paddingVertical="0dp" |
30 | 24 | app:iconifiedByDefault="false" |
| 25 | + app:layout_constraintBottom_toBottomOf="parent" |
| 26 | + app:layout_constraintEnd_toStartOf="@id/workApps" |
| 27 | + app:layout_constraintStart_toStartOf="parent" |
| 28 | + app:layout_constraintTop_toTopOf="parent" |
31 | 29 | app:queryBackground="@null" |
32 | 30 | app:queryHint="___" |
33 | 31 | app:searchIcon="@drawable/ic_search" |
34 | 32 | app:theme="@style/AppSearchText" /> |
35 | 33 |
|
36 | 34 | <ImageView |
37 | 35 | android:id="@+id/workApps" |
38 | | - android:layout_width="wrap_content" |
39 | | - android:layout_height="wrap_content" |
40 | | - android:adjustViewBounds="true" |
41 | | - android:contentDescription="@string/advanced_settings_app_info_title" |
42 | | - android:paddingHorizontal="5dp" |
43 | | - android:paddingVertical="8dp" |
44 | | - android:scaleType="fitCenter" |
| 36 | + android:layout_width="38dp" |
| 37 | + android:layout_height="38dp" |
| 38 | + android:contentDescription="@string/show_work_apps" |
| 39 | + android:padding="8dp" |
| 40 | + android:scaleType="centerInside" |
45 | 41 | android:visibility="gone" |
46 | | - app:srcCompat="@drawable/work_profile" |
47 | | - tools:layout_conversion_absoluteHeight="0dp" |
48 | | - tools:layout_conversion_absoluteWidth="0dp" /> |
| 42 | + app:layout_constraintBottom_toBottomOf="@id/search" |
| 43 | + app:layout_constraintStart_toEndOf="@id/search" |
| 44 | + app:layout_constraintTop_toTopOf="@id/search" |
| 45 | + app:srcCompat="@drawable/work_profile" /> |
49 | 46 |
|
50 | 47 | <ImageView |
51 | 48 | android:id="@+id/privateApps" |
52 | | - android:layout_width="wrap_content" |
53 | | - android:layout_height="wrap_content" |
54 | | - android:adjustViewBounds="true" |
55 | | - android:contentDescription="@string/advanced_settings_app_info_title" |
56 | | - android:paddingHorizontal="5dp" |
57 | | - android:paddingVertical="8dp" |
58 | | - android:scaleType="fitCenter" |
| 49 | + android:layout_width="38dp" |
| 50 | + android:layout_height="38dp" |
| 51 | + android:contentDescription="@string/show_private_apps" |
| 52 | + android:padding="8dp" |
| 53 | + android:scaleType="centerInside" |
59 | 54 | android:visibility="gone" |
60 | | - app:srcCompat="@drawable/private_profile_off" |
61 | | - tools:layout_conversion_absoluteHeight="0dp" |
62 | | - tools:layout_conversion_absoluteWidth="0dp" /> |
| 55 | + app:layout_constraintBottom_toBottomOf="@id/search" |
| 56 | + app:layout_constraintStart_toEndOf="@id/workApps" |
| 57 | + app:layout_constraintTop_toTopOf="@id/search" |
| 58 | + app:srcCompat="@drawable/private_profile_off" /> |
63 | 59 |
|
64 | 60 | <ImageView |
65 | 61 | android:id="@+id/systemApps" |
66 | | - android:layout_width="wrap_content" |
67 | | - android:layout_height="wrap_content" |
68 | | - android:adjustViewBounds="true" |
69 | | - android:contentDescription="@string/advanced_settings_app_info_title" |
70 | | - android:paddingHorizontal="5dp" |
71 | | - android:paddingVertical="8dp" |
72 | | - android:scaleType="fitCenter" |
| 62 | + android:layout_width="38dp" |
| 63 | + android:layout_height="38dp" |
| 64 | + android:contentDescription="@string/show_app_list" |
| 65 | + android:padding="8dp" |
| 66 | + android:scaleType="centerInside" |
73 | 67 | android:visibility="gone" |
74 | | - app:srcCompat="@drawable/system_profile" |
75 | | - tools:layout_conversion_absoluteHeight="0dp" |
76 | | - tools:layout_conversion_absoluteWidth="0dp" /> |
| 68 | + app:layout_constraintBottom_toBottomOf="@id/search" |
| 69 | + app:layout_constraintStart_toEndOf="@id/privateApps" |
| 70 | + app:layout_constraintTop_toTopOf="@id/search" |
| 71 | + app:srcCompat="@drawable/system_profile" /> |
77 | 72 |
|
78 | 73 | <ImageView |
79 | 74 | android:id="@+id/internetSearch" |
80 | | - android:layout_width="wrap_content" |
81 | | - android:layout_height="wrap_content" |
82 | | - android:adjustViewBounds="true" |
83 | | - android:contentDescription="@string/advanced_settings_app_info_title" |
84 | | - android:paddingHorizontal="5dp" |
85 | | - android:paddingVertical="8dp" |
86 | | - android:scaleType="fitCenter" |
| 75 | + android:layout_width="38dp" |
| 76 | + android:layout_height="38dp" |
| 77 | + android:contentDescription="@string/applist_button_web" |
| 78 | + android:padding="8dp" |
| 79 | + android:scaleType="centerInside" |
87 | 80 | android:visibility="gone" |
88 | | - app:srcCompat="@drawable/ic_browser" |
89 | | - tools:layout_conversion_absoluteHeight="0dp" |
90 | | - tools:layout_conversion_absoluteWidth="0dp" /> |
| 81 | + app:layout_constraintBottom_toBottomOf="@id/search" |
| 82 | + app:layout_constraintStart_toEndOf="@id/systemApps" |
| 83 | + app:layout_constraintTop_toTopOf="@id/search" |
| 84 | + app:srcCompat="@drawable/ic_browser" /> |
91 | 85 |
|
92 | 86 | <ImageView |
93 | 87 | android:id="@+id/searchSwitcher" |
94 | | - android:layout_width="wrap_content" |
95 | | - android:layout_height="wrap_content" |
96 | | - android:adjustViewBounds="true" |
97 | | - android:contentDescription="@string/advanced_settings_app_info_title" |
98 | | - android:paddingHorizontal="5dp" |
99 | | - android:paddingVertical="8dp" |
100 | | - android:scaleType="fitCenter" |
| 88 | + android:layout_width="38dp" |
| 89 | + android:layout_height="38dp" |
| 90 | + android:contentDescription="@string/applist_button_contacts" |
| 91 | + android:padding="8dp" |
| 92 | + android:scaleType="centerInside" |
101 | 93 | android:visibility="gone" |
102 | | - app:srcCompat="@drawable/ic_contacts" |
103 | | - tools:layout_conversion_absoluteHeight="0dp" |
104 | | - tools:layout_conversion_absoluteWidth="0dp" /> |
105 | | - |
106 | | - <Space |
107 | | - android:layout_width="12dp" |
108 | | - android:layout_height="0dp" /> |
109 | | - </LinearLayout> |
| 94 | + app:layout_constraintBottom_toBottomOf="@id/search" |
| 95 | + app:layout_constraintEnd_toEndOf="parent" |
| 96 | + app:layout_constraintStart_toEndOf="@id/internetSearch" |
| 97 | + app:layout_constraintTop_toTopOf="@id/search" |
| 98 | + app:srcCompat="@drawable/ic_contacts" /> |
| 99 | + |
| 100 | + </androidx.constraintlayout.widget.ConstraintLayout> |
110 | 101 |
|
111 | 102 | <com.github.creativecodecat.components.views.FontAppCompatTextView |
112 | 103 | android:id="@+id/clearHomeButton" |
|
0 commit comments