diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-22 10:46:58 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-22 20:10:14 +0000 |
commit | 1a9d397e9d8f432d6a8acfc96a6378cff57e753a (patch) | |
tree | 7581c076b96e3265592a209c8072b90e79005394 /res | |
parent | 229ac203294898445ce64e2f9ccd2163d681c276 (diff) | |
download | android_packages_apps_Trebuchet-1a9d397e9d8f432d6a8acfc96a6378cff57e753a.tar.gz android_packages_apps_Trebuchet-1a9d397e9d8f432d6a8acfc96a6378cff57e753a.tar.bz2 android_packages_apps_Trebuchet-1a9d397e9d8f432d6a8acfc96a6378cff57e753a.zip |
AppsCustomizePagedView: Filtering
Change-Id: I829fc4b1a54e348d3c13da602d133dc20d315cca
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/hidden_apps_list.xml | 8 | ||||
-rw-r--r-- | res/layout/hidden_apps_list_item.xml | 34 | ||||
-rw-r--r-- | res/menu/apps_tab.xml | 9 | ||||
-rw-r--r-- | res/values/strings.xml | 12 | ||||
-rw-r--r-- | res/xml/preferences_drawer.xml | 7 |
5 files changed, 68 insertions, 2 deletions
diff --git a/res/layout/hidden_apps_list.xml b/res/layout/hidden_apps_list.xml new file mode 100644 index 000000000..cc9447210 --- /dev/null +++ b/res/layout/hidden_apps_list.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="5dp" + android:choiceMode="multipleChoice" + android:layout_alignParentTop="true"/>
\ No newline at end of file diff --git a/res/layout/hidden_apps_list_item.xml b/res/layout/hidden_apps_list_item.xml new file mode 100644 index 000000000..88fa8b034 --- /dev/null +++ b/res/layout/hidden_apps_list_item.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.cyanogenmod.trebuchet.widget.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="48dp" + android:gravity="center_vertical" + android:paddingRight="?android:attr/scrollbarSize" + android:background="?android:attr/actionBarItemBackground"> + + <ImageView android:id="@+id/icon" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_gravity="center"/> + + <TextView android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="15dip" + android:layout_marginRight="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal"/> + + <com.cyanogenmod.trebuchet.widget.InertCheckBox android:id="@+id/checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center_vertical"/> + +</com.cyanogenmod.trebuchet.widget.CheckableLinearLayout>
\ No newline at end of file diff --git a/res/menu/apps_tab.xml b/res/menu/apps_tab.xml index 8e95139d1..05573d9db 100644 --- a/res/menu/apps_tab.xml +++ b/res/menu/apps_tab.xml @@ -2,9 +2,14 @@ <menu xmlns:android="http://schemas.android.com/apk/res/android"> <group android:checkableBehavior="single"> <item android:id="@+id/apps_sort_title" - android:title="@string/menu_apps_sort_title" - android:checked="true" /> + android:title="@string/menu_apps_sort_title" /> <item android:id="@+id/apps_sort_install_date" android:title="@string/menu_apps_sort_install_date" /> </group> + <group android:checkableBehavior="all"> + <item android:id="@+id/apps_filter_system" + android:title="@string/menu_apps_filter_system" /> + <item android:id="@+id/apps_filter_downloaded" + android:title="@string/menu_apps_filter_downloaded" /> + </group> </menu> diff --git a/res/values/strings.xml b/res/values/strings.xml index 293d73edb..30d410716 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -164,6 +164,13 @@ s --> <string name="menu_apps_sort_title">Name</string> <!-- Noun, menu item used to sort apps by install date --> <string name="menu_apps_sort_install_date">Install Date</string> + <!-- Noun, menu item used to show system apps --> + <string name="menu_apps_filter_system">System</string> + <!-- Noun, menu item used to show downloaded apps --> + <string name="menu_apps_filter_downloaded">Downloaded</string> + + <!-- Noun, menu item used to reset hidden apps list --> + <string name="menu_hidden_apps_delete">Reset</string> <!-- URL pointing to help text. If empty, no link to help will be created [DO NOT TRANSLATE] --> <string name="help_url" translatable="false"></string> @@ -291,6 +298,9 @@ s --> <!-- Dummy string [CHAR_LIMIT=60] --> <string name="custom_workspace_cling_description_2"></string> + <!-- Hidden apps --> + <string name="hidden_apps_title">Hidden Apps</string> + <skip /> <!-- --> <!-- Preferences --> @@ -348,6 +358,8 @@ s --> <string name="preferences_interface_drawer_summary">Apps and widgets drawer</string> <string name="preferences_interface_drawer_orientation_title">Orientation</string> <string name="preferences_interface_drawer_orientation_summary">Choose which way the drawer scrolls</string> + <string name="preferences_interface_drawer_hidden_apps_title">Hidden apps</string> + <string name="preferences_interface_drawer_hidden_apps_summary">Hide apps from the drawer</string> <string name="preferences_interface_drawer_widgets_category">Widgets</string> <string name="preferences_interface_drawer_widgets_join_apps_title">Join with apps</string> <string name="preferences_interface_drawer_widgets_join_apps_summary">Swipe from apps drawer to widgets drawer without changing tabs</string> diff --git a/res/xml/preferences_drawer.xml b/res/xml/preferences_drawer.xml index 3c57d3ed9..3b4a3ef21 100644 --- a/res/xml/preferences_drawer.xml +++ b/res/xml/preferences_drawer.xml @@ -24,6 +24,13 @@ android:entries="@array/preferences_interface_drawer_orientation_entries" android:entryValues="@array/preferences_interface_drawer_orientation_values" android:defaultValue="horizontal" /> + <Preference android:key="ui_drawer_hidden_apps" + android:title="@string/preferences_interface_drawer_hidden_apps_title" + android:summary="@string/preferences_interface_drawer_hidden_apps_summary"> + <intent + android:targetPackage="com.cyanogenmod.trebuchet" + android:targetClass="com.cyanogenmod.trebuchet.preference.HiddenAppsActivity"/> + </Preference> <PreferenceCategory android:title="@string/preferences_interface_drawer_widgets_category"> <CheckBoxPreference android:key="ui_drawer_widgets_join_apps" android:title="@string/preferences_interface_drawer_widgets_join_apps_title" |