Carved out from the app-store monorepo. Kotlin + Material 3 client that browses the private distribution server and installs APKs via PackageInstaller. Keystore password redacted from docs.
105 lines
4.0 KiB
XML
105 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_settings"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:layout_marginBottom="24dp" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_address"
|
|
android:textSize="14sp"
|
|
android:textColor="?android:textColorSecondary" />
|
|
|
|
<EditText
|
|
android:id="@+id/serverAddressEditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/server_address_hint"
|
|
android:inputType="textNoSuggestions"
|
|
android:padding="12dp"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_port"
|
|
android:textSize="14sp"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:layout_marginTop="16dp" />
|
|
|
|
<EditText
|
|
android:id="@+id/serverPortEditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/server_port_hint"
|
|
android:inputType="number"
|
|
android:padding="12dp"
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/saveButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginEnd="8dp"
|
|
android:text="@string/save" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/testButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="8dp"
|
|
android:text="@string/connection_test"
|
|
style="@style/Widget.Material3.Button.OutlinedButton" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/testResultText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:textSize="14sp"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |