|
133 | 133 | android:background="@color/background_divider"/>
|
134 | 134 |
|
135 | 135 | <LinearLayout
|
136 |
| - android:id="@+id/ll_favorites" |
| 136 | + android:id="@+id/ll_night" |
| 137 | + style="@style/ItemStyle" |
137 | 138 | android:layout_width="match_parent"
|
138 |
| - android:layout_height="wrap_content"> |
| 139 | + android:layout_height="wrap_content" |
| 140 | + android:gravity="center_vertical"> |
139 | 141 |
|
140 | 142 | <TextView
|
141 |
| - style="@style/ItemStyle" |
142 |
| - android:layout_width="match_parent" |
| 143 | + android:layout_width="0dp" |
143 | 144 | android:layout_height="wrap_content"
|
144 |
| - android:text="@string/my_favorites" |
145 |
| - android:textColor="@color/ph1"/> |
| 145 | + android:layout_weight="1" |
| 146 | + android:drawableRight="@android:color/transparent" |
| 147 | + android:text="@string/night_mode" |
| 148 | + android:textColor="@color/ph1" |
| 149 | + android:textSize="16sp"/> |
| 150 | + |
| 151 | + <com.kyleduo.switchbutton.SwitchButton |
| 152 | + android:id="@+id/sb_night_mode" |
| 153 | + android:layout_width="wrap_content" |
| 154 | + android:layout_height="wrap_content" |
| 155 | + android:layout_centerInParent="true" |
| 156 | + app:kswBackDrawable="@drawable/sb_default_back_drawable" |
| 157 | + app:kswBackMeasureRatio="2.5" |
| 158 | + app:kswThumbDrawable="@drawable/sb_default_thumb_drawable" |
| 159 | + app:kswThumbHeight="10dp" |
| 160 | + app:kswThumbMargin="3dp" |
| 161 | + app:kswThumbWidth="10dp"/> |
146 | 162 |
|
147 | 163 | </LinearLayout>
|
148 | 164 |
|
149 | 165 | <LinearLayout
|
150 |
| - android:id="@+id/ll_feedback" |
| 166 | + android:id="@+id/ll_favorites" |
151 | 167 | android:layout_width="match_parent"
|
152 | 168 | android:layout_height="wrap_content">
|
153 | 169 |
|
154 | 170 | <TextView
|
155 | 171 | style="@style/ItemStyle"
|
156 | 172 | android:layout_width="match_parent"
|
157 | 173 | android:layout_height="wrap_content"
|
158 |
| - android:text="@string/feedback" |
| 174 | + android:text="@string/my_favorites" |
159 | 175 | android:textColor="@color/ph1"/>
|
160 | 176 |
|
161 | 177 | </LinearLayout>
|
162 | 178 |
|
163 |
| - |
164 | 179 | <LinearLayout
|
165 |
| - android:id="@+id/ll_setting" |
| 180 | + android:id="@+id/ll_feedback" |
166 | 181 | android:layout_width="match_parent"
|
167 | 182 | android:layout_height="wrap_content">
|
168 | 183 |
|
169 | 184 | <TextView
|
170 | 185 | style="@style/ItemStyle"
|
171 | 186 | android:layout_width="match_parent"
|
172 | 187 | android:layout_height="wrap_content"
|
173 |
| - android:text="@string/setting" |
| 188 | + android:text="@string/feedback" |
174 | 189 | android:textColor="@color/ph1"/>
|
175 | 190 |
|
176 | 191 | </LinearLayout>
|
177 | 192 |
|
| 193 | + |
178 | 194 | <LinearLayout
|
179 |
| - android:id="@+id/ll_night" |
| 195 | + android:id="@+id/ll_setting" |
180 | 196 | android:layout_width="match_parent"
|
181 | 197 | android:layout_height="wrap_content">
|
182 | 198 |
|
183 | 199 | <TextView
|
184 | 200 | style="@style/ItemStyle"
|
185 | 201 | android:layout_width="match_parent"
|
186 | 202 | android:layout_height="wrap_content"
|
187 |
| - android:text="@string/night_mode" |
| 203 | + android:text="@string/setting" |
188 | 204 | android:textColor="@color/ph1"/>
|
189 | 205 |
|
190 | 206 | </LinearLayout>
|
|
0 commit comments