News Filter in ScrollView eingebettet (für kleinere Devices)
authorpk910 <philipp@pk910.de>
Wed, 9 Mar 2016 13:55:33 +0000 (14:55 +0100)
committerpk910 <philipp@pk910.de>
Wed, 9 Mar 2016 13:55:33 +0000 (14:55 +0100)
app/src/main/res/layout/fragment_news.xml

index a99cc88fdc9e02d4220a6ab24ec710558a6f1488..8e941cf0840cfb90f7c91f3e9bb3cb13e5cfb838 100644 (file)
@@ -7,38 +7,44 @@
 
     <!-- TODO: Update blank fragment layout -->
 
-    <LinearLayout
+    <HorizontalScrollView
         android:layout_width="match_parent"
-        android:layout_height="30dp"
-        android:orientation="horizontal">
+        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" />
+            <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" />
+            <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>
+            <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"