Added display/navigation card

This commit is contained in:
M66B 2022-05-09 16:28:26 +02:00
parent 709ddd045a
commit 244973ccba
2 changed files with 35 additions and 2 deletions

View File

@ -468,6 +468,38 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvColumnWidth" />
</eu.faircode.email.ConstraintLayoutEx>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="3dp"
android:layout_marginTop="12dp"
app:cardBackgroundColor="?attr/colorCardBackground"
app:cardCornerRadius="6dp"
app:cardElevation="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardGeneral">
<eu.faircode.email.ConstraintLayoutEx
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="6dp"
android:paddingVertical="12dp">
<eu.faircode.email.FixedTextView
android:id="@+id/tvCaptionNavigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/title_advanced_caption_navigation"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swNavOptions"
@ -477,7 +509,7 @@
android:text="@string/title_advanced_nav_options"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sbColumnWidth"
app:layout_constraintTop_toBottomOf="@id/tvCaptionNavigation"
app:switchPadding="12dp" />
<androidx.appcompat.widget.SwitchCompat
@ -561,7 +593,7 @@
app:cardElevation="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardGeneral">
app:layout_constraintTop_toBottomOf="@id/cardNavigation">
<eu.faircode.email.ConstraintLayoutEx
android:layout_width="match_parent"

View File

@ -444,6 +444,7 @@
<string name="title_advanced_manage_connectivity">Manage connectivity</string>
<string name="title_advanced_caption_general">General</string>
<string name="title_advanced_caption_navigation">Navigation</string>
<string name="title_advanced_caption_checks">Checks</string>
<string name="title_advanced_caption_list">List</string>
<string name="title_advanced_caption_conversation">Conversation</string>