1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-18 16:09:30 +01:00

Vertically center widgets

This commit is contained in:
Arjan Schrijver 2024-02-21 23:41:03 +01:00
parent 582d50a38f
commit 0774d03603
4 changed files with 12 additions and 8 deletions

View File

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" 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"
android:gravity="center_vertical"
tools:context=".activities.dashboard.DashboardActiveTimeWidget"> tools:context=".activities.dashboard.DashboardActiveTimeWidget">
<RelativeLayout <RelativeLayout
@ -38,4 +39,4 @@
</RelativeLayout> </RelativeLayout>
</FrameLayout> </LinearLayout>

View File

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" 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"
android:gravity="center_vertical"
tools:context=".activities.dashboard.DashboardDistanceWidget"> tools:context=".activities.dashboard.DashboardDistanceWidget">
<RelativeLayout <RelativeLayout
@ -38,4 +39,4 @@
</RelativeLayout> </RelativeLayout>
</FrameLayout> </LinearLayout>

View File

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" 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"
android:gravity="center_vertical"
tools:context=".activities.dashboard.DashboardSleepWidget"> tools:context=".activities.dashboard.DashboardSleepWidget">
<RelativeLayout <RelativeLayout
@ -38,4 +39,4 @@
</RelativeLayout> </RelativeLayout>
</FrameLayout> </LinearLayout>

View File

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" 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"
android:gravity="center_vertical"
tools:context=".activities.dashboard.DashboardStepsWidget"> tools:context=".activities.dashboard.DashboardStepsWidget">
<RelativeLayout <RelativeLayout
@ -38,4 +39,4 @@
</RelativeLayout> </RelativeLayout>
</FrameLayout> </LinearLayout>