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

90 lines
3.9 KiB
XML
Raw Permalink 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"
android:layout_width="match_parent"
2020-08-25 11:21:27 +00:00
android:layout_height="wrap_content"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground">
2017-01-11 22:46:26 +00:00
2017-01-05 17:19:06 +00:00
<LinearLayout
2020-08-25 11:21:27 +00:00
android:id="@+id/main_task_wrapper"
2017-01-11 22:46:26 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:foreground="?selectableItemBackground"
2017-09-26 13:35:32 +00:00
android:orientation="horizontal"
2020-08-25 11:21:27 +00:00
android:layout_marginHorizontal="@dimen/task_spacing_horizontal"
android:layout_marginVertical="@dimen/task_spacing_vertical"
android:background="@drawable/task_background"
android:clipChildren="true"
2017-09-26 13:35:32 +00:00
android:minHeight="@dimen/task_min_height">
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"
2022-05-24 09:30:13 +00:00
android:layout_height="match_parent"
android:foreground="?selectableItemBackground">
2020-09-15 07:28:34 +00:00
<View
android:id="@+id/button_plus_circle_view"
2020-08-25 11:21:27 +00:00
android:layout_width="24dp"
android:layout_height="24dp"
2020-09-15 07:28:34 +00:00
android:layout_gravity="center"/>
<ImageView
android:id="@+id/btnPlusIconView"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-01-11 22:46:26 +00:00
android:scaleType="center"
2020-08-25 11:21:27 +00:00
android:layout_gravity="center"
2020-09-18 16:34:53 +00:00
android:src="@drawable/habit_plus" />
2017-01-11 22:46:26 +00:00
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"
2022-05-24 09:30:13 +00:00
android:background="?selectableItemBackground"
android:contentDescription="@string/positive_habit_form" />
2017-01-05 17:19:06 +00:00
</FrameLayout>
2020-08-25 11:21:27 +00:00
<include layout="@layout/task_main_content" />
<ProgressBar
android:id="@+id/syncing_view"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small"
style="@style/Widget.AppCompat.ProgressBar"/>
<ImageButton
android:id="@+id/error_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@color/transparent"
android:src="@drawable/ic_warning_black"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small"/>
2017-01-05 17:19:06 +00:00
<FrameLayout
2017-01-11 22:46:26 +00:00
android:id="@+id/btnMinusWrapper"
android:layout_width="@dimen/button_width"
2022-05-24 09:30:13 +00:00
android:layout_height="match_parent"
android:foreground="?selectableItemBackground">
2020-09-15 07:28:34 +00:00
<View
android:id="@+id/button_minus_circle_view"
2020-08-25 11:21:27 +00:00
android:layout_width="24dp"
android:layout_height="24dp"
2020-09-15 07:28:34 +00:00
android:layout_gravity="center"/>
<ImageView
android:id="@+id/btnMinusIconView"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-01-11 22:46:26 +00:00
android:layout_gravity="center"
android:scaleType="center"
2020-09-18 16:34:53 +00:00
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"
2022-05-26 09:56:06 +00:00
android:background="@drawable/selection_highlight"
android:contentDescription="@string/negative_habit_form" />
2017-01-05 17:19:06 +00:00
</FrameLayout>
</LinearLayout>
</FrameLayout>