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

132 lines
5.3 KiB
XML
Raw Normal View History

2017-02-09 06:32:29 +01:00
<?xml version="1.0" encoding="utf-8"?>
2022-06-26 13:17:16 +02:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2022-06-01 09:45:59 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2022-06-26 13:17:16 +02:00
android:layout_height="match_parent">
2022-06-01 09:45:59 +02:00
2022-06-26 13:17:16 +02:00
<View
android:id="@+id/center"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/edit_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="-10dp"
android:layout_marginHorizontal="10dp"
android:cursorVisible="false"
android:inputType="numberDecimal"
android:textColor="@color/white"
android:textSize="40sp"
android:gravity="center"
app:layout_constraintEnd_toEndOf="@+id/value_background"
app:layout_constraintStart_toStartOf="@+id/value_background"
app:layout_constraintTop_toTopOf="@+id/value_background"
tools:text="123" />
<TextView
android:id="@+id/label"
2022-06-01 09:45:59 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-06-26 13:17:16 +02:00
android:layout_marginTop="-8dp"
android:layout_below="@+id/edit_text"
android:gravity="center"
android:labelFor="@+id/edit_text"
android:textColor="@color/white"
android:textSize="25sp"
app:layout_constraintEnd_toEndOf="@+id/edit_text"
app:layout_constraintStart_toStartOf="@+id/edit_text"
app:layout_constraintTop_toBottomOf="@id/edit_text"
tools:ignore="LabelFor"
tools:text="label" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/minus_button"
android:layout_width="48dp"
android:layout_height="48dp"
2022-06-01 09:45:59 +02:00
android:background="@drawable/circle"
android:backgroundTint="@color/white"
android:contentDescription="@string/decrement"
android:src="@drawable/ic_action_minus"
2022-06-26 13:17:16 +02:00
android:tint="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintCircle="@+id/center"
app:layout_constraintCircleAngle="145"
app:layout_constraintCircleRadius="70dp"
app:layout_constraintLeft_toLeftOf="parent" />
2017-02-09 06:32:29 +01:00
2022-06-26 13:17:16 +02:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/plus_button3"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="@drawable/circle"
android:backgroundTint="@color/white"
android:gravity="center"
android:textColor="@color/white"
android:textSize="25sp"
android:visibility="visible"
app:layout_constraintCircle="@+id/center"
app:layout_constraintCircleAngle="325"
app:layout_constraintCircleRadius="70dp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="+10" />
2017-02-09 06:32:29 +01:00
2022-06-26 13:17:16 +02:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/plus_button2"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="@drawable/circle"
android:backgroundTint="@color/white"
android:gravity="center"
android:textColor="@color/white"
android:textSize="30sp"
app:layout_constraintBottom_toTopOf="@+id/plus_button1"
app:layout_constraintCircle="@+id/center"
app:layout_constraintCircleAngle="270"
app:layout_constraintCircleRadius="70dp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/plus_button3"
tools:text="+5" />
2017-02-09 06:32:29 +01:00
2022-06-26 13:17:16 +02:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/value_background"
android:layout_width="108dp"
android:layout_height="108dp"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:background="@drawable/circle"
android:backgroundTint="@color/gray_700"
android:contentDescription="@string/increment"
app:layout_constraintBottom_toTopOf="@+id/minus_button"
app:layout_constraintCircle="@+id/center"
app:layout_constraintCircleAngle="55"
app:layout_constraintCircleRadius="40dp"
app:layout_constraintRight_toLeftOf="@id/plus_button1">
2022-04-19 13:23:35 +02:00
2022-06-26 13:17:16 +02:00
</androidx.appcompat.widget.AppCompatImageView>
2022-04-19 13:23:35 +02:00
2022-06-23 20:31:40 +02:00
<androidx.appcompat.widget.AppCompatImageButton
2022-06-26 13:17:16 +02:00
android:id="@+id/plus_button1"
android:layout_width="48dp"
android:layout_height="48dp"
2022-06-01 09:45:59 +02:00
android:layout_gravity="center"
android:background="@drawable/circle"
android:backgroundTint="@color/white"
android:contentDescription="@string/increment"
android:src="@drawable/ic_action_add"
2022-06-26 13:17:16 +02:00
android:tint="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintCircle="@+id/center"
app:layout_constraintCircleAngle="215"
app:layout_constraintCircleRadius="70dp"
app:layout_constraintRight_toRightOf="parent" />
2022-06-01 09:45:59 +02:00
2022-06-26 13:17:16 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>