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