Use an dialog to show advanced settings
This commit is contained in:
committed by
Galen Abell
parent
78a7f1319e
commit
bcfa8ac221
@@ -202,17 +202,26 @@
|
||||
android:id="@+id/checkurl"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
app:layout_constraintWidth_max="280dp"
|
||||
android:background="@color/colorPrimaryDark"
|
||||
android:text="@string/check_url"
|
||||
android:textColor="@android:color/white"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/gotify_url" />
|
||||
app:layout_constraintEnd_toStartOf="@+id/advanced_settings"
|
||||
app:layout_constraintStart_toStartOf="@+id/gotify_url"
|
||||
app:layout_constraintTop_toBottomOf="@+id/gotify_url"
|
||||
app:layout_constraintWidth_max="280dp" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/advanced_settings"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/check_url"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintEnd_toEndOf="@+id/gotify_url"
|
||||
app:layout_constraintTop_toTopOf="@+id/checkurl"
|
||||
app:srcCompat="@drawable/ic_settings" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
|
||||
24
app/src/main/res/layout/advanced_settings_dialog.xml
Normal file
24
app/src/main/res/layout/advanced_settings_dialog.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="20dp">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/disableSSL"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Disable SSL Validation" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/toggle_ca_cert"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Select CA Certificate" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/seleceted_ca_cert"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="No Certificate selected" />
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user