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

77 lines
3.1 KiB
XML
Raw Normal View History

2019-09-26 18:14:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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">
<TextView
android:id="@+id/tvIdentity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_send_via"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<eu.faircode.email.ContentLoadingProgressBar
android:id="@+id/pbWait"
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:indeterminate="true"
android:padding="24dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvIdentity" />
2019-09-28 07:35:07 +00:00
<Spinner
android:id="@+id/spIdentity"
android:layout_width="0dp"
android:layout_height="wrap_content"
2019-09-26 18:14:58 +00:00
android:layout_marginTop="24dp"
2019-09-28 07:35:07 +00:00
app:layout_constraintEnd_toEndOf="parent"
2019-09-26 18:14:58 +00:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/pbWait" />
<CheckBox
android:id="@+id/cbNotAgain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_no_ask_again"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
2019-09-28 07:35:07 +00:00
app:layout_constraintTop_toBottomOf="@id/spIdentity" />
2019-09-26 18:14:58 +00:00
<TextView
android:id="@+id/tvNoIdenties"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/title_no_identities"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbNotAgain" />
<Button
android:id="@+id/btnFix"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_fix"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvNoIdenties" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpIdentities"
android:layout_width="0dp"
android:layout_height="0dp"
2019-09-28 07:35:07 +00:00
app:constraint_referenced_ids="spIdentity,cbNotAgain" />
2019-09-26 18:14:58 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/grpNoIdentities"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvNoIdenties,btnFix" />
</androidx.constraintlayout.widget.ConstraintLayout>