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"
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/objectives_cardview"
|
|
|
|
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"
|
|
|
|
card_view:cardBackgroundColor="@color/cardColorBackground"
|
|
|
|
card_view:cardCornerRadius="6dp"
|
|
|
|
card_view:cardUseCompatPadding="true"
|
|
|
|
card_view:contentPadding="6dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_position"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:background="@drawable/circle"
|
|
|
|
android:gravity="center"
|
|
|
|
android:shadowRadius="10.0"
|
|
|
|
android:text="1"
|
|
|
|
android:textColor="@color/cardObjectiveText"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:baselineAligned="true"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_objective_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:text="@string/objectives_objective_label_string"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textColor="@color/cardObjectiveText"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_objective"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:maxLines="4"
|
|
|
|
android:minLines="1"
|
|
|
|
android:text=""
|
|
|
|
android:textColor="@color/cardObjectiveText"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2016-06-15 21:47:26 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:id="@+id/objectives_gate_linearlayout">
|
2016-06-04 17:28:05 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_gate_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:text="@string/objectives_gate_label_string"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_gate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:maxLines="4"
|
|
|
|
android:minLines="1"
|
|
|
|
android:text="" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2016-06-15 21:47:26 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:id="@+id/objectives_start_linearlayout">
|
2016-06-04 17:28:05 +02:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/objectives_start"
|
2016-06-25 00:09:52 +02:00
|
|
|
style="?android:attr/buttonStyle"
|
2016-06-04 17:28:05 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/objectives_button_start" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_started"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-06-15 21:47:26 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/objectives_duration_linearlayout">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/objectives_duration" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-06-27 18:48:48 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/objectives_progresslayout">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/objectives_progress" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-06-04 17:28:05 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2016-06-15 21:47:26 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:id="@+id/objectives_verify_linearlayout">
|
2016-06-04 17:28:05 +02:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/objectives_verify"
|
2016-06-25 00:09:52 +02:00
|
|
|
style="?android:attr/buttonStyle"
|
2016-06-04 17:28:05 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/objectives_button_verify" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/objectives_accomplished"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</android.support.v7.widget.CardView>
|