[FIX] For wear OS, fixes main menu items layout, allowing longer labels to be displayed properly. It uses API26+ autosizing to fit longer menu entries.

This commit is contained in:
Dominik Dzienia 2019-12-10 12:16:16 +01:00
parent b69af95791
commit 7ec1bbc260

View file

@ -0,0 +1,23 @@
<info.nightscout.androidaps.interaction.utils.WearableListItemLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="80dp">
<TextView
android:id="@+id/actionitem"
android:gravity="center_vertical|center_horizontal"
android:layout_width="match_parent"
android:layout_marginRight="16dp"
android:layout_marginLeft="16dp"
android:layout_height="match_parent"
android:fontFamily="sans-serif-condensed-light"
android:lineSpacingExtra="-4sp"
android:textColor="@color/dark_statusView"
android:textSize="32sp"
android:autoSizeTextType="uniform"
android:autoSizeMinTextSize="12sp"
android:autoSizeMaxTextSize="32sp"
android:autoSizeStepGranularity="2sp"
/>
</info.nightscout.androidaps.interaction.utils.WearableListItemLayout>