From b7121babd1abedc085244a5145052ad453ce86a6 Mon Sep 17 00:00:00 2001 From: Artem Shvadskiy Date: Wed, 2 Dec 2015 16:05:01 -0800 Subject: Add remote apps to application drawer. Patch 2: 1. Use isRemote() method instead of checking flag manually. 2. Launch remote app directly through intent, bypassing regular app logic. 3. Pull syncing code out of LauncherModel and into RemoteFolderManager. 4. Check setting before loading apps. 5. Delete old apps before loading new ones. 6. Add/remove directly from AppDrawerListAdapter, since we are not sure if we want remote apps to show up in Google-style paged drawer. 7. Get number of columns for drawer, so we always load just enough to fill one row. Patch 3: Remove old ArrayList from LauncherModel. Patch 4: 1. Update redlines. 2. Clean up layout/dimens. 3. Add custom scrubber icon for remote apps. 4. Apply custom styles to remote header. TODO: Implement info icon click event, and replace remote apps based on updater cache status. Patch 5: Clean up app_drawer_item.xml Patch 6: Rebase. Patch 7: 1. Add forgotten rebase method to RemoteFolderManager stub. 2. Apply default styles to app_drawer_item and don't bother checking to apply styles unless remote folder is enabled. 3. Minor redline fix. Patch 8: Add larger bottom margin to remote header. Patch 9: 1. Create new view type for custom header to avoid on click bug. 2. Refactor custom style to apply on view holder creation, instead of on bind. 3. Add click event for custom header icon. Change-Id: If123d7ac82a0af0fa171fa3408b6c2f1f8a48b7b issue-id: CYNGNOS-1380 --- res/values/cm_strings.xml | 1 + res/values/colors.xml | 6 +++++- res/values/dimens.xml | 34 ++++++++++++++++++++++++++-------- 3 files changed, 32 insertions(+), 9 deletions(-) (limited to 'res/values') diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index a235a2a90..82358347c 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -93,4 +93,5 @@ This is a dynamic folder that will automatically load with recommended and featured apps from us at Cyanogen Inc. If you would not like to receive these awesome offers, simply disable below and the folder will be removed. DISABLE CLOSE + diff --git a/res/values/colors.xml b/res/values/colors.xml index 5c04aa3e4..302ab2139 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -48,13 +48,17 @@ #FFFFFFFF #FF000000 + #76000000 #bf14191e @android:color/white @android:color/darker_gray #CC14191E - #b0000000 + #b0000000 + + #00000000 + #66000000 #141a1e diff --git a/res/values/dimens.xml b/res/values/dimens.xml index b92eae20e..f6459a5da 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -131,14 +131,32 @@ 20dp - - 27dp - 6dp - 6dp - 32dp - 10dp - 8sp - 24sp + + 27dp + 8sp + 24dp + 6dp + 4 + 2 + + + 20sp + 6dp + 0dp + 0dp + + 16sp + -2dp + 15dp + 20dp + + + 16sp + 50dp + 15dp + 20dp + 14dp + 12dp 300 -- cgit v1.2.3