You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
4.0 KiB
XML
93 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView 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">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/hexapod_logo"
|
|
android:layout_width="120dp"
|
|
android:layout_height="120dp"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginBottom="32dp"
|
|
android:src="@drawable/hexapod_logo"
|
|
app:layout_constraintBottom_toTopOf="@id/ip_input_layout"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/ip_input_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
app:errorEnabled="true"
|
|
app:layout_constraintBottom_toTopOf="@id/port_input_layout"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/hexapod_logo">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/ip_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:digits="0123456789."
|
|
android:hint="IP"
|
|
android:inputType="number|numberDecimal"
|
|
android:text="192.168.1.127" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/port_input_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
app:errorEnabled="true"
|
|
app:layout_constraintBottom_toTopOf="@id/button_connect"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/ip_input_layout">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/port_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Port"
|
|
android:inputType="number"
|
|
android:text="1234" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<Button
|
|
android:id="@+id/button_connect"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:text="Connect"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/port_input_layout" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView_github"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginBottom="32dp"
|
|
android:text="@string/hexapod_github"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/button_connect" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</ScrollView> |