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

196 lines
8.7 KiB
XML
Raw Normal View History

2020-04-09 15:50:29 +00:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
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-04-09 17:41:19 +00:00
app:layout_constraintEnd_toStartOf="@id/ibInfo"
2020-04-09 15:50:29 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
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:foregroundTint="?android:attr/textColorPrimary"
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
<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"
app:layout_constraintTop_toBottomOf="@id/etQuery" />
<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"
app:layout_constraintTop_toBottomOf="@id/cbSearchIndex" />
<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" />
<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"
app:layout_constraintTop_toBottomOf="@id/cbMessage" />
<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" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>