101 lines
4.2 KiB
XML
101 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".MainActivity">
|
|
|
|
<TextView
|
|
android:id="@+id/welcome_text_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="140dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="@string/welcome_str"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/ip_str"
|
|
android:layout_width="38dp"
|
|
android:layout_height="41dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="52dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="@string/ip_str"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
app:layout_constraintEnd_toStartOf="@+id/ip_val"
|
|
app:layout_constraintHorizontal_bias="0.386"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/welcome_text_view" />
|
|
|
|
<EditText
|
|
android:id="@+id/ip_val"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="52dp"
|
|
android:layout_marginEnd="40dp"
|
|
android:layout_marginRight="40dp"
|
|
android:ems="10"
|
|
android:hint="@string/ip_val_str"
|
|
android:importantForAutofill="no"
|
|
android:inputType="textPersonName"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/welcome_text_view"
|
|
tools:targetApi="o" />
|
|
|
|
<TextView
|
|
android:id="@+id/port_str"
|
|
android:layout_width="66dp"
|
|
android:layout_height="37dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="48dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="@string/port_str"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
app:layout_constraintEnd_toStartOf="@+id/port_val"
|
|
app:layout_constraintHorizontal_bias="0.45"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/ip_str" />
|
|
|
|
<EditText
|
|
android:id="@+id/port_val"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="39dp"
|
|
android:layout_marginEnd="40dp"
|
|
android:layout_marginRight="40dp"
|
|
android:ems="10"
|
|
android:hint="@string/port_val_str"
|
|
android:inputType="textPersonName"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/ip_val"
|
|
android:importantForAutofill="no" tools:targetApi="o" />
|
|
|
|
<Button
|
|
android:id="@+id/connect_button"
|
|
android:layout_width="118dp"
|
|
android:layout_height="70dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="132dp"
|
|
android:text="@string/connect_str"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.487"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |