AndroidAPS/app/src/main/res/layout/objectives_item.xml

123 lines
4.4 KiB
XML
Raw Normal View History

2016-06-04 17:28:05 +02:00
<?xml version="1.0" encoding="utf-8"?>
2019-05-16 13:57:37 +02:00
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
2018-06-09 22:07:41 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2016-06-04 17:28:05 +02:00
android:layout_width="match_parent"
2016-06-05 01:40:35 +02:00
android:layout_height="wrap_content"
2016-06-04 17:28:05 +02:00
android:layout_gravity="center"
2018-06-09 22:07:41 +02:00
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="16dp"
app:cardBackgroundColor="@color/colorPrimary"
app:cardCornerRadius="2dp"
app:cardUseCompatPadding="true"
app:contentPadding="16dp">
2016-06-04 17:28:05 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2018-06-09 22:07:41 +02:00
<TextView
android:id="@+id/objective_title"
android:layout_width="wrap_content"
2016-06-04 17:28:05 +02:00
android:layout_height="wrap_content"
2018-06-09 22:07:41 +02:00
android:fontFamily="sans-serif-medium"
android:textColor="#FFFFFF"
android:textSize="20sp"
tools:text="1. Title" />
<TextView
android:id="@+id/objective_objective"
android:layout_width="wrap_content"
2016-06-15 21:47:26 +02:00
android:layout_height="wrap_content"
2018-06-09 22:07:41 +02:00
android:layout_marginTop="8dp"
android:textColor="#FFFFFF"
tools:text="Objective" />
2016-06-15 21:47:26 +02:00
2018-06-09 22:07:41 +02:00
<TextView
android:id="@+id/objective_gate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#FFFFFF"
android:textStyle="bold"
tools:text="Gate" />
2016-06-27 18:48:48 +02:00
2016-06-04 17:28:05 +02:00
<LinearLayout
2018-06-09 22:07:41 +02:00
android:id="@+id/objective_progress"
2016-06-04 17:28:05 +02:00
android:layout_width="match_parent"
2018-06-09 22:07:41 +02:00
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
2019-09-02 08:42:25 +02:00
android:orientation="vertical" >
</LinearLayout>
2018-06-09 22:07:41 +02:00
<Button
android:id="@+id/objective_verify"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/objectives_button_verify" />
2016-06-04 17:28:05 +02:00
2018-06-09 22:07:41 +02:00
<Button
android:id="@+id/objective_start"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/objectives_button_start" />
2018-07-30 18:51:36 +02:00
<Button
android:id="@+id/objective_back"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/objectives_button_back" />
2019-09-01 10:33:17 +02:00
2019-09-02 23:10:31 +02:00
<TextView
android:id="@+id/objective_inputhint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/enter_code_obtained_from_developers_to_bypass_the_rest_of_objectives" />
2019-09-05 20:53:53 +02:00
<TextView
android:id="@+id/objective_requestcode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Request code: XXXXX" />
2019-09-02 23:10:31 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<EditText
android:id="@+id/objective_input"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:hint="XXXXXXXXXX"
android:inputType="text" />
<Button
android:id="@+id/objective_enterbutton"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/objectives_button_enter" />
</LinearLayout>
2019-09-01 10:33:17 +02:00
<TextView
android:id="@+id/objective_accomplished"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#FFFFFF"
tools:text="Accomplished" />
2016-06-04 17:28:05 +02:00
</LinearLayout>
2019-05-16 13:57:37 +02:00
</androidx.cardview.widget.CardView>