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

71 lines
2.6 KiB
XML
Raw Normal View History

2016-06-04 17:28:05 +02:00
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.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"
android:id="@+id/objective_cardview"
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"
android:orientation="vertical" />
2016-06-04 17:28:05 +02:00
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" />
2016-06-04 17:28:05 +02:00
</LinearLayout>
</android.support.v7.widget.CardView>