WifiSettings überarbeitet, kleine fixes
[DHBWCampusApp.git] / app / src / main / res / layout / fragment_settings.xml
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     xmlns:tools="http://schemas.android.com/tools"
3     xmlns:card_view="http://schemas.android.com/apk/res-auto"
4     android:layout_width="match_parent"
5     android:layout_height="match_parent"
6     tools:context="de.dhbwloe.campusapp.fragments.Settings"
7     android:padding="8dp"
8     android:orientation="vertical">
9
10     <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
11         android:id="@+id/card_course"
12         android:layout_width="match_parent"
13         android:layout_height="wrap_content"
14         android:layout_margin="8dp"
15         card_view:cardCornerRadius="5dp">
16
17         <LinearLayout
18             android:orientation="vertical"
19             android:layout_width="match_parent"
20             android:layout_height="match_parent"
21             android:padding="4dp">
22
23             <TextView
24                 android:layout_width="wrap_content"
25                 android:layout_height="wrap_content"
26                 android:text="@string/settings_vorlesungsplan"
27                 android:textStyle="bold"
28                 android:id="@+id/textView30" />
29
30             <RelativeLayout
31                 android:layout_width="match_parent"
32                 android:layout_height="wrap_content"
33                 android:layout_below="@+id/textView30"
34                 android:layout_alignParentLeft="true"
35                 android:layout_alignParentStart="true"
36                 android:layout_alignParentTop="false"
37                 android:layout_margin="6dp">
38
39                 <TextView
40                     android:layout_width="wrap_content"
41                     android:layout_height="wrap_content"
42                     android:text="@string/settings_course_caption"
43                     android:id="@+id/textView29"
44                     android:layout_alignParentTop="false"
45                     android:layout_alignParentLeft="true"
46                     android:layout_alignParentStart="true"
47                     android:layout_alignBottom="@+id/courseNameInput"
48                     android:layout_marginBottom="8dp" />
49
50                 <EditText
51                     android:layout_width="150dp"
52                     android:layout_height="wrap_content"
53                     android:id="@+id/courseNameInput"
54                     android:layout_alignParentTop="true"
55                     android:layout_alignParentRight="true"
56                     android:layout_alignParentEnd="true" />
57
58                 <TextView
59                     android:layout_width="wrap_content"
60                     android:layout_height="wrap_content"
61                     android:text="@string/settings_course_example"
62                     android:id="@+id/textView31"
63                     android:layout_below="@+id/courseNameInput" />
64             </RelativeLayout>
65         </LinearLayout>
66
67     </android.support.v7.widget.CardView>
68     <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
69         android:id="@+id/card_role"
70         android:layout_width="match_parent"
71         android:layout_height="wrap_content"
72         android:layout_margin="8dp"
73         card_view:cardCornerRadius="5dp">
74
75         <LinearLayout
76             android:orientation="vertical"
77             android:layout_width="match_parent"
78             android:layout_height="match_parent"
79             android:padding="4dp">
80
81             <TextView
82                 android:layout_width="wrap_content"
83                 android:layout_height="wrap_content"
84                 android:text="@string/settings_mensaplan"
85                 android:textStyle="bold"
86                 android:id="@+id/textView32" />
87
88             <RelativeLayout
89                 android:layout_width="match_parent"
90                 android:layout_height="wrap_content"
91                 android:layout_below="@+id/textView32"
92                 android:layout_alignParentLeft="true"
93                 android:layout_alignParentStart="true"
94                 android:layout_alignParentTop="false"
95                 android:layout_margin="6dp">
96
97                 <TextView
98                     android:layout_width="wrap_content"
99                     android:layout_height="wrap_content"
100                     android:text="@string/settings_role_caption"
101                     android:id="@+id/textView33"
102                     android:layout_alignParentTop="false"
103                     android:layout_alignParentLeft="true"
104                     android:layout_alignParentStart="true"
105                     android:layout_marginBottom="8dp"
106                     android:layout_alignBottom="@+id/mensaRoleInput" />
107
108                 <Spinner
109                     android:layout_width="150dp"
110                     android:layout_height="wrap_content"
111                     android:id="@+id/mensaRoleInput"
112                     android:layout_alignParentTop="true"
113                     android:layout_alignParentRight="true"
114                     android:layout_alignParentEnd="true"
115                     android:entries="@array/settings_role_values" />
116
117             </RelativeLayout>
118         </LinearLayout>
119
120     </android.support.v7.widget.CardView>
121 </LinearLayout>