FairEmail/app/src/main/res/layout/dialog_search.xml

339 lines
15 KiB
XML
Raw Normal View History

2020-04-09 15:50:29 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-04-12 15:45:20 +00:00
<eu.faircode.email.ScrollViewEx xmlns:android="http://schemas.android.com/apk/res/android"
2020-04-09 15:50:29 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="24dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<eu.faircode.email.FixedTextView
android:id="@+id/tvCaption"
2020-04-09 17:41:19 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:text="@string/title_search"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
2020-05-02 18:53:49 +00:00
app:layout_constraintEnd_toStartOf="@id/ibUnseen"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2020-05-02 18:53:49 +00:00
<ImageButton
android:id="@+id/ibUnseen"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toStartOf="@+id/ibFlagged"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/baseline_mail_24" />
<ImageButton
android:id="@+id/ibFlagged"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_accessibility_flagged"
android:padding="6dp"
android:scaleType="fitCenter"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toStartOf="@+id/ibInfo"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/baseline_star_24" />
2020-04-09 17:41:19 +00:00
<ImageButton
android:id="@+id/ibInfo"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_info"
android:padding="6dp"
android:scaleType="fitCenter"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/baseline_info_24" />
2020-04-09 15:50:29 +00:00
<AutoCompleteTextView
android:id="@+id/etQuery"
android:layout_width="0dp"
android:layout_height="wrap_content"
2020-04-09 17:41:19 +00:00
android:layout_marginTop="6dp"
2020-04-09 15:50:29 +00:00
android:completionThreshold="2"
android:hint="@string/title_search_for_hint"
android:imeOptions="actionGo"
android:inputType="text"
android:maxLines="1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-04-09 17:41:19 +00:00
app:layout_constraintTop_toBottomOf="@id/ibInfo" />
2020-04-09 15:50:29 +00:00
2020-04-10 16:02:53 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_search_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etQuery" />
2020-04-10 10:17:40 +00:00
<ImageButton
android:id="@+id/ibMore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:padding="3dp"
app:layout_constraintStart_toStartOf="parent"
2020-04-10 16:02:53 +00:00
app:layout_constraintTop_toBottomOf="@id/tvHint"
2020-04-10 10:17:40 +00:00
app:srcCompat="@drawable/expander" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvMore"
2020-04-10 16:02:53 +00:00
android:layout_width="0dp"
2020-04-10 10:17:40 +00:00
android:layout_height="0dp"
android:gravity="center_vertical"
android:paddingStart="6dp"
android:text="@string/title_search_more"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintBottom_toBottomOf="@+id/ibMore"
2020-04-10 16:02:53 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-10 10:17:40 +00:00
app:layout_constraintStart_toEndOf="@+id/ibMore"
app:layout_constraintTop_toTopOf="@+id/ibMore" />
2020-04-09 15:50:29 +00:00
<CheckBox
android:id="@+id/cbSearchIndex"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_search_use_index"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
2020-04-10 10:17:40 +00:00
app:layout_constraintTop_toBottomOf="@id/ibMore" />
2020-04-09 15:50:29 +00:00
2020-04-24 09:50:47 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvSearchIndexHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
2020-05-02 20:14:21 +00:00
android:layout_marginTop="6dp"
2020-04-24 09:50:47 +00:00
android:text="@string/title_search_index_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbSearchIndex" />
2020-04-09 15:50:29 +00:00
<CheckBox
android:id="@+id/cbSenders"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_search_in_senders"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
2020-04-24 09:50:47 +00:00
app:layout_constraintTop_toBottomOf="@id/tvSearchIndexHint" />
2020-04-09 15:50:29 +00:00
<CheckBox
android:id="@+id/cbRecipients"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_search_in_recipients"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbSenders" />
<CheckBox
android:id="@+id/cbSubject"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_search_in_subject"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbRecipients" />
<CheckBox
android:id="@+id/cbKeywords"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_in_keywords"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbSubject" />
<CheckBox
android:id="@+id/cbMessage"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_search_in_message"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbKeywords" />
2020-05-02 20:14:21 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvSearchTextHint"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="6dp"
android:text="@string/title_search_text_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbMessage" />
2020-04-09 15:50:29 +00:00
<eu.faircode.email.FixedTextView
android:id="@+id/tvAnd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_with"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
2020-05-02 20:14:21 +00:00
app:layout_constraintTop_toBottomOf="@id/tvSearchTextHint" />
2020-04-09 15:50:29 +00:00
<CheckBox
android:id="@+id/cbUnseen"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_with_unseen"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAnd" />
<CheckBox
android:id="@+id/cbFlagged"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_with_flagged"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbUnseen" />
<CheckBox
android:id="@+id/cbHidden"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_with_hidden"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbFlagged" />
<CheckBox
android:id="@+id/cbEncrypted"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_with_encrypted"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbHidden" />
<CheckBox
android:id="@+id/cbAttachments"
2020-04-10 06:57:12 +00:00
android:layout_width="0dp"
2020-04-09 15:50:29 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:text="@string/title_search_with_attachments"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2020-04-10 06:57:12 +00:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbEncrypted" />
2020-04-10 10:17:40 +00:00
2020-04-10 10:59:48 +00:00
<Button
android:id="@+id/btnAfter"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2020-04-10 16:12:03 +00:00
android:minWidth="120dp"
2020-04-10 10:59:48 +00:00
android:text="@string/title_search_with_after"
app:layout_constraintEnd_toStartOf="@id/btnBefore"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbAttachments" />
<Button
android:id="@+id/btnBefore"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
2020-04-10 16:12:03 +00:00
android:minWidth="120dp"
2020-04-10 10:59:48 +00:00
android:text="@string/title_search_with_before"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/btnAfter"
app:layout_constraintTop_toBottomOf="@id/cbAttachments" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvAfter"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="January 1st, 1970"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="@id/btnAfter"
app:layout_constraintStart_toStartOf="@id/btnAfter"
app:layout_constraintTop_toBottomOf="@id/btnAfter" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvBefore"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="January 1st, 1970"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="@id/btnBefore"
app:layout_constraintStart_toStartOf="@id/btnBefore"
app:layout_constraintTop_toBottomOf="@id/btnBefore" />
2020-04-10 10:17:40 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpMore"
android:layout_width="0dp"
android:layout_height="0dp"
2020-04-10 10:59:48 +00:00
app:constraint_referenced_ids="
2020-05-02 20:14:21 +00:00
cbSearchIndex,tvSearchIndexHint,cbSenders,cbRecipients,cbSubject,cbKeywords,cbMessage,tvSearchTextHint,
2020-04-10 10:59:48 +00:00
tvAnd,cbUnseen,cbFlagged,cbHidden,cbEncrypted,cbAttachments,
btnAfter,btnBefore,tvBefore,tvAfter" />
2020-04-09 15:50:29 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2020-04-12 15:45:20 +00:00
</eu.faircode.email.ScrollViewEx>