mirror of
https://github.com/TimeCrafters/TimeCraftersConfigurationTool.git
synced 2025-12-18 06:22:34 +00:00
Stubbed fragments for groups, actions, and variables.
This commit is contained in:
20
app/src/main/res/layout/fragment_actions.xml
Normal file
20
app/src/main/res/layout/fragment_actions.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.editor.EditorFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" />
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
@@ -2,37 +2,20 @@
|
||||
<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">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
android:id="@+id/configuration_name"
|
||||
style="@style/Button"
|
||||
<ScrollView
|
||||
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" />
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/rename_configuration"
|
||||
style="@style/Button"
|
||||
<LinearLayout
|
||||
android:id="@+id/configuration"
|
||||
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" />
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"></LinearLayout>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete_configuration"
|
||||
style="@style/DangerousButton"
|
||||
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>
|
||||
@@ -8,20 +8,22 @@
|
||||
tools:context=".ui.editor.EditorFragment">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_editor"
|
||||
android:id="@+id/configuration_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="center" />
|
||||
android:background="@color/list_even"
|
||||
android:text="No configuration active"
|
||||
android:textAlignment="center"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<LinearLayout
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView8"
|
||||
<LinearLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="TODO" />
|
||||
</LinearLayout>
|
||||
android:orientation="vertical" />
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
61
app/src/main/res/layout/fragment_part_actions.xml
Normal file
61
app/src/main/res/layout/fragment_part_actions.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Switch
|
||||
android:id="@+id/name"
|
||||
style="@style/ToggleButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="Switch" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/editor" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/rename"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/gear" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
style="@style/DangerousButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/trash" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/comment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/button_margin_left"
|
||||
android:layout_marginRight="@dimen/button_margin_right"
|
||||
android:layout_marginBottom="@dimen/button_margin_bottom"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
40
app/src/main/res/layout/fragment_part_configuration.xml
Normal file
40
app/src/main/res/layout/fragment_part_configuration.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<Button
|
||||
android:id="@+id/name"
|
||||
style="@style/Button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.8"
|
||||
android:text="Button" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/rename"
|
||||
style="@style/Button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
android:src="@drawable/gear" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
style="@style/DangerousButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
android:src="@drawable/trash" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
37
app/src/main/res/layout/fragment_part_groups.xml
Normal file
37
app/src/main/res/layout/fragment_part_groups.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.8"
|
||||
android:text="Button" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/rename"
|
||||
style="@style/Button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/gear" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
style="@style/DangerousButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/trash" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
56
app/src/main/res/layout/fragment_part_variables.xml
Normal file
56
app/src/main/res/layout/fragment_part_variables.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?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"
|
||||
android:id="@+id/group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/button_margin_left"
|
||||
android:layout_marginTop="@dimen/button_margin_top"
|
||||
android:layout_marginRight="@dimen/button_margin_right"
|
||||
android:layout_marginBottom="@dimen/button_margin_bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:text="TextView"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/rename"
|
||||
style="@style/Button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/gear" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
style="@style/DangerousButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.2"
|
||||
app:srcCompat="@drawable/trash" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/value"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/button_margin_left"
|
||||
android:layout_marginTop="@dimen/button_margin_top"
|
||||
android:layout_marginRight="@dimen/button_margin_right"
|
||||
android:layout_marginBottom="@dimen/button_margin_bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:text="TextView" />
|
||||
</LinearLayout>
|
||||
20
app/src/main/res/layout/fragment_variables.xml
Normal file
20
app/src/main/res/layout/fragment_variables.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.editor.EditorFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" />
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
@@ -15,16 +15,47 @@
|
||||
android:id="@+id/navigation_editor"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.editor.EditorFragment"
|
||||
android:label="@string/title_editor"
|
||||
tools:layout="@layout/fragment_editor" />
|
||||
tools:layout="@layout/fragment_editor" >
|
||||
<action
|
||||
android:id="@+id/action_navigation_editor_to_actionsFragment"
|
||||
app:destination="@id/actionsFragment" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/navigation_settings"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.settings.SettingsFragment"
|
||||
android:label="@string/title_settings"
|
||||
tools:layout="@layout/fragment_settings" />
|
||||
tools:layout="@layout/fragment_settings" >
|
||||
<action
|
||||
android:id="@+id/action_navigation_settings_to_configurationsFragment"
|
||||
app:destination="@id/configurationsFragment" />
|
||||
<action
|
||||
android:id="@+id/action_navigation_settings_to_presetsFragment"
|
||||
app:destination="@id/presetsFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/navigation_search"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.search.SearchFragment"
|
||||
android:label="@string/title_search"
|
||||
tools:layout="@layout/fragment_search" />
|
||||
<fragment
|
||||
android:id="@+id/actionsFragment"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.editor.ActionsFragment"
|
||||
android:label="Actions" >
|
||||
<action
|
||||
android:id="@+id/action_actionsFragment_to_variablesFragment"
|
||||
app:destination="@id/variablesFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/variablesFragment"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.editor.VariablesFragment"
|
||||
android:label="Variables" />
|
||||
<fragment
|
||||
android:id="@+id/configurationsFragment"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.settings.configurations.ConfigurationsFragment"
|
||||
android:label="Manage Configurations" />
|
||||
<fragment
|
||||
android:id="@+id/presetsFragment"
|
||||
android:name="org.timecrafters.TimeCraftersConfigurationTool.ui.settings.presets.PresetsFragment"
|
||||
android:label="Manage Presets" />
|
||||
</navigation>
|
||||
@@ -23,6 +23,8 @@
|
||||
<color name="tacnetPrimary">#003f7f</color>
|
||||
<color name="tacnetSecondary">#007f7f</color>
|
||||
|
||||
<color name="switchOn">#ff8800</color>
|
||||
|
||||
<color name="dialogBackground">#ddd</color>
|
||||
<color name="dialogTitle">#fff</color>
|
||||
<color name="dialogLabel">#222</color>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<string name="settings_manage_configurations">Manage Configurations</string>
|
||||
|
||||
<string name="search">Search</string>
|
||||
<string name="groups">Groups</string>
|
||||
|
||||
<string name="dialog_close">Close</string>
|
||||
<string name="dialog_cancel">Cancel</string>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<item name="android:fontFamily">@font/dejavusans_condensed_fontfamily</item>
|
||||
|
||||
<item name="buttonStyle">@style/Button</item>
|
||||
<item name="imageButtonStyle">@style/Button</item>
|
||||
<item name="bottomNavigationStyle">@style/NavigationBar</item>
|
||||
<item name="editTextStyle">@style/TextInput</item>
|
||||
<item name="switchStyle">@style/ToggleButton</item>
|
||||
|
||||
Reference in New Issue
Block a user