Flesh out more of the UI

This commit is contained in:
2020-06-14 12:18:13 -05:00
parent f27706e3be
commit 2e51cec6d1
18 changed files with 237 additions and 151 deletions

View File

@@ -23,11 +23,9 @@ public class SearchFragment extends Fragment {
searchViewModel = searchViewModel =
ViewModelProviders.of(this).get(SearchViewModel.class); ViewModelProviders.of(this).get(SearchViewModel.class);
View root = inflater.inflate(R.layout.fragment_search, container, false); View root = inflater.inflate(R.layout.fragment_search, container, false);
final TextView textView = root.findViewById(R.id.text_search);
searchViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() { searchViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
@Override @Override
public void onChanged(@Nullable String s) { public void onChanged(@Nullable String s) {
textView.setText(s);
} }
}); });
return root; return root;

View File

@@ -41,7 +41,7 @@ public class TACNETFragment extends Fragment {
Dialog dialog = new Dialog(getContext()); Dialog dialog = new Dialog(getContext());
dialog.show(); dialog.show();
((TextView)dialog.findViewById(R.id.dialogTitle)).setText("Add Variable Variable"); ((TextView)dialog.findViewById(R.id.dialogTitle)).setText("Add Variable");
LinearLayout view = dialog.findViewById(R.id.dialogContent); LinearLayout view = dialog.findViewById(R.id.dialogContent);
view.addView(getLayoutInflater().inflate(R.layout.dialog_edit_variable, null)); view.addView(getLayoutInflater().inflate(R.layout.dialog_edit_variable, null));
} }

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:top="2dp" android:top="@dimen/button_margin_top"
android:bottom="2dp" android:bottom="@dimen/button_margin_bottom"
android:left="2dp" android:left="@dimen/button_margin_left"
android:right="2dp"> android:right="@dimen/button_margin_right">
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/colorTertiary" /> <solid android:color="@color/colorTertiary" />
<corners android:radius="0dp" /> <corners android:radius="0dp" />
<padding <padding
android:top="8dp" android:top="@dimen/button_padding_top"
android:bottom="8dp" android:bottom="@dimen/button_padding_bottom"
android:left="16dp" android:left="@dimen/button_padding_left"
android:right="16dp" /> android:right="@dimen/button_padding_right" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:top="2dp" android:top="@dimen/button_margin_top"
android:bottom="2dp" android:bottom="@dimen/button_margin_bottom"
android:left="2dp" android:left="@dimen/button_margin_left"
android:right="2dp"> android:right="@dimen/button_margin_right">
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/colorPrimary" /> <solid android:color="@color/colorPrimary" />
<corners android:radius="0dp" /> <corners android:radius="0dp" />
<padding <padding
android:top="8dp" android:top="@dimen/button_padding_top"
android:bottom="8dp" android:bottom="@dimen/button_padding_bottom"
android:left="16dp" android:left="@dimen/button_padding_left"
android:right="16dp" /> android:right="@dimen/button_padding_right" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:top="2dp" android:top="@dimen/button_margin_top"
android:bottom="2dp" android:bottom="@dimen/button_margin_bottom"
android:left="2dp" android:left="@dimen/button_margin_left"
android:right="2dp"> android:right="@dimen/button_margin_right">
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/buttonDisabled" /> <solid android:color="@color/buttonDisabled" />
<corners android:radius="0dp" /> <corners android:radius="0dp" />
<padding <padding
android:top="8dp" android:top="@dimen/button_padding_top"
android:bottom="8dp" android:bottom="@dimen/button_padding_bottom"
android:left="16dp" android:left="@dimen/button_padding_left"
android:right="16dp" /> android:right="@dimen/button_padding_right" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:top="2dp" android:top="@dimen/button_margin_top"
android:bottom="2dp" android:bottom="@dimen/button_margin_bottom"
android:left="2dp" android:left="@dimen/button_margin_left"
android:right="2dp"> android:right="@dimen/button_margin_right">
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/colorSecondary" /> <solid android:color="@color/colorSecondary" />
<corners android:radius="0dp" /> <corners android:radius="0dp" />
<padding <padding
android:top="8dp" android:top="@dimen/button_padding_top"
android:bottom="8dp" android:bottom="@dimen/button_padding_bottom"
android:left="16dp" android:left="@dimen/button_padding_left"
android:right="16dp" /> android:right="@dimen/button_padding_right" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:top="2dp" android:top="@dimen/button_margin_top"
android:bottom="2dp" android:bottom="@dimen/button_margin_bottom"
android:left="2dp" android:left="@dimen/button_margin_left"
android:right="2dp"> android:right="@dimen/button_margin_right">
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/colorSecondary" /> <solid android:color="@color/colorSecondary" />
<corners android:radius="0dp" /> <corners android:radius="0dp" />
<padding <padding
android:top="8dp" android:top="@dimen/button_padding_top"
android:bottom="8dp" android:bottom="@dimen/button_padding_bottom"
android:left="16dp" android:left="@dimen/button_padding_left"
android:right="16dp" /> android:right="@dimen/button_padding_right" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -10,6 +10,7 @@
android:name="androidx.navigation.fragment.NavHostFragment" android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginBottom="56dp"
app:defaultNavHost="true" app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@id/nav_view" app:layout_constraintBottom_toTopOf="@id/nav_view"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_bias="0.0"
@@ -22,10 +23,10 @@
<com.google.android.material.bottomnavigation.BottomNavigationView <com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view" android:id="@+id/nav_view"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="56dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/nav_host_fragment"
app:menu="@menu/bottom_nav_menu" /> app:menu="@menu/bottom_nav_menu" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -19,22 +19,22 @@
<TextView <TextView
android:id="@+id/dialogTitle" android:id="@+id/dialogTitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:textSize="24dp"
android:textColor="@color/dialogTitle"
android:textFontWeight="800"
android:text="[Title Not Set]"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:text="[Title Not Set]"
android:textColor="@color/dialogTitle"
android:textSize="@dimen/dialogTitleTextSize"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<ImageButton <ImageButton
android:id="@+id/dialogCloseButton" android:id="@+id/dialogCloseButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:backgroundTint="@color/colorDanger"
android:contentDescription="@string/dialog_close" android:contentDescription="@string/dialog_close"
android:src="@drawable/cross" android:src="@drawable/cross"
android:backgroundTint="@color/colorDanger"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
@@ -7,7 +8,9 @@
android:id="@+id/textView5" android:id="@+id/textView5"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/variable_name" /> android:gravity="center|center_horizontal|center_vertical"
android:text="@string/variable_name"
android:textColor="@color/dialogLabel" />
<EditText <EditText
android:id="@+id/variableName" android:id="@+id/variableName"
@@ -21,10 +24,12 @@
android:id="@+id/textView6" android:id="@+id/textView6"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/variable_type" /> android:gravity="center|center_horizontal|center_vertical"
android:text="@string/variable_type"
android:textColor="@color/dialogLabel" />
<EditText <EditText
android:id="@+id/editTextTextPersonName3" android:id="@+id/variableType"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
@@ -35,16 +40,25 @@
android:id="@+id/textView7" android:id="@+id/textView7"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/variable_value" /> android:gravity="center|center_horizontal|center_vertical"
android:text="@string/variable_value"
android:textColor="@color/dialogLabel" />
<EditText <EditText
android:id="@+id/editTextTextPersonName4" android:id="@+id/variableValue"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
android:hint="@string/variable_value" android:hint="@string/variable_value"
android:inputType="textPersonName" /> android:inputType="textPersonName" />
<Switch
android:id="@+id/variableValueBoolean"
style="@style/ToggleButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/variable_value" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"

View File

@@ -1,22 +1,27 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.editor.EditorFragment"> tools:context=".ui.editor.EditorFragment">
<TextView <TextView
android:id="@+id/text_editor" android:id="@+id/text_editor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:textAlignment="center" />
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" <LinearLayout
android:textAlignment="center" android:layout_width="match_parent"
android:textSize="20sp" android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent" android:orientation="vertical">
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" <TextView
app:layout_constraintTop_toTopOf="parent" /> android:id="@+id/textView8"
</androidx.constraintlayout.widget.ConstraintLayout> android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TODO" />
</LinearLayout>
</LinearLayout>

View File

@@ -1,22 +1,41 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.search.SearchFragment"> tools:context=".ui.search.SearchFragment">
<TextView <LinearLayout
android:id="@+id/text_search"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:background="@color/list_even"
android:layout_marginTop="8dp" android:orientation="horizontal">
android:layout_marginEnd="8dp"
android:textAlignment="center" <EditText
android:textSize="20sp" android:id="@+id/search_query"
app:layout_constraintBottom_toBottomOf="parent" android:layout_width="wrap_content"
app:layout_constraintEnd_toEndOf="parent" android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent" android:layout_weight="1"
app:layout_constraintTop_toTopOf="parent" /> android:ems="10"
</androidx.constraintlayout.widget.ConstraintLayout> android:hint="@string/search"
android:inputType="textPersonName" />
<ImageButton
android:id="@+id/search"
style="@style/Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/search" />
</LinearLayout>
<LinearLayout
android:id="@+id/search_results"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
</LinearLayout>
</LinearLayout>

View File

@@ -37,4 +37,5 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/settings_manage_configurations" /> android:text="@string/settings_manage_configurations" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@@ -4,43 +4,47 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#FFFFFF"
tools:context=".ui.tacnet.TACNETFragment"> tools:context=".ui.tacnet.TACNETFragment">
<LinearLayout <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<TextView <LinearLayout
android:id="@+id/text_tacnet"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:orientation="vertical">
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:textAlignment="center"
android:textSize="20sp" />
<LinearLayout <LinearLayout
android:id="@+id/tacnet_connect" android:id="@+id/tacnet_connect"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:layout_marginLeft="48dp"
android:layout_marginTop="24dp"
android:layout_marginRight="48dp"
android:layout_marginBottom="24dp"
android:background="@color/list_even"
android:orientation="vertical"
android:padding="16dp">
<TextView <TextView
android:id="@+id/textView" android:id="@+id/textView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/tacnet_connect" /> android:gravity="center|center_horizontal|center_vertical"
android:text="@string/tacnet_connect"
android:textStyle="bold" />
<TextView <TextView
android:id="@+id/textView2" android:id="@+id/textView2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/tacnet_hostname" /> android:text="@string/tacnet_hostname" />
<EditText <EditText
@@ -49,12 +53,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
android:hint="@string/tacnet_hostname" android:hint="@string/tacnet_hostname"
android:inputType="textPersonName" /> android:inputType="textUri" />
<TextView <TextView
android:id="@+id/textView3" android:id="@+id/textView3"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center|center_horizontal|center_vertical"
android:text="@string/tacnet_port" /> android:text="@string/tacnet_port" />
<EditText <EditText
@@ -63,7 +68,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ems="10" android:ems="10"
android:hint="@string/tacnet_port" android:hint="@string/tacnet_port"
android:inputType="textPersonName" /> android:inputType="number" />
<Button <Button
android:id="@+id/connect" android:id="@+id/connect"
@@ -73,22 +78,32 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/tacnet_server"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:layout_marginLeft="48dp"
android:layout_marginRight="48dp"
android:layout_marginBottom="24dp"
android:background="@color/list_even"
android:orientation="vertical"
android:padding="16dp">
<TextView <TextView
android:id="@+id/textView4" android:id="@+id/textView4"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/tacnet_server" /> android:gravity="center"
android:text="@string/tacnet_server"
android:textStyle="bold" />
<Button <Button
android:id="@+id/button2" android:id="@+id/tacnet_start_server"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/tacnet_start_server" /> android:text="@string/tacnet_start_server" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -18,8 +18,12 @@
<color name="list_even">#555</color> <color name="list_even">#555</color>
<color name="list_odd">#999</color> <color name="list_odd">#999</color>
<color name="dialogBackground">#eee</color> <color name="tacnetPrimary">#003f7f</color>
<color name="tacnetSecondary">#007f7f</color>
<color name="dialogBackground">#ddd</color>
<color name="dialogTitle">#fff</color> <color name="dialogTitle">#fff</color>
<color name="dialogLabel">#222</color>
<color name="dialogCloseColor">#222</color> <color name="dialogCloseColor">#222</color>
<color name="dialogAlert">#f80</color> <color name="dialogAlert">#f80</color>
<color name="dialogError">@color/colorDanger</color> <color name="dialogError">@color/colorDanger</color>

View File

@@ -2,4 +2,16 @@
<!-- Default screen margins, per the Android Design guidelines. --> <!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="button_padding_left">16dp</dimen>
<dimen name="button_padding_right">16dp</dimen>
<dimen name="button_padding_top">8dp</dimen>
<dimen name="button_padding_bottom">8dp</dimen>
<dimen name="button_margin_left">8dp</dimen>
<dimen name="button_margin_right">8dp</dimen>
<dimen name="button_margin_top">8dp</dimen>
<dimen name="button_margin_bottom">8dp</dimen>
<dimen name="dialogTitleTextSize">18dp</dimen>
</resources> </resources>

View File

@@ -20,6 +20,8 @@
<string name="settings_manage_presets">Manage Presets</string> <string name="settings_manage_presets">Manage Presets</string>
<string name="settings_manage_configurations">Manage Configurations</string> <string name="settings_manage_configurations">Manage Configurations</string>
<string name="search">Search</string>
<string name="dialog_close">Close</string> <string name="dialog_close">Close</string>
<string name="dialog_cancel">Cancel</string> <string name="dialog_cancel">Cancel</string>
<string name="dialog_okay">Okay</string> <string name="dialog_okay">Okay</string>

View File

@@ -6,11 +6,13 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item> <item name="colorAccent">@color/colorAccent</item>
<item name="buttonStyle">@style/Button</item> <item name="android:textColor">#fff</item>
<item name="android:textColor">#000</item>
<item name="bottomNavigationStyle">@style/NavigationBar</item>
<item name="android:fontFamily">@font/dejavusans_condensed_fontfamily</item> <item name="android:fontFamily">@font/dejavusans_condensed_fontfamily</item>
<item name="buttonStyle">@style/Button</item>
<item name="bottomNavigationStyle">@style/NavigationBar</item>
<item name="editTextStyle">@style/TextInput</item> <item name="editTextStyle">@style/TextInput</item>
<item name="switchStyle">@style/ToggleButton</item>
</style> </style>
<style name="NavigationBar" parent="Widget.Design.BottomNavigationView"> <style name="NavigationBar" parent="Widget.Design.BottomNavigationView">
@@ -30,6 +32,19 @@
<item name="android:textAllCaps">false</item> <item name="android:textAllCaps">false</item>
</style> </style>
<style name="ToggleButton" parent="Widget.AppCompat.CompoundButton.Switch">
<item name="android:background">@drawable/button</item>
<item name="android:textColor">@color/buttonContent</item>
<item name="android:fontFamily">@font/dejavusans_condensed_fontfamily</item>
<item name="android:textStyle">normal</item>
<item name="android:textSize">18sp</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingLeft">@dimen/button_padding_left</item>
<item name="android:paddingRight">@dimen/button_padding_right</item>
<item name="android:paddingTop">@dimen/button_padding_top</item>
<item name="android:paddingBottom">@dimen/button_padding_bottom</item>
</style>
<style name="TextInput" parent="Widget.AppCompat.EditText"> <style name="TextInput" parent="Widget.AppCompat.EditText">
<item name="android:background">@drawable/button</item> <item name="android:background">@drawable/button</item>
<item name="android:textColor">#ffffff</item> <item name="android:textColor">#ffffff</item>