1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

Add scrollview to activity detail to handle landscape view

This commit is contained in:
vanous 2021-03-11 13:28:04 +01:00
parent 54409fbe55
commit 9cfb172bac

View File

@ -1,24 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_battery_info_master_layout"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:gravity="center|center_vertical"
android:minWidth="1000dp"
android:orientation="vertical">
android:layout_height="match_parent">
<include layout="@layout/activity_list_item"
android:id="@+id/activityItemHolder"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
<FrameLayout
android:id="@+id/chartsFragmentHolder"
<LinearLayout
android:id="@+id/activity_battery_info_master_layout"
android:layout_width="match_parent"
android:layout_height="300dp"></FrameLayout>
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:gravity="center|center_vertical"
android:minWidth="1000dp"
android:orientation="vertical">
<include
android:id="@+id/activityItemHolder"
layout="@layout/activity_list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout
android:id="@+id/chartsFragmentHolder"
android:layout_width="match_parent"
android:layout_height="300dp" />
</LinearLayout>
</ScrollView>