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