1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 09:35:50 +01:00

Dashboard: Material 3 month changing buttons in calendar

This commit is contained in:
Arjan Schrijver 2024-04-09 09:34:58 +02:00
parent 8ce0983cb4
commit 50c7520349

View File

@ -9,33 +9,34 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp"
android:orientation="horizontal"> android:orientation="horizontal">
<Button
android:id="@+id/arrow_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="0dp"
android:text="\u003C"
android:textStyle="bold"
android:textSize="20sp"
android:layout_alignParentLeft="true" />
<TextView <TextView
android:id="@+id/calendar_month" android:id="@+id/calendar_month"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="@string/calendar_month" android:text="@string/calendar_month"
android:textStyle="bold" android:textStyle="bold"
android:textSize="30sp" /> android:textSize="25sp"
<TextView android:layout_centerInParent="true" />
android:id="@+id/arrow_left" <Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="\u003C"
android:textStyle="bold"
android:textSize="40sp"
android:paddingHorizontal="8dp"
android:layout_toLeftOf="@+id/arrow_right" />
<TextView
android:id="@+id/arrow_right" android:id="@+id/arrow_right"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minWidth="0dp"
android:text="\u003E" android:text="\u003E"
android:textStyle="bold" android:textStyle="bold"
android:textSize="40sp" android:textSize="20sp"
android:paddingHorizontal="8dp" android:layout_alignParentRight="true" />
android:layout_alignParentEnd="true"/>
</RelativeLayout> </RelativeLayout>
<androidx.gridlayout.widget.GridLayout <androidx.gridlayout.widget.GridLayout