AndroidAPS/wear/src/main/res/layout/action_editplusminus_item.xml

69 lines
2.4 KiB
XML
Raw Normal View History

2017-02-09 06:32:29 +01:00
<?xml version="1.0" encoding="utf-8"?>
2022-06-01 09:45:59 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/minusbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="@color/white"
android:contentDescription="@string/decrement"
android:src="@drawable/ic_action_minus"
android:tint="@color/white" />
2017-02-09 06:32:29 +01:00
<LinearLayout
2022-06-01 09:45:59 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-02-09 06:32:29 +01:00
android:layout_gravity="center"
2022-06-01 09:45:59 +02:00
android:orientation="vertical">
2017-02-09 06:32:29 +01:00
2022-06-01 09:45:59 +02:00
<EditText
android:id="@+id/amountfield"
2017-02-09 06:32:29 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2022-06-01 09:45:59 +02:00
android:cursorVisible="false"
android:gravity="center_horizontal"
android:inputType="numberDecimal"
android:minWidth="50dp"
android:padding="10dp"
android:textColor="@color/white"
android:textSize="45sp"
tools:text="112" />
2017-02-09 06:32:29 +01:00
2022-06-01 09:45:59 +02:00
<TextView
android:id="@+id/label"
2017-02-09 06:32:29 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2022-06-01 09:45:59 +02:00
android:gravity="center"
android:labelFor="@+id/amountfield"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/white"
android:textSize="25sp"
tools:ignore="LabelFor"
tools:text="label" />
2022-04-19 13:23:35 +02:00
</LinearLayout>
2022-06-01 09:45:59 +02:00
<ImageView
android:id="@+id/plusbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="@color/white"
android:contentDescription="@string/increment"
android:src="@drawable/ic_action_add"
android:tint="@color/white" />
</LinearLayout>