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