1
+ <?xml version =" 1.0" encoding =" utf-8" ?><!--
2
+ ~ Copyright (c) 2022 DuckDuckGo
3
+ ~
4
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
5
+ ~ you may not use this file except in compliance with the License.
6
+ ~ You may obtain a copy of the License at
7
+ ~
8
+ ~ http://www.apache.org/licenses/LICENSE-2.0
9
+ ~
10
+ ~ Unless required by applicable law or agreed to in writing, software
11
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
12
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ ~ See the License for the specific language governing permissions and
14
+ ~ limitations under the License.
15
+ -->
16
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
17
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
18
+ android : layout_width =" match_parent"
19
+ android : layout_height =" wrap_content"
20
+ android : clipToPadding =" false"
21
+ android : orientation =" vertical" >
22
+
23
+ <com .duckduckgo.common.ui.view.listitem.SectionHeaderListItem
24
+ android : id =" @+id/label"
25
+ android : layout_width =" match_parent"
26
+ android : layout_height =" wrap_content"
27
+ app : primaryText =" Settings List Item" />
28
+
29
+ <com .duckduckgo.common.ui.view.listitem.SettingsListItem
30
+ android : id =" @+id/settingsListItemWithIcon"
31
+ android : layout_width =" match_parent"
32
+ android : layout_height =" wrap_content"
33
+ app : leadingIcon =" @drawable/ic_dax_icon"
34
+ app : primaryText =" Settings List Item" />
35
+
36
+ <com .duckduckgo.common.ui.view.listitem.SettingsListItem
37
+ android : id =" @+id/settingsListItemOn"
38
+ android : layout_width =" match_parent"
39
+ android : layout_height =" wrap_content"
40
+ app : isOn =" true"
41
+ app : leadingIcon =" @drawable/ic_dax_icon"
42
+ app : primaryText =" Settings List Item on" />
43
+
44
+ <com .duckduckgo.common.ui.view.listitem.SettingsListItem
45
+ android : id =" @+id/settingsListItemWithBetaTag"
46
+ android : layout_width =" match_parent"
47
+ android : layout_height =" wrap_content"
48
+ app : isOn =" true"
49
+ app : leadingIcon =" @drawable/ic_dax_icon"
50
+ app : primaryText =" Settings List Item with Beta Pill"
51
+ app : showBetaPill =" true" />
52
+
53
+ <com .duckduckgo.common.ui.view.listitem.SettingsListItem
54
+ android : id =" @+id/settingsListItemWithBetaTagAndLongText"
55
+ android : layout_width =" match_parent"
56
+ android : layout_height =" wrap_content"
57
+ app : isOn =" true"
58
+ app : leadingIcon =" @drawable/ic_dax_icon"
59
+ app : primaryText =" Settings List Item with Beta Pill and a very long piece of text that should hopefully wrap"
60
+ app : showBetaPill =" true" />
61
+
62
+ </LinearLayout >
0 commit comments