1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-27 02:05:26 +02:00

add a horizontal scroll view to the graph for small devices.

This commit is contained in:
OliE
2018-01-14 11:22:24 +01:00
parent ea83911be8
commit 2f66dc0e65

View File

@@ -1,22 +1,26 @@
<android.support.design.widget.CoordinatorLayout <android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical">
android:weightSum="1">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fillViewport="true">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/colorPrimary" android:background="?attr/colorPrimary"
android:orientation="horizontal"
android:gravity="center" android:gravity="center"
android:orientation="horizontal"
android:padding="5dp"> android:padding="5dp">
<android.support.design.widget.FloatingActionButton <android.support.design.widget.FloatingActionButton
@@ -108,6 +112,7 @@
app:rippleColor="#FFFF00" /> app:rippleColor="#FFFF00" />
</LinearLayout> </LinearLayout>
</HorizontalScrollView>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"