1
1
<?xml version =" 1.0" encoding =" utf-8" ?><!--
2
- ~ Copyright (c) 2018 DuckDuckGo
2
+ ~ Copyright (c) 2025 DuckDuckGo
3
3
~
4
4
~ Licensed under the Apache License, Version 2.0 (the "License");
5
5
~ you may not use this file except in compliance with the License.
14
14
~ limitations under the License.
15
15
-->
16
16
17
- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
18
- xmlns : app =" http://schemas.android.com/apk/res-auto"
17
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
19
18
xmlns : tools =" http://schemas.android.com/tools"
20
19
android : id =" @+id/widgetContainer"
21
20
style =" @style/Widget.DuckDuckGo.SearchWidgetSearchBarContainer"
22
- android : background =" @drawable/search_widget_background_white" >
21
+ android : background =" @drawable/search_widget_background_white"
22
+ android : gravity =" center_vertical"
23
+ android : orientation =" horizontal" >
23
24
24
25
<ImageView
25
26
android : id =" @+id/logo"
26
27
style =" @style/Widget.DuckDuckGo.SearchWidgetDDGLogo"
28
+ android : layout_gravity =" center_vertical"
27
29
android : src =" @drawable/ic_ddg_logo"
28
- app : layout_constraintBottom_toBottomOf =" parent"
29
- app : layout_constraintStart_toStartOf =" parent"
30
- app : layout_constraintTop_toTopOf =" parent"
31
30
tools : ignore =" ContentDescription" />
32
31
33
- <androidx .constraintlayout.widget.Barrier
34
- android : id =" @+id/barrier"
35
- android : layout_width =" wrap_content"
36
- android : layout_height =" wrap_content"
37
- app : barrierDirection =" start"
38
- app : constraint_referenced_ids =" voiceSearch,search" />
39
-
40
32
<TextView
41
33
android : id =" @+id/searchInputBox"
42
34
style =" @style/Widget.DuckDuckGo.SearchWidgetInputBox"
35
+ android : layout_width =" 0dp"
36
+ android : layout_weight =" 1"
43
37
android : text =" @string/searchWidgetTextHint"
44
38
android : textColor =" @color/black60"
45
- app : layout_constraintBottom_toBottomOf =" parent"
46
- app : layout_constraintEnd_toStartOf =" @id/barrier"
47
- app : layout_constraintStart_toEndOf =" @id/logo"
48
- app : layout_constraintTop_toTopOf =" parent"
49
39
tools : ignore =" ContentDescription" />
50
40
51
41
<ImageView
52
42
android : id =" @+id/voiceSearch"
53
43
style =" @style/Widget.DuckDuckGo.SearchWidgetSearchIcon"
54
44
android : src =" @drawable/ic_microphone_light"
55
45
android : visibility =" gone"
56
- app : layout_constraintBottom_toBottomOf =" parent"
57
- app : layout_constraintEnd_toStartOf =" @id/separator"
58
- app : layout_constraintStart_toEndOf =" @id/searchInputBox"
59
- app : layout_constraintTop_toTopOf =" parent"
60
- tools : ignore =" ContentDescription" />
61
-
62
- <ImageView
63
- android : id =" @+id/search"
64
- style =" @style/Widget.DuckDuckGo.SearchWidgetSearchIcon"
65
- android : src =" @drawable/ic_find_search_24_light"
66
- android : visibility =" visible"
67
- app : layout_constraintBottom_toBottomOf =" parent"
68
- app : layout_constraintEnd_toEndOf =" parent"
69
- app : layout_constraintTop_toTopOf =" parent"
70
46
tools : ignore =" ContentDescription" />
71
47
72
48
<ImageView
73
49
android : id =" @+id/separator"
74
50
style =" @style/Widget.DuckDuckGo.SearchWidgetSearchIcon"
75
51
android : src =" @drawable/ic_vertical_separator"
76
52
android : visibility =" gone"
77
- app : layout_constraintBottom_toBottomOf =" parent"
78
- app : layout_constraintEnd_toStartOf =" @id/duckAi"
79
- app : layout_constraintStart_toEndOf =" @id/voiceSearch"
80
- app : layout_constraintTop_toTopOf =" parent"
81
53
tools : ignore =" ContentDescription" />
82
54
83
55
<ImageView
84
56
android : id =" @+id/duckAi"
85
57
style =" @style/Widget.DuckDuckGo.SearchWidgetSearchIcon"
86
58
android : src =" @drawable/ic_duck_ai_24_light"
87
59
android : visibility =" gone"
88
- app : layout_constraintBottom_toBottomOf =" parent"
89
- app : layout_constraintEnd_toEndOf =" parent"
90
- app : layout_constraintStart_toEndOf =" @id/separator"
91
- app : layout_constraintTop_toTopOf =" parent"
92
60
tools : ignore =" ContentDescription" />
93
61
94
- </androidx .constraintlayout.widget.ConstraintLayout>
62
+ <ImageView
63
+ android : id =" @+id/search"
64
+ style =" @style/Widget.DuckDuckGo.SearchWidgetSearchIcon"
65
+ android : src =" @drawable/ic_find_search_24_light"
66
+ android : visibility =" visible"
67
+ tools : ignore =" ContentDescription" />
68
+
69
+ </LinearLayout >
0 commit comments