Autocomplete Feature für Kursnamen hinzugefügt (eigene API, da von DHBW nicht bereitg...
[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                 <AutoCompleteTextView
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                     android:imeOptions="actionDone"
58                     android:singleLine="true" />
59
60                 <TextView
61                     android:layout_width="wrap_content"
62                     android:layout_height="wrap_content"
63                     android:text="@string/settings_course_example"
64                     android:id="@+id/textView31"
65                     android:layout_below="@+id/courseNameInput" />
66             </RelativeLayout>
67         </LinearLayout>
68
69     </android.support.v7.widget.CardView>
70     <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
71         android:id="@+id/card_role"
72         android:layout_width="match_parent"
73         android:layout_height="wrap_content"
74         android:layout_margin="8dp"
75         card_view:cardCornerRadius="5dp">
76
77         <LinearLayout
78             android:orientation="vertical"
79             android:layout_width="match_parent"
80             android:layout_height="match_parent"
81             android:padding="4dp">
82
83             <TextView
84                 android:layout_width="wrap_content"
85                 android:layout_height="wrap_content"
86                 android:text="@string/settings_mensaplan"
87                 android:textStyle="bold"
88                 android:id="@+id/textView32" />
89
90             <RelativeLayout
91                 android:layout_width="match_parent"
92                 android:layout_height="wrap_content"
93                 android:layout_below="@+id/textView32"
94                 android:layout_alignParentLeft="true"
95                 android:layout_alignParentStart="true"
96                 android:layout_alignParentTop="false"
97                 android:layout_margin="6dp">
98
99                 <TextView
100                     android:layout_width="wrap_content"
101                     android:layout_height="wrap_content"
102                     android:text="@string/settings_role_caption"
103                     android:id="@+id/textView33"
104                     android:layout_alignParentTop="false"
105                     android:layout_alignParentLeft="true"
106                     android:layout_alignParentStart="false"
107                     android:layout_marginBottom="8dp"
108                     android:layout_alignBottom="@+id/mensaRoleInput" />
109
110                 <Spinner
111                     android:layout_width="150dp"
112                     android:layout_height="wrap_content"
113                     android:id="@+id/mensaRoleInput"
114                     android:layout_alignParentTop="true"
115                     android:layout_alignParentRight="true"
116                     android:layout_alignParentEnd="true"
117                     android:entries="@array/settings_role_values" />
118
119             </RelativeLayout>
120         </LinearLayout>
121
122     </android.support.v7.widget.CardView>
123 </LinearLayout>