summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAntonin Fouques <totofouques@gmail.com>2012-10-17 22:09:08 +0200
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-12-01 01:45:20 -0800
commit96c57eb86e38036eebdb498a3b97e7912527278f (patch)
tree6863e4a4befe23e75849af3725f3072396c3538a /res
parentf9b5a4d932742d41891d5ad814441a6b09f83395 (diff)
downloadandroid_packages_apps_Trebuchet-96c57eb86e38036eebdb498a3b97e7912527278f.tar.gz
android_packages_apps_Trebuchet-96c57eb86e38036eebdb498a3b97e7912527278f.tar.bz2
android_packages_apps_Trebuchet-96c57eb86e38036eebdb498a3b97e7912527278f.zip
Trebuchet : Add a pref to set hotseat icon's number
This adds a preference for the hotseat (Launcher main bar/dock) - Choose the number of icons on the hotseat - Choose the place of the applications drawer button by drag'n'drop - Translations in English + French This is usefull for big screen devices. You can set from 1 to 9 buttons on the hotseat. You can set the app button where you want by drag'n'drop. Default values are keeped unchanged so there is no pb with first screen tuto + no pb with default shortcuts. Demo video : https://www.dropbox.com/s/2wamj9yr1s3woxl/Trebuchet-hotseat-icons.mp4 Demo apk : https://www.dropbox.com/s/psqab2gyivcyo3d/CmoaToto%20Trebuchet.apk PatchSet 1 : initial commit PatchSet 2 : coding style PatchSet 3 : - Remove prefs for tablet - AllApps Button move by Drag'n'Drop (instead of pref) PatchSet 4 : searchbar & deletebar don't dis/appear while dragging AllApps button) PatchSet 5 : dropOnFlingToDeleteTarget disabled for AllApps button PatchSet 6 : - Fix shortcuts errors in database - Set docks pref disabled for large screen programmatically - Fix english strings/french trads Change-Id: I21f6a4610ed16c8780ccf6e2acffcf6e07511457
Diffstat (limited to 'res')
-rw-r--r--res/values-fr/strings.xml2
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/xml/preferences.xml11
3 files changed, 12 insertions, 3 deletions
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
index 241e1c2c2..961cee486 100644
--- a/res/values-fr/strings.xml
+++ b/res/values-fr/strings.xml
@@ -172,6 +172,8 @@
<!-- Dock -->
<string name="preferences_interface_dock_title">Barre de Dock</string>
+ <string name="preferences_interface_dock_size_title">Icônes du dock</string>
+ <string name="preferences_interface_dock_size_summary">Définir le nombre d\'icône du dock</string>
<!-- Icons -->
<string name="preferences_interface_icons_title">Icônes</string>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a866a0e98..300364ae1 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -345,6 +345,8 @@ s -->
<!-- Dock -->
<string name="preferences_interface_dock_title">Dock</string>
+ <string name="preferences_interface_dock_size_title">Dock icons</string>
+ <string name="preferences_interface_dock_size_summary">Choose the number of icons in the dock</string>
<!-- Icons -->
<string name="preferences_interface_icons_title">Icons</string>
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index 5ec6a95f2..3023f60f0 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -115,10 +115,15 @@
</PreferenceScreen>
<!-- Dock -->
- <!-- <PreferenceScreen android:key="ui_dock"
+ <PreferenceScreen android:key="ui_dock"
android:title="@string/preferences_interface_dock_title">
-
- </PreferenceScreen> -->
+ <com.cyanogenmod.trebuchet.preference.NumberPickerPreference android:key="ui_dock_hotseat_size"
+ android:title="@string/preferences_interface_dock_size_title"
+ android:summary="@string/preferences_interface_dock_size_summary"
+ android:defaultValue="@integer/hotseat_cell_count"
+ launcher:max="9"
+ launcher:min="1" />
+ </PreferenceScreen>
<!-- Icons -->
<!-- <PreferenceScreen android:key="ui_icons"