LibreTube/app/src/main/res/layout/dialog_custom_instance.xml

69 lines
2.4 KiB
XML
Raw Normal View History

2022-06-11 16:34:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
2022-06-27 22:47:52 +05:30
android:layout_height="wrap_content"
android:orientation="vertical">
2022-06-11 16:34:33 +05:30
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
2022-06-27 22:47:52 +05:30
android:gravity="center"
android:text="@string/app_name"
2022-06-11 16:34:33 +05:30
android:textSize="20sp" />
2022-08-14 21:05:17 +05:30
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:hint="@string/instance_name">
2022-06-11 16:34:33 +05:30
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/instanceName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-08-14 21:05:17 +05:30
android:inputType="text" />
2022-06-11 16:34:33 +05:30
</com.google.android.material.textfield.TextInputLayout>
2022-08-14 21:05:17 +05:30
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:hint="@string/instance_frontend_url">
2022-06-18 14:44:46 +05:30
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/instanceFrontendUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-08-14 21:05:17 +05:30
android:inputType="text" />
2022-06-18 14:44:46 +05:30
</com.google.android.material.textfield.TextInputLayout>
2022-08-14 21:05:17 +05:30
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:hint="@string/instance_api_url">
2022-06-11 16:34:33 +05:30
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/instanceApiUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-08-14 21:05:17 +05:30
android:inputType="text" />
2022-06-11 16:34:33 +05:30
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-06-27 22:47:52 +05:30
android:gravity="end"
android:orientation="horizontal">
2022-06-11 16:34:33 +05:30
<Button
android:id="@+id/cancel"
2022-06-27 22:47:52 +05:30
style="@style/CustomDialogButton"
android:text="@string/cancel" />
2022-06-11 16:34:33 +05:30
<Button
android:id="@+id/addInstance"
2022-06-26 13:31:43 +05:30
style="@style/CustomDialogButton"
2022-08-14 21:05:17 +05:30
android:layout_marginEnd="16dp"
2022-06-27 22:47:52 +05:30
android:text="@string/addInstance" />
2022-06-11 16:34:33 +05:30
</LinearLayout>
</LinearLayout>