News Filter in ScrollView eingebettet (für kleinere Devices)
[DHBWCampusApp.git] / app / src / main / res / layout / fragment_news.xml
index a4d4419cddba8172dce6928a8e83e36571cb38c2..8e941cf0840cfb90f7c91f3e9bb3cb13e5cfb838 100644 (file)
@@ -1,13 +1,54 @@
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    tools:context="de.dhbwloe.campusapp.fragments.News">
+    tools:context="de.dhbwloe.campusapp.fragments.News"
+    android:orientation="vertical">
 
     <!-- TODO: Update blank fragment layout -->
-    <TextView
+
+    <HorizontalScrollView
         android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:text="{News}" />
+        android:layout_height="wrap_content"
+        android:id="@+id/horizontalScrollView" >
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="30dp"
+            android:orientation="horizontal">
+
+            <CheckBox
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/news_toggle_dhbw"
+                android:id="@+id/showDhbwNews"
+                android:layout_marginLeft="8dp"
+                android:layout_marginRight="8dp"
+                android:checked="true" />
 
-</FrameLayout>
+            <CheckBox
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/news_toggle_stuv"
+                android:id="@+id/showStuvNews"
+                android:layout_marginLeft="8dp"
+                android:layout_marginRight="8dp"
+                android:checked="true" />
+
+            <CheckBox
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/news_toggle_stuv_events"
+                android:id="@+id/showStuvEvents"
+                android:layout_marginLeft="8dp"
+                android:layout_marginRight="8dp"
+                android:checked="true" />
+        </LinearLayout>
+    </HorizontalScrollView>
+
+    <ListView
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:id="@+id/newsListView"
+        android:layout_gravity="center_horizontal" />
+</LinearLayout>