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

82 lines
3.9 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8"?>
2020-10-06 07:29:45 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-01-11 22:46:26 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-06 07:29:45 +00:00
android:foreground="?selectableItemBackground">
2017-01-11 22:46:26 +00:00
2020-10-06 07:29:45 +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"
2020-08-25 11:21:27 +00:00
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/task_spacing_horizontal"
android:layout_marginVertical="@dimen/task_spacing_vertical"
android:background="@drawable/task_background"
android:clipChildren="true"
2020-10-06 07:29:45 +00:00
android:minHeight="@dimen/task_min_height"
android:orientation="vertical">
2017-01-11 22:46:26 +00:00
<LinearLayout
2020-08-25 11:21:27 +00:00
android:layout_width="match_parent"
2017-01-05 17:19:06 +00:00
android:layout_height="wrap_content"
2020-08-25 11:21:27 +00:00
android:orientation="horizontal"
android:baselineAligned="false"
android:minHeight="@dimen/task_min_height">
<FrameLayout
android:id="@+id/checkBoxHolder"
android:layout_width="@dimen/button_width"
2020-09-15 07:28:34 +00:00
android:layout_height="match_parent"
tools:background="@color/red_10"
android:focusable="true"
2022-05-24 09:30:13 +00:00
android:foreground="?selectableItemBackground"
android:contentDescription="@string/daily_item_checkbox">
2020-09-15 07:28:34 +00:00
<View
android:id="@+id/checkBoxBackground"
android:layout_width="24dp"
android:layout_height="24dp"
android:gravity="center"
2020-09-17 11:23:27 +00:00
android:background="@drawable/daily_checked"
2020-09-15 07:28:34 +00:00
android:layout_gravity="center" />
<ImageView
android:id="@+id/checkmark"
android:layout_width="24dp"
android:layout_height="24dp"
2020-08-25 11:21:27 +00:00
android:layout_gravity="center"
2020-09-15 07:28:34 +00:00
android:scaleType="center"
android:src="@drawable/checkmark" />
<ImageView
android:id="@+id/lock_view"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:scaleType="center"
2021-02-11 11:43:16 +00:00
android:src="@drawable/task_lock" />
2020-08-25 11:21:27 +00:00
</FrameLayout>
<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"
2020-08-25 11:21:27 +00:00
style="@style/Widget.AppCompat.ProgressBar"/>
<ImageButton
android:id="@+id/error_icon"
android:layout_width="wrap_content"
2016-05-12 11:44:29 +00:00
android:layout_height="wrap_content"
2020-08-25 11:21:27 +00:00
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"/>
2020-08-25 11:21:27 +00:00
<include layout="@layout/checklist_indicator" />
2017-01-05 17:19:06 +00:00
</LinearLayout>
2017-01-11 22:46:26 +00:00
<LinearLayout
2020-08-25 11:21:27 +00:00
android:id="@+id/checklistView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
2020-10-06 07:29:45 +00:00
</LinearLayout>
</FrameLayout>