Mensa Bild angepasst & links auf dem Dashboard hinzugefĆ¼gt
[DHBWCampusApp.git] / app / src / main / res / layout / fragment_dashboard.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=".fragments.Dashboard"
7     android:orientation="vertical">
8
9     <!-- TODO: Update blank fragment layout -->
10     <ScrollView
11         android:layout_width="wrap_content"
12         android:layout_height="match_parent"
13         android:id="@+id/scrollView5" >
14         <LinearLayout
15             android:layout_width="match_parent"
16             android:layout_height="match_parent"
17             android:orientation="vertical">
18
19             <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
20                 android:id="@+id/card_timetable"
21                 android:layout_width="match_parent"
22                 android:layout_height="180dp"
23                 android:layout_margin="8dp"
24                 card_view:cardCornerRadius="5dp">
25
26                 <RelativeLayout
27                     android:layout_width="match_parent"
28                     android:layout_height="match_parent">
29
30                     <ImageView
31                         android:layout_width="fill_parent"
32                         android:layout_height="70dp"
33                         android:id="@+id/timetable_image"
34                         android:layout_alignParentTop="true"
35                         android:layout_alignParentLeft="true"
36                         android:layout_alignParentStart="true"
37                         android:src="@drawable/header_kalender"
38                         android:scaleType="centerCrop" />
39
40                     <TextView
41                         android:id="@+id/title"
42                         android:layout_width="wrap_content"
43                         android:layout_height="wrap_content"
44                         android:maxLines="3"
45                         android:padding="8dp"
46                         android:text="@string/dashboard_calendar_title"
47                         android:textColor="#222"
48                         android:textStyle="bold"
49                         android:textSize="22dp" />
50
51                     <fragment
52                         android:layout_width="match_parent"
53                         android:layout_height="fill_parent"
54                         android:name="de.dhbwloe.campusapp.fragments.DashboardVorlesungsplan"
55                         android:layout_below="@+id/timetable_image"
56                         android:layout_alignParentLeft="true"
57                         android:layout_alignParentStart="true"
58                         android:id="@+id/fragment_timetable"
59                         tools:layout="@layout/fragment_dashboard_timetable" />
60
61                 </RelativeLayout>
62             </android.support.v7.widget.CardView>
63
64             <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
65                 android:id="@+id/card_mensa"
66                 android:layout_width="match_parent"
67                 android:layout_height="220dp"
68                 android:layout_margin="8dp"
69                 card_view:cardCornerRadius="5dp">
70
71                 <RelativeLayout
72                     android:layout_width="match_parent"
73                     android:layout_height="match_parent">
74
75                     <ImageView
76                         android:layout_width="fill_parent"
77                         android:layout_height="80dp"
78                         android:id="@+id/mensa_image"
79                         android:layout_alignParentTop="true"
80                         android:layout_alignParentLeft="true"
81                         android:layout_alignParentStart="true"
82                         android:src="@drawable/dhbw_mensa"
83                         android:scaleType="centerCrop" />
84
85                     <TextView
86                         android:layout_width="wrap_content"
87                         android:layout_height="wrap_content"
88                         android:maxLines="3"
89                         android:padding="8dp"
90                         android:text="@string/dashboard_mensa_title"
91                         android:textColor="#222"
92                         android:textStyle="bold"
93                         android:textSize="22dp"
94                         android:id="@+id/textView15" />
95
96                     <fragment
97                         android:layout_width="match_parent"
98                         android:layout_height="fill_parent"
99                         android:name="de.dhbwloe.campusapp.fragments.DashboardMensa"
100                         android:id="@+id/fragment_mensa"
101                         android:layout_below="@+id/mensa_image"
102                         android:layout_alignParentLeft="true"
103                         android:layout_alignParentStart="true"
104                         tools:layout="@layout/fragment_dashboard_mensa_menu" />
105
106                 </RelativeLayout>
107             </android.support.v7.widget.CardView>
108
109             <LinearLayout
110                 android:orientation="horizontal"
111                 android:layout_width="match_parent"
112                 android:layout_height="wrap_content">
113
114                 <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
115                     android:id="@+id/card_view2"
116                     android:layout_width="wrap_content"
117                     android:layout_height="140dp"
118                     android:layout_margin="8dp"
119                     android:layout_weight="1"
120                     card_view:cardCornerRadius="5dp">
121
122                     <RelativeLayout
123                         android:layout_width="match_parent"
124                         android:layout_height="match_parent">
125
126                         <ImageView
127                             android:layout_width="wrap_content"
128                             android:layout_height="60dp"
129                             android:id="@+id/news_dhbw_image"
130                             android:layout_alignParentTop="true"
131                             android:layout_alignParentLeft="true"
132                             android:layout_alignParentStart="true"
133                             android:src="@drawable/header_dhbw"
134                             android:scaleType="fitCenter"
135                             android:background="#ffffff" />
136
137                         <fragment
138                             android:layout_width="match_parent"
139                             android:layout_height="fill_parent"
140                             android:name="de.dhbwloe.campusapp.fragments.DashboardNewsDhbw"
141                             android:id="@+id/fragment_dhbw"
142                             android:layout_below="@+id/news_dhbw_image"
143                             android:layout_alignParentLeft="true"
144                             android:layout_alignParentStart="true"
145                             tools:layout="@layout/fragment_dashboard_news_entry" />
146
147                     </RelativeLayout>
148                 </android.support.v7.widget.CardView>
149
150                 <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
151                     android:id="@+id/card_view3"
152                     android:layout_width="wrap_content"
153                     android:layout_height="140dp"
154                     android:layout_margin="8dp"
155                     android:layout_weight="1"
156                     card_view:cardCornerRadius="5dp">
157
158                     <RelativeLayout
159                         android:layout_width="match_parent"
160                         android:layout_height="match_parent">
161
162                         <ImageView
163                             android:layout_width="wrap_content"
164                             android:layout_height="60dp"
165                             android:id="@+id/news_stuv_image"
166                             android:layout_alignParentTop="true"
167                             android:layout_alignParentLeft="true"
168                             android:layout_alignParentStart="true"
169                             android:src="@drawable/header_stuv"
170                             android:scaleType="fitCenter"
171                             android:background="#ffffff" />
172
173                         <fragment
174                             android:layout_width="match_parent"
175                             android:layout_height="fill_parent"
176                             android:name="de.dhbwloe.campusapp.fragments.DashboardNewsStuv"
177                             android:id="@+id/fragment_stuv"
178                             android:layout_below="@+id/news_stuv_image"
179                             android:layout_alignParentLeft="true"
180                             android:layout_alignParentStart="true"
181                             tools:layout="@layout/fragment_dashboard_news_none" />
182
183                     </RelativeLayout>
184                 </android.support.v7.widget.CardView>
185
186             </LinearLayout>
187         </LinearLayout>
188     </ScrollView>
189 </LinearLayout>