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"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/app_name"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:hintEnabled="false"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
|
|
|
|
app:boxCornerRadiusBottomStart="15dp"
|
|
|
|
app:boxCornerRadiusBottomEnd="15dp"
|
|
|
|
app:boxCornerRadiusTopEnd="15dp"
|
|
|
|
app:boxCornerRadiusTopStart="15dp">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/instanceName"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="@string/instance_name"
|
|
|
|
android:inputType="text"
|
|
|
|
android:padding="12dp" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:hintEnabled="false"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
2022-06-18 14:44:46 +05:30
|
|
|
android:layout_marginBottom="4dp"
|
2022-06-11 16:34:33 +05:30
|
|
|
|
|
|
|
app:boxCornerRadiusBottomStart="15dp"
|
|
|
|
app:boxCornerRadiusBottomEnd="15dp"
|
|
|
|
app:boxCornerRadiusTopEnd="15dp"
|
2022-06-18 14:44:46 +05:30
|
|
|
app:boxCornerRadiusTopStart="15dp">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/instanceFrontendUrl"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="@string/instance_frontend_url"
|
|
|
|
android:inputType="text"
|
|
|
|
android:padding="12dp" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:hintEnabled="false"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
2022-06-11 16:34:33 +05:30
|
|
|
|
2022-06-18 14:44:46 +05:30
|
|
|
app:boxCornerRadiusBottomStart="15dp"
|
|
|
|
app:boxCornerRadiusBottomEnd="15dp"
|
|
|
|
app:boxCornerRadiusTopEnd="15dp"
|
|
|
|
app:boxCornerRadiusTopStart="15dp">
|
2022-06-11 16:34:33 +05:30
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/instanceApiUrl"
|
|
|
|
android:inputType="text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="@string/instance_api_url"
|
|
|
|
android:padding="12dp" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="end">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/cancel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/cancel"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
android:textColor="?attr/colorPrimary"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
style="?android:attr/buttonBarButtonStyle" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/addInstance"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/addInstance"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
android:textColor="?attr/colorPrimary"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
style="?android:attr/buttonBarButtonStyle" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|