|
7 | 7 | style="@style/Widget.DuckChat.TabLayout.Rounded"
|
8 | 8 | android:layout_width="wrap_content"
|
9 | 9 | android:layout_height="@dimen/inputModeSwitchHeight"
|
10 |
| - app:layout_constrainedWidth="true" |
11 |
| - app:layout_constraintEnd_toEndOf="parent" |
12 | 10 | app:layout_constraintStart_toStartOf="parent"
|
13 |
| - app:layout_constraintTop_toTopOf="parent"> |
| 11 | + app:layout_constraintEnd_toEndOf="parent" |
| 12 | + app:layout_constraintTop_toTopOf="parent" |
| 13 | + app:layout_constrainedWidth="true"> |
14 | 14 |
|
15 | 15 | <com.google.android.material.tabs.TabItem
|
16 | 16 | android:id="@+id/tabSearch"
|
17 | 17 | android:layout_width="wrap_content"
|
18 | 18 | android:layout_height="wrap_content"
|
19 |
| - android:layout="@layout/view_search_tab_indicator" /> |
| 19 | + android:layout="@layout/view_search_tab_indicator"/> |
20 | 20 |
|
21 | 21 | <com.google.android.material.tabs.TabItem
|
22 | 22 | android:id="@+id/tabDuckAi"
|
23 | 23 | android:layout_width="wrap_content"
|
24 | 24 | android:layout_height="wrap_content"
|
25 |
| - android:layout="@layout/view_chat_tab_indicator" /> |
| 25 | + android:layout="@layout/view_chat_tab_indicator"/> |
26 | 26 |
|
27 | 27 | </com.duckduckgo.duckchat.impl.inputscreen.ui.view.InputModeTabLayout>
|
28 | 28 |
|
|
37 | 37 | android:importantForAccessibility="no"
|
38 | 38 | android:padding="@dimen/keyline_2"
|
39 | 39 | android:scaleType="center"
|
40 |
| - app:layout_constraintBottom_toBottomOf="@id/inputModeSwitch" |
| 40 | + app:srcCompat="@drawable/ic_arrow_left_24" |
41 | 41 | app:layout_constraintStart_toStartOf="parent"
|
42 | 42 | app:layout_constraintTop_toTopOf="@id/inputModeSwitch"
|
43 |
| - app:srcCompat="@drawable/ic_arrow_left_24" /> |
| 43 | + app:layout_constraintBottom_toBottomOf="@id/inputModeSwitch"/> |
44 | 44 |
|
45 | 45 | <Space
|
46 | 46 | android:id="@+id/spacer"
|
47 | 47 | android:layout_width="0dp"
|
48 | 48 | android:layout_height="10dp"
|
49 |
| - app:layout_constraintEnd_toEndOf="parent" |
| 49 | + app:layout_constraintTop_toBottomOf="@id/inputModeSwitch" |
50 | 50 | app:layout_constraintStart_toStartOf="parent"
|
51 |
| - app:layout_constraintTop_toBottomOf="@id/inputModeSwitch" /> |
| 51 | + app:layout_constraintEnd_toEndOf="parent"/> |
52 | 52 |
|
53 |
| - <FrameLayout |
| 53 | + <com.google.android.material.card.MaterialCardView |
| 54 | + android:id="@+id/inputModeWidgetCard" |
| 55 | + style="@style/Widget.DuckDuckGo.OmnibarCardView" |
54 | 56 | android:layout_width="0dp"
|
55 | 57 | android:layout_height="wrap_content"
|
56 |
| - android:minHeight="@dimen/toolbarSize" |
57 |
| - app:layout_constraintEnd_toEndOf="parent" |
| 58 | + android:layout_marginHorizontal="@dimen/omnibarCardMarginHorizontal" |
| 59 | + android:layout_marginTop="@dimen/omnibarCardMarginTop" |
| 60 | + android:layout_marginBottom="@dimen/omnibarCardMarginBottom" |
| 61 | + app:strokeColor="?attr/daxColorAccentBlue" |
| 62 | + app:strokeWidth="@dimen/omnibarOutlineWidth" |
| 63 | + app:cardElevation="0dp" |
| 64 | + app:layout_constraintTop_toBottomOf="@id/spacer" |
58 | 65 | app:layout_constraintStart_toStartOf="parent"
|
59 |
| - app:layout_constraintTop_toBottomOf="@id/spacer"> |
| 66 | + app:layout_constraintEnd_toEndOf="parent"> |
60 | 67 |
|
61 |
| - <com.google.android.material.card.MaterialCardView |
62 |
| - android:id="@+id/inputModeWidgetCard" |
63 |
| - style="@style/Widget.DuckDuckGo.OmnibarCardView" |
| 68 | + <LinearLayout |
| 69 | + android:id="@+id/inputModeWidgetCardContent" |
64 | 70 | android:layout_width="match_parent"
|
65 |
| - android:layout_height="match_parent" |
66 |
| - android:layout_marginHorizontal="@dimen/omnibarCardMarginHorizontal" |
67 |
| - android:layout_marginTop="@dimen/omnibarCardMarginTop" |
68 |
| - android:layout_marginBottom="@dimen/omnibarCardMarginBottom" |
69 |
| - app:cardElevation="0dp" |
70 |
| - app:strokeColor="?attr/daxColorAccentBlue" |
71 |
| - app:strokeWidth="@dimen/omnibarOutlineWidth"> |
| 71 | + android:layout_height="wrap_content" |
| 72 | + android:orientation="horizontal" |
| 73 | + android:padding="@dimen/keyline_0"> |
72 | 74 |
|
73 |
| - <LinearLayout |
74 |
| - android:id="@+id/inputModeWidgetCardContent" |
75 |
| - android:layout_width="match_parent" |
| 75 | + <EditText |
| 76 | + android:id="@+id/inputField" |
| 77 | + android:layout_width="0dp" |
76 | 78 | android:layout_height="wrap_content"
|
77 |
| - android:orientation="horizontal" |
78 |
| - android:padding="@dimen/keyline_0"> |
79 |
| - |
80 |
| - <EditText |
81 |
| - android:id="@+id/inputField" |
82 |
| - android:layout_width="0dp" |
83 |
| - android:layout_height="wrap_content" |
84 |
| - android:layout_gravity="center_vertical" |
85 |
| - android:layout_marginStart="@dimen/keyline_4" |
86 |
| - android:layout_weight="1" |
87 |
| - android:background="@null" |
88 |
| - android:fontFamily="sans-serif" |
89 |
| - android:gravity="start|top" |
90 |
| - android:hint="@string/input_screen_search_hint" |
91 |
| - android:lineSpacingMultiplier="1.2" |
92 |
| - android:maxLines="1" |
93 |
| - android:minHeight="@dimen/toolbarIcon" |
94 |
| - android:paddingVertical="@dimen/keyline_2" |
95 |
| - android:textColor="?attr/daxColorPrimaryText" |
96 |
| - android:textColorHighlight="?attr/daxOmnibarTextColorHighlight" |
97 |
| - android:textColorHint="?attr/daxColorSecondaryText" |
98 |
| - android:textCursorDrawable="@drawable/text_cursor" |
99 |
| - android:textSize="16sp" |
100 |
| - android:textStyle="normal" /> |
101 |
| - |
102 |
| - <ImageView |
103 |
| - android:id="@+id/inputFieldClearText" |
104 |
| - android:layout_width="@dimen/toolbarIcon" |
105 |
| - android:layout_height="@dimen/toolbarIcon" |
106 |
| - android:layout_gravity="top" |
107 |
| - android:background="@drawable/selectable_item_experimental_background" |
108 |
| - android:gravity="center" |
109 |
| - android:importantForAccessibility="no" |
110 |
| - android:padding="@dimen/keyline_1" |
111 |
| - android:scaleType="centerInside" |
112 |
| - android:visibility="gone" |
113 |
| - app:srcCompat="@drawable/ic_close_circle_small_secondary_24" /> |
| 79 | + android:layout_gravity="center_vertical" |
| 80 | + android:layout_marginStart="@dimen/keyline_4" |
| 81 | + android:layout_weight="1" |
| 82 | + android:background="@null" |
| 83 | + android:fontFamily="sans-serif" |
| 84 | + android:gravity="start|top" |
| 85 | + android:hint="@string/input_screen_search_hint" |
| 86 | + android:lineSpacingMultiplier="1.2" |
| 87 | + android:minHeight="@dimen/toolbarIcon" |
| 88 | + android:paddingVertical="@dimen/keyline_2" |
| 89 | + android:textColor="?attr/daxColorPrimaryText" |
| 90 | + android:textColorHighlight="?attr/daxOmnibarTextColorHighlight" |
| 91 | + android:textColorHint="?attr/daxColorSecondaryText" |
| 92 | + android:textCursorDrawable="@drawable/text_cursor" |
| 93 | + android:textSize="16sp" |
| 94 | + android:textStyle="normal" |
| 95 | + android:maxLines="1" /> |
114 | 96 |
|
115 |
| - </LinearLayout> |
| 97 | + <ImageView |
| 98 | + android:id="@+id/inputFieldClearText" |
| 99 | + android:layout_width="@dimen/toolbarIcon" |
| 100 | + android:layout_height="@dimen/toolbarIcon" |
| 101 | + android:layout_gravity="top" |
| 102 | + android:background="@drawable/selectable_item_experimental_background" |
| 103 | + android:gravity="center" |
| 104 | + android:importantForAccessibility="no" |
| 105 | + android:padding="@dimen/keyline_1" |
| 106 | + android:scaleType="centerInside" |
| 107 | + android:visibility="gone" |
| 108 | + app:srcCompat="@drawable/ic_close_circle_small_secondary_24" /> |
116 | 109 |
|
117 |
| - </com.google.android.material.card.MaterialCardView> |
| 110 | + </LinearLayout> |
118 | 111 |
|
119 |
| - </FrameLayout> |
| 112 | + </com.google.android.material.card.MaterialCardView> |
120 | 113 | </merge>
|
0 commit comments