Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 788c5bc7 authored by Marten Gajda's avatar Marten Gajda
Browse files

implement checklist mode for task description

parent 66743006
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<org.dmfs.tasks.widget.CheckListFieldEditor xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/task_widget" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <TextView
            android:id="@android:id/title"
            style="@style/editor_label_text"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginBottom="-8dip"
            android:layout_weight="1"
            android:ellipsize="marquee"
            android:fadingEdge="horizontal"
            android:paddingLeft="12dip"
            android:singleLine="true" />

        <CheckBox
            android:id="@+id/checklist_mode_switch"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </LinearLayout>

    <EditText
        android:id="@android:id/text1"
        style="@style/field_editor_text_value"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:inputType="textMultiLine"
        android:singleLine="false"
        android:textAllCaps="false" >
    </EditText>

    <LinearLayout
        android:id="@+id/checklist"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:visibility="gone" >

        <!-- Add empty element -->

        <include layout="@layout/checklist_field_editor_element" />
    </LinearLayout>

</org.dmfs.tasks.widget.CheckListFieldEditor>
 No newline at end of file
+24 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="horizontal" >

    <CheckBox
        android:id="@android:id/checkbox"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <EditText
        android:id="@android:id/text1"
        style="@style/field_editor_text_value"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:inputType="text"
        android:singleLine="true"
        android:textAllCaps="false" >
    </EditText>

</LinearLayout>
 No newline at end of file
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<org.dmfs.tasks.widget.CheckListFieldView xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/task_widget"
    android:visibility="gone" >

    <include layout="@layout/detail_header" />

    <TextView
        android:id="@+id/text"
        style="@style/field_view_text_value"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:autoLink="all" >
    </TextView>

    <LinearLayout
        android:id="@+id/checklist"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >
    </LinearLayout>

</org.dmfs.tasks.widget.CheckListFieldView>
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/checkbox"
    style="@style/dark_text"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
        </LinearLayout>

        <LinearLayout
            android:id="@+id/content"
            android:id="@+id/checklist"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" >
Loading