mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
116 lines
4.1 KiB
XML
116 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/notification_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorContentBackground"
|
|
android:orientation="vertical"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="10dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="10dp">
|
|
|
|
<TextView
|
|
android:id="@+id/message_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:layout_weight="1"
|
|
android:lineSpacingExtra="5dp"
|
|
android:text="Message" />
|
|
|
|
<TableLayout
|
|
android:id="@+id/quest_detail_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:shrinkColumns="1"
|
|
android:stretchColumns="1"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/quest_objective_label"
|
|
style="@style/Caption3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:textStyle="bold"
|
|
tools:text="Collect:" />
|
|
|
|
<TextView
|
|
android:id="@+id/quest_objective_text"
|
|
style="@style/Caption3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:text="List of items" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/difficulty_label"
|
|
style="@style/Caption3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:textStyle="bold"
|
|
tools:text="Difficulty:" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical">
|
|
|
|
<RatingBar
|
|
android:id="@+id/quest_difficulty"
|
|
style="@style/QuestRatingBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:isIndicator="true"
|
|
android:numStars="4"
|
|
android:stepSize="0.5"
|
|
tools:rating="2.5" />
|
|
</LinearLayout>
|
|
</TableRow>
|
|
</TableLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/reject_button"
|
|
style="@style/HabiticaButton.Red.Small"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/quest_reject" />
|
|
|
|
<Button
|
|
android:id="@+id/accept_button"
|
|
style="@style/HabiticaButton.Green.Small"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/quest_accept" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|