Stubbed Presets and Configurations activities, stubbed fragment for configurations
BIN
app/src/main/res/drawable-hdpi/gear.png
Normal file
|
After Width: | Height: | Size: 663 B |
BIN
app/src/main/res/drawable-hdpi/trash.png
Normal file
|
After Width: | Height: | Size: 212 B |
BIN
app/src/main/res/drawable-mdpi/gear.png
Normal file
|
After Width: | Height: | Size: 416 B |
BIN
app/src/main/res/drawable-mdpi/trash.png
Normal file
|
After Width: | Height: | Size: 167 B |
BIN
app/src/main/res/drawable-xhdpi/gear.png
Normal file
|
After Width: | Height: | Size: 870 B |
BIN
app/src/main/res/drawable-xhdpi/trash.png
Normal file
|
After Width: | Height: | Size: 259 B |
BIN
app/src/main/res/drawable-xxhdpi/gear.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/trash.png
Normal file
|
After Width: | Height: | Size: 378 B |
BIN
app/src/main/res/drawable-xxxhdpi/gear.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/trash.png
Normal file
|
After Width: | Height: | Size: 474 B |
20
app/src/main/res/layout/activity_manage_configurations.xml
Normal 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>
|
||||
38
app/src/main/res/layout/fragment_configuration.xml
Normal 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>
|
||||
@@ -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" />
|
||||
|
||||
@@ -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"
|
||||
|
||||