1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
3+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4+ xmlns : tools =" http://schemas.android.com/tools"
5+ android : layout_width =" match_parent"
6+ android : layout_height =" match_parent"
7+ android : orientation =" vertical"
8+ tools : context =" .Fragments.SwitchFragment" >
9+
10+ <LinearLayout
11+ android : layout_width =" match_parent"
12+ android : layout_height =" match_parent"
13+ android : gravity =" center"
14+ android : orientation =" vertical" >
15+
16+ <com .dvinfosys.widgets.Switch.SwitchButton
17+ android : id =" @+id/switch_button"
18+ android : layout_width =" wrap_content"
19+ android : layout_height =" wrap_content"
20+ android : layout_gravity =" center"
21+ android : layout_marginTop =" 10dp" />
22+
23+ <com .dvinfosys.widgets.Switch.SwitchButton
24+ android : layout_width =" wrap_content"
25+ android : layout_height =" wrap_content"
26+ android : layout_marginTop =" 10dp"
27+ app : sb_checked =" true" />
28+
29+ <com .dvinfosys.widgets.Switch.SwitchButton
30+ android : layout_width =" wrap_content"
31+ android : layout_height =" wrap_content"
32+ android : layout_marginTop =" 10dp"
33+ app : sb_checked =" true"
34+ app : show_indicator =" false" />
35+
36+ <com .dvinfosys.widgets.Switch.SwitchButton
37+ android : layout_width =" wrap_content"
38+ android : layout_height =" wrap_content"
39+ android : layout_marginTop =" 10dp"
40+ app : sb_checked =" true"
41+ app : sb_checked_color =" #fdc951" />
42+
43+ <com .dvinfosys.widgets.Switch.SwitchButton
44+ android : layout_width =" wrap_content"
45+ android : layout_height =" wrap_content"
46+ android : layout_marginTop =" 10dp"
47+ app : sb_background =" #FFF"
48+ app : sb_button_color =" #db99c7"
49+ app : sb_checked_color =" #A36F95"
50+ app : sb_checkline_color =" #a5dc88"
51+ app : sb_shadow_color =" #A36F95"
52+ app : sb_uncheckcircle_color =" #A36F95" />
53+
54+ <com .dvinfosys.widgets.Switch.SwitchButton
55+ android : layout_width =" wrap_content"
56+ android : layout_height =" wrap_content"
57+ android : layout_marginTop =" 10dp"
58+ app : sb_enable_effect =" false" />
59+
60+ <com .dvinfosys.widgets.Switch.NormalSwitch
61+ android : layout_width =" wrap_content"
62+ android : layout_height =" wrap_content"
63+ android : layout_gravity =" center"
64+ android : layout_margin =" 8dp"
65+ android : text =" Normal Switch"
66+ android : textAllCaps =" false" />
67+
68+ <com .dvinfosys.widgets.Switch.HeadingSwitch
69+ android : layout_width =" wrap_content"
70+ android : layout_height =" wrap_content"
71+ android : layout_gravity =" center"
72+ android : layout_margin =" 8dp"
73+ android : text =" heading Switch"
74+ android : textAllCaps =" false" />
75+
76+ <com .dvinfosys.widgets.Switch.BlackSwitch
77+ android : layout_width =" wrap_content"
78+ android : layout_height =" wrap_content"
79+ android : layout_gravity =" center"
80+ android : layout_margin =" 8dp"
81+ android : text =" Black Switch"
82+ android : textAllCaps =" false" />
83+
84+ <com .dvinfosys.widgets.Switch.ExtraBoldSwitch
85+ android : layout_width =" wrap_content"
86+ android : layout_height =" wrap_content"
87+ android : layout_gravity =" center"
88+ android : layout_margin =" 8dp"
89+ android : text =" ExtraBold Switch"
90+ android : textAllCaps =" false" />
91+
92+ <com .dvinfosys.widgets.Switch.ItalicSwitch
93+ android : layout_width =" wrap_content"
94+ android : layout_height =" wrap_content"
95+ android : layout_gravity =" center"
96+ android : layout_margin =" 8dp"
97+ android : text =" Italic Switch"
98+ android : textAllCaps =" false" />
99+
100+ <com .dvinfosys.widgets.Switch.LightSwitch
101+ android : layout_width =" wrap_content"
102+ android : layout_height =" wrap_content"
103+ android : layout_gravity =" center"
104+ android : layout_margin =" 8dp"
105+ android : text =" Light Switch"
106+ android : textAllCaps =" false" />
107+
108+ <com .dvinfosys.widgets.Switch.SemiBoldSwitch
109+ android : layout_width =" wrap_content"
110+ android : layout_height =" wrap_content"
111+ android : layout_gravity =" center"
112+ android : layout_margin =" 8dp"
113+ android : text =" SemiBold Switch"
114+ android : textAllCaps =" false" />
115+
116+ <com .dvinfosys.widgets.Switch.ThinSwitch
117+ android : layout_width =" wrap_content"
118+ android : layout_height =" wrap_content"
119+ android : layout_gravity =" center"
120+ android : layout_margin =" 8dp"
121+ android : text =" Thin Switch"
122+ android : textAllCaps =" false" />
123+
124+ </LinearLayout >
125+
126+ </ScrollView >
0 commit comments