Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_settings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3                 android:layout_width="match_parent"
4                 android:layout_height="match_parent"
5                 android:background="@color/colorPrimaryDark">
6
7     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
8                   xmlns:app="http://schemas.android.com/apk/res-auto"
9                   xmlns:tools="http://schemas.android.com/tools"
10                   android:layout_width="match_parent"
11                   android:layout_height="match_parent"
12                   android:orientation="vertical">
13
14         <LinearLayout
15             android:layout_width="match_parent"
16             android:layout_height="wrap_content"
17             android:paddingBottom="@dimen/settings_bottom_padding"
18             android:paddingEnd="@dimen/settings_padding"
19             android:paddingStart="@dimen/settings_padding"
20             android:paddingTop="@dimen/settings_padding">
21
22             <android.support.v7.widget.SwitchCompat
23                 android:id="@+id/swNotifications"
24                 android:layout_width="match_parent"
25                 android:layout_height="wrap_content"
26                 android:text="@string/settings_notifications"
27                 android:textAllCaps="true"
28                 android:textColor="@color/white"
29                 android:textSize="@dimen/settings_text_size"
30                 app:theme="@style/DarkBackgroundSwitch"
31                 tools:ignore="RtlHardcoded,SpUsage"/>
32
33         </LinearLayout>
34
35         <View
36             android:id="@+id/first_separator"
37             style="@style/SettingsSeparator"
38             android:layout_width="match_parent"
39             android:layout_height="1dp"/>
40
41         <RelativeLayout
42             android:layout_width="match_parent"
43             android:layout_height="wrap_content"
44             android:paddingBottom="@dimen/settings_bottom_padding"
45             android:paddingEnd="@dimen/settings_padding"
46             android:paddingStart="@dimen/settings_padding"
47             android:paddingTop="@dimen/settings_bottom_padding">
48
49             <TextView
50                 android:id="@+id/tv_subscribtion"
51                 android:layout_width="match_parent"
52                 android:layout_height="wrap_content"
53                 android:layout_centerVertical="true"
54                 android:layout_marginEnd="15dp"
55                 android:layout_toStartOf="@id/tvState"
56                 android:text="@string/subscribtion_state"
57                 android:textAllCaps="true"
58                 android:textColor="@color/white"
59                 android:textSize="@dimen/settings_text_size"/>
60
61             <TextView
62                 android:id="@+id/tvState"
63                 android:layout_width="wrap_content"
64                 android:layout_height="wrap_content"
65                 android:layout_alignParentEnd="true"
66                 android:layout_centerVertical="true"
67                 android:text="@string/inactive"
68                 android:textAllCaps="true"
69                 android:textColor="@color/white"
70                 android:textSize="@dimen/settings_text_size"/>
71
72         </RelativeLayout>
73
74         <View
75             android:id="@+id/second_separator"
76             style="@style/SettingsSeparator"
77             android:layout_width="match_parent"
78             android:layout_height="1dp"/>
79
80         <RelativeLayout
81             android:layout_width="match_parent"
82             android:layout_height="wrap_content"
83             android:paddingBottom="@dimen/settings_bottom_padding"
84             android:paddingEnd="@dimen/settings_padding"
85             android:paddingStart="@dimen/settings_padding"
86             android:paddingTop="@dimen/settings_bottom_padding">
87
88             <TextView
89                 android:id="@+id/tv_delete"
90                 android:layout_width="match_parent"
91                 android:layout_height="wrap_content"
92                 android:layout_centerVertical="true"
93                 android:layout_marginEnd="15dp"
94                 android:layout_toStartOf="@id/btnDelete"
95                 android:text="@string/delete_files"
96                 android:textAllCaps="true"
97                 android:textColor="@color/white"
98                 android:textSize="@dimen/settings_text_size"/>
99
100             <Button
101                 android:id="@+id/btnDelete"
102                 style="@style/RoundedButton.WhiteBorder"
103                 android:layout_alignParentEnd="true"
104                 android:layout_centerVertical="true"
105                 android:layout_weight="0"
106                 android:text="@string/delete"/>
107
108         </RelativeLayout>
109
110     </LinearLayout>
111
112     <Button
113         android:id="@+id/btnBecomeAFriend"
114         style="@style/RoundedButton.Orange"
115         android:layout_alignParentBottom="true"
116         android:layout_centerHorizontal="true"
117         android:layout_marginBottom="15dp"
118         android:text="@string/become_a_friend"/>
119
120 </RelativeLayout>