Merge pull request #2262 from dlvoy/hotfix/wear_main_menu_long_items
[FIX] For wear OS, fixes main menu item layout for long items
This commit is contained in:
commit
bc583aaa7a
23
wear/src/main/res/layout-v26/list_item.xml
Normal file
23
wear/src/main/res/layout-v26/list_item.xml
Normal 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>
|
||||||
|
|
Loading…
Reference in a new issue