aboutsummaryrefslogtreecommitdiff
path: root/src/main/res/layout/side_menu_layout.xml
diff options
context:
space:
mode:
authorMenny Even Danan <menny@evendanan.net>2015-01-10 03:35:38 +0000
committerMenny Even Danan <menny@evendanan.net>2015-01-10 03:35:38 +0000
commit39f4162d1827135e050410bc2c695a5b1b49952c (patch)
tree7fb677d6f28b01596529bb8f3b5a822b1bc95284 /src/main/res/layout/side_menu_layout.xml
parentd48a9b65091483b6dd7fa9d0d40ac85351753d19 (diff)
downloadAnySoftKeyboard-39f4162d1827135e050410bc2c695a5b1b49952c.tar.gz
AnySoftKeyboard-39f4162d1827135e050410bc2c695a5b1b49952c.tar.bz2
re-enabling Robolectric tests. Issue #377
Change-Id: I36b75220ddb99fe8f4ef55ccf172c50cca0c5b65
Diffstat (limited to 'src/main/res/layout/side_menu_layout.xml')
-rw-r--r--src/main/res/layout/side_menu_layout.xml123
1 files changed, 123 insertions, 0 deletions
diff --git a/src/main/res/layout/side_menu_layout.xml b/src/main/res/layout/side_menu_layout.xml
new file mode 100644
index 000000000..2a5a079cc
--- /dev/null
+++ b/src/main/res/layout/side_menu_layout.xml
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:ask="http://schemas.android.com/apk/res-auto"
+ android:layout_height="match_parent"
+ android:fillViewport="true"
+ android:layout_width="match_parent">
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/menu_background_normal"
+ android:weightSum="1">
+
+ <net.evendanan.pushingpixels.AboutAppView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ ask:appIcon="@drawable/ic_launcher"
+ ask:appName="@string/ime_name"
+ ask:appOwner="@string/copyright_owner"
+ android:background="@drawable/menu_background"
+ ask:textColor="@android:color/black"
+ android:onClick="onNavigateToRootClicked" />
+
+ <View style="@style/Ask.Menu.Divider" />
+
+ <!-- consider adding a small flag or keyboard icon next to the Title -->
+ <TextView
+ style="@style/Ask.Menu.Item.Title"
+ android:text="@string/languages_cat"
+ android:drawableLeft="@drawable/ic_language_category"
+ android:drawablePadding="4dp"/>
+
+ <View style="@style/Ask.Menu.Item.Title.Divider" />
+ <!-- this will need to be refactor! I can't have all those copy-pastes! -->
+ <LinearLayout
+ style="@style/Ask.Menu.Row"
+ android:onClick="onNavigateToKeyboardAddonSettings">
+
+ <TextView
+ style="@style/Ask.Menu.Row.Item"
+ android:text="@string/keyboards_group" />
+
+ <TextView
+ style="@style/Ask.Menu.Row.Item.Extra"
+ android:id="@+id/keyboards_group_extra_data"
+ android:text="@string/keyboards_group_extra_template" />
+ <!-- consider showing the current language flag -->
+ </LinearLayout>
+
+ <View style="@style/Ask.Menu.Item.Divider" />
+
+ <TextView
+ style="@style/Ask.Menu.Item"
+ android:layout_width="match_parent"
+ android:text="@string/special_dictionaries_group"
+ android:onClick="onNavigateToDictionarySettings" />
+
+ <View style="@style/Ask.Menu.Item.Divider" />
+
+ <TextView
+ style="@style/Ask.Menu.Item.More"
+ android:layout_width="match_parent"
+ android:text="@string/menu_even_more_settings"
+ android:onClick="onNavigateToLanguageSettings" />
+
+ <!-- user interface -->
+ <!-- consider adding a small color platte icon next to the Title -->
+ <TextView
+ style="@style/Ask.Menu.Item.Title"
+ android:text="@string/ui_group"
+ android:drawableLeft="@drawable/ic_user_interface_category"
+ android:drawablePadding="4dp"/>
+
+ <View style="@style/Ask.Menu.Item.Title.Divider" />
+
+ <LinearLayout
+ style="@style/Ask.Menu.Row"
+ android:onClick="onNavigateToKeyboardThemeSettings">
+
+ <TextView
+ style="@style/Ask.Menu.Row.Item"
+ android:text="@string/keyboard_theme_group" />
+
+ <TextView
+ style="@style/Ask.Menu.Row.Item.Extra"
+ android:id="@+id/theme_extra_data"
+ android:text="@string/selected_add_on_summary" />
+ <!-- consider to show the Theme's icon -->
+ </LinearLayout>
+
+ <View style="@style/Ask.Menu.Item.Divider" />
+
+ <TextView
+ style="@style/Ask.Menu.Item"
+ android:text="@string/effects_group"
+ android:onClick="onNavigateToEffectsSettings" />
+
+ <View style="@style/Ask.Menu.Item.Divider" />
+
+ <TextView
+ style="@style/Ask.Menu.Item"
+ android:text="@string/gesture_settings"
+ android:onClick="onNavigateToGestureSettings" />
+
+ <View style="@style/Ask.Menu.Item.Divider" />
+
+ <TextView
+ style="@style/Ask.Menu.Item.More"
+ android:text="@string/menu_even_more_settings"
+ android:onClick="onNavigateToUserInterfaceSettings" />
+
+ <!-- this empty view will allow us to push the About item all the way to the bottom of the menu -->
+ <View android:layout_width="1dp"
+ android:layout_height="0px"
+ android:layout_weight="1"/>
+
+ <TextView
+ style="@style/Ask.Menu.Item"
+ android:layout_marginTop="24dp"
+ android:text="@string/menu_about_item"
+ android:onClick="onNavigateToAboutClicked" />
+ </LinearLayout>
+</ScrollView> \ No newline at end of file