News Filter in ScrollView eingebettet (für kleinere Devices)
[DHBWCampusApp.git] / app / src / main / res / layout / fragment_news.xml
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2     xmlns:tools="http://schemas.android.com/tools"
3     android:layout_width="match_parent"
4     android:layout_height="match_parent"
5     tools:context="de.dhbwloe.campusapp.fragments.News"
6     android:orientation="vertical">
7
8     <!-- TODO: Update blank fragment layout -->
9
10     <HorizontalScrollView
11         android:layout_width="match_parent"
12         android:layout_height="wrap_content"
13         android:id="@+id/horizontalScrollView" >
14
15         <LinearLayout
16             android:layout_width="match_parent"
17             android:layout_height="30dp"
18             android:orientation="horizontal">
19
20             <CheckBox
21                 android:layout_width="wrap_content"
22                 android:layout_height="wrap_content"
23                 android:text="@string/news_toggle_dhbw"
24                 android:id="@+id/showDhbwNews"
25                 android:layout_marginLeft="8dp"
26                 android:layout_marginRight="8dp"
27                 android:checked="true" />
28
29             <CheckBox
30                 android:layout_width="wrap_content"
31                 android:layout_height="wrap_content"
32                 android:text="@string/news_toggle_stuv"
33                 android:id="@+id/showStuvNews"
34                 android:layout_marginLeft="8dp"
35                 android:layout_marginRight="8dp"
36                 android:checked="true" />
37
38             <CheckBox
39                 android:layout_width="wrap_content"
40                 android:layout_height="wrap_content"
41                 android:text="@string/news_toggle_stuv_events"
42                 android:id="@+id/showStuvEvents"
43                 android:layout_marginLeft="8dp"
44                 android:layout_marginRight="8dp"
45                 android:checked="true" />
46         </LinearLayout>
47     </HorizontalScrollView>
48
49     <ListView
50         android:layout_width="match_parent"
51         android:layout_height="wrap_content"
52         android:id="@+id/newsListView"
53         android:layout_gravity="center_horizontal" />
54 </LinearLayout>