Stubbed Presets and Configurations activities, stubbed fragment for configurations

This commit is contained in:
2020-06-28 18:42:36 -05:00
parent e9cf747f12
commit 27ca41a416
20 changed files with 178 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

View File

@@ -0,0 +1,20 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:id="@+id/configurations"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,38 @@
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/configuration"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/configuration_name"
style="@style/Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:text="Button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/rename_configuration"
style="@style/Widget.AppCompat.ImageButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:src="@drawable/gear"
app:layout_constraintStart_toStartOf="@+id/configuration_name"
app:layout_constraintTop_toTopOf="@+id/configuration_name" />
<ImageButton
android:id="@+id/delete_configuration"
style="@style/Widget.AppCompat.ImageButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:src="@drawable/trash"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>

View File

@@ -16,7 +16,7 @@
app:layout_constraintTop_toTopOf="parent">
<Button
android:id="@+id/button4"
android:id="@+id/manage_presets"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_manage_presets" />
@@ -32,7 +32,7 @@
app:layout_constraintTop_toTopOf="parent">
<Button
android:id="@+id/button5"
android:id="@+id/manage_configurations"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_manage_configurations" />

View File

@@ -21,7 +21,7 @@
android:orientation="vertical">
<LinearLayout
android:id="@+id/tacnet_connect"
android:id="@+id/tacnet_connect_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="48dp"
@@ -48,7 +48,7 @@
android:text="@string/tacnet_hostname" />
<EditText
android:id="@+id/editTextTextPersonName"
android:id="@+id/hostname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
@@ -71,14 +71,14 @@
android:inputType="number" />
<Button
android:id="@+id/connect"
android:id="@+id/tacnet_connect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tacnet_connect" />
</LinearLayout>
<LinearLayout
android:id="@+id/tacnet_server"
android:id="@+id/tacnet_server_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="48dp"