alpha 0.0.2
[DHBWCampusApp.git] / app / src / main / res / layout / fragment_news.xml
index a4d4419cddba8172dce6928a8e83e36571cb38c2..a99cc88fdc9e02d4220a6ab24ec710558a6f1488 100644 (file)
@@ -1,13 +1,48 @@
-<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
+
+    <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:text="{News}" />
+        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" />
+
+        <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" />
 
-</FrameLayout>
+        <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>
+
+    <ListView
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:id="@+id/newsListView"
+        android:layout_gravity="center_horizontal" />
+</LinearLayout>