blob: 2a5a079cc00a13db7eee50d129033512f575ac4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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>
|