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

150 lines
6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2017-01-11 22:46:26 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2017-01-05 17:19:06 +00:00
<LinearLayout
2017-01-11 22:46:26 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:baselineAligned="false"
android:foreground="?selectableItemBackground"
android:orientation="horizontal">
2017-01-05 17:19:06 +00:00
<FrameLayout
2017-01-11 22:46:26 +00:00
android:id="@+id/btnPlusWrapper"
android:layout_width="@dimen/button_width"
2017-01-11 22:46:26 +00:00
android:layout_height="match_parent">
2017-01-05 17:19:06 +00:00
<View
2017-01-11 22:46:26 +00:00
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_marginBottom="1dp"
android:background="@color/task_border_gray" />
2017-01-05 17:19:06 +00:00
<ImageView
2017-01-11 22:46:26 +00:00
android:id="@+id/btnPlusIconView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:scaleType="center"
android:src="@drawable/habit_plus" />
2017-01-05 17:19:06 +00:00
<Button
2017-01-11 22:46:26 +00:00
android:id="@+id/btnPlus"
style="@style/HabitButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/selection_highlight" />
2017-01-05 17:19:06 +00:00
</FrameLayout>
2017-01-11 22:46:26 +00:00
2017-01-05 17:19:06 +00:00
<LinearLayout
2017-01-11 22:46:26 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingBottom="@dimen/task_top_bottom_padding"
android:paddingEnd="@dimen/task_text_padding"
android:paddingLeft="@dimen/task_text_padding"
android:paddingRight="@dimen/task_text_padding"
android:paddingStart="@dimen/task_text_padding"
android:paddingTop="@dimen/task_top_bottom_padding">
2017-01-05 17:19:06 +00:00
<net.pherth.android.emoji_library.EmojiTextView
2017-01-11 22:46:26 +00:00
android:id="@+id/checkedTextView"
style="@style/Subheader3"
android:textColor="#000"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="Habit Title" />
2017-01-05 17:19:06 +00:00
<net.pherth.android.emoji_library.EmojiTextView
2017-01-11 22:46:26 +00:00
android:id="@+id/notesTextView"
2017-01-16 17:14:28 +00:00
style="@style/Caption2.Regular"
2017-01-11 22:46:26 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="3"
tools:text="Notes"/>
2017-01-05 17:19:06 +00:00
<LinearLayout
2017-01-11 22:46:26 +00:00
android:id="@+id/taskIconWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/task_icon_space"
android:orientation="horizontal">
2017-01-05 17:19:06 +00:00
<TextView
2017-01-11 22:46:26 +00:00
android:id="@+id/specialTaskText"
style="@style/Caption3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="@color/task_secondary_text"
tools:text="special" />
2017-01-05 17:19:06 +00:00
<ImageView
2017-01-11 22:46:26 +00:00
android:id="@+id/iconviewChallenge"
android:layout_width="@dimen/task_icon_size"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
android:contentDescription="@string/belongs_to_challenge"
app:srcCompat="@drawable/task_icon_challenge" />
2017-01-05 17:19:06 +00:00
<ImageView
2017-01-11 22:46:26 +00:00
android:id="@+id/iconviewReminder"
android:layout_width="@dimen/task_icon_size"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
android:contentDescription="@string/has_reminder"
app:srcCompat="@drawable/task_icon_reminder" />
2017-01-05 17:19:06 +00:00
<ImageView
2017-01-11 22:46:26 +00:00
android:id="@+id/iconviewTag"
android:layout_width="@dimen/task_icon_size"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
android:contentDescription="@string/has_tag"
app:srcCompat="@drawable/task_icon_tag" />
2017-01-05 17:19:06 +00:00
</LinearLayout>
</LinearLayout>
<FrameLayout
2017-01-11 22:46:26 +00:00
android:id="@+id/btnMinusWrapper"
android:layout_width="@dimen/button_width"
2017-01-11 22:46:26 +00:00
android:layout_height="match_parent">
2017-01-05 17:19:06 +00:00
<View
2017-01-11 22:46:26 +00:00
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layout_marginBottom="1dp"
android:background="@color/task_border_gray" />
2017-01-05 17:19:06 +00:00
<ImageView
2017-01-11 22:46:26 +00:00
android:id="@+id/btnMinusIconView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:scaleType="center"
android:src="@drawable/habit_minus" />
2017-01-05 17:19:06 +00:00
<Button
2017-01-11 22:46:26 +00:00
android:id="@+id/btnMinus"
style="@style/HabitButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/selection_highlight" />
2017-01-05 17:19:06 +00:00
</FrameLayout>
</LinearLayout>
<View
2017-01-11 22:46:26 +00:00
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/task_border_gray" />
2017-01-05 17:19:06 +00:00
</FrameLayout>