habitica-android/Habitica/res/layout/reward_item_card.xml

85 lines
3.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<import type="com.magicmicky.habitrpgwrapper.lib.models.tasks.Task" />
<variable
name="reward"
type="Task" />
</data>
2015-08-17 21:37:56 +00:00
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2015-08-17 21:37:56 +00:00
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@color/white">
2015-08-17 21:37:56 +00:00
<LinearLayout
android:id="@+id/card_view"
android:layout_width="match_parent"
2015-08-17 21:37:56 +00:00
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="match_parent"
2015-08-17 21:37:56 +00:00
android:layout_height="match_parent">
2015-08-17 21:37:56 +00:00
<TextView
android:id="@+id/checkedTextView"
style="@style/CardTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/imageView3"
android:layout_toRightOf="@+id/imageView3"
2015-08-17 21:37:56 +00:00
android:layout_toStartOf="@+id/btnReward"
android:layout_toLeftOf="@+id/btnReward"
android:padding="5dp"
android:text="@{reward.text}" />
<TextView
android:id="@+id/textView6"
style="@style/CardText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/checkedTextView"
android:layout_alignStart="@+id/checkedTextView"
2015-08-17 21:37:56 +00:00
android:layout_alignRight="@+id/checkedTextView"
android:layout_alignEnd="@+id/checkedTextView"
android:layout_below="@+id/checkedTextView"
android:maxLines="3"
android:minLines="2"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="@{reward.notes}" />
<Button
android:id="@+id/btnReward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
2015-08-17 21:37:56 +00:00
android:layout_centerVertical="true"
android:drawableLeft="@drawable/gold"
android:maxHeight="10dp"
android:text="@{String.valueOf(reward.value)}" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="65dp"
android:padding="5dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
2015-08-17 21:37:56 +00:00
android:layout_centerVertical="true"
2015-08-03 16:14:20 +00:00
android:layout_marginLeft="5dp"
2015-08-17 21:37:56 +00:00
android:layout_marginStart="5dp"
2015-08-03 16:14:20 +00:00
app:imageName="@{reward.id}"/>
</RelativeLayout>
2015-08-17 21:37:56 +00:00
</LinearLayout>
2015-08-17 21:37:56 +00:00
</LinearLayout>
</layout>