summaryrefslogtreecommitdiffstats
path: root/res/values/dimens.xml
Commit message (Collapse)AuthorAgeFilesLines
* Change icon drawable paddingArne Coucheron2017-12-151-1/+1
| | | | | | | No reason to have this huge gap between icon and text. Use 4dp like in old Trebuchet. Change-Id: I0b6e320150778891f05c38be4467e730b568d19b
* Adjust notification paddingsTony Wickham2017-09-061-2/+4
| | | | | | | | | - Reduce main notification height - Increase header height and center "Notifications" - Footer has short height when empty to serve as padding Bug: 65215656 Change-Id: I691d176628b0b51e8d9af030084b8c29837778dc
* Landscape launcher grid/all apps to spec.Jon Miranda2017-08-011-2/+8
| | | | | | | * Moves FastScroller to the right. Bug: 64160529 Change-Id: Ie0dfc0a2f0f2d6f6366e4f299769148d76017782
* Merge "Launcher grid changes." into ub-launcher3-dorval-polishTreeHugger Robot2017-07-261-0/+1
|\
| * Launcher grid changes.Jon Miranda2017-07-251-0/+1
| | | | | | | | | | | | | | | | * Tighten up space on Workspace/All Apps for tall devices. * Decrease the cell layout padding. Bug: 63996463 Change-Id: Ifc89e4786b7033e2af77d3742006d8c9ee719081
* | Revert "Update Folders to match spec."Jonathan Miranda2017-07-261-4/+3
|/ | | | | | This reverts commit fd8fa136f5cec15302bf48bdd60761e057f960c4. Change-Id: Ifb8ce81e23f38df2eb2c26f93376eca19caae5b1
* Update Folders to match spec.Jon Miranda2017-07-201-3/+4
| | | | | Bug: 63825895 Change-Id: Ia1a139f1afd944eefcd370645142227317e2bf20
* Set edgeMarginPx back to 8dp.Jon Miranda2017-07-131-2/+1
| | | | | | | | | | | | | With the new grid changes, it was set to 16dp but this caused an issue where the workspace page spacing was too large. To "restore" the original page spacing we set it back to 8dp. This caused an issue where the pages began to overlap. This CL changes the edgeMarginPx back to 8dp, and then adds the additional 8dp to the padding of the CellLayout. Bug: 63590728 Change-Id: Ie968d8bd81de19c726f73581d6609e3bc486c5ca
* New calculation for page indicator size on tall devices.Jon Miranda2017-07-061-1/+1
| | | | | | | | | For a display with a large aspect ratio, the icons can get too far spread out in portrait mode. We remedy this by adjusting the page indicator height to utilize that extra space. Bug: 62801588 Change-Id: Ib717dd32a20918248b59e1b46b4e881d6d6a7cb5
* Popup visual changesTony Wickham2017-06-271-0/+1
| | | | | | | | | | | - Don't remove elevation during animation (b/62905720) - Other adjustments (b/35766387) - Add "gutter" between notification and shortcuts - Change shortcuts to always be primary color (e.g. white) - Scale down shortcut icons when notifications present - Apply icon extracted color to "Notifications" header Change-Id: Idf791dc76d15d05d246000ad73810916d7cd1750
* Updating fast scrollbar UI in LandscapeSunny Goyal2017-06-261-1/+9
| | | | | | | | | | | Creating a separate view for FastScrollBar and moving all the relavant logic in the view. For protrait, the touch handling is delegated by the recycler view just like before. For landscape, the dcrollbar does not overlay with recyclerView and handles the touch itself Bug: 37015359 Change-Id: Ie1981326457ba739bdf0ac8063db1065f395f133
* Landscape grid changes for Workspace/All Apps.Jon Miranda2017-06-231-5/+7
| | | | | | | | This is the just first CL to get eyes on the changes. Next CL will update the All Apps to be full width. Bug: 37015359 Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
* Adjust some sizes in popupTony Wickham2017-06-191-1/+2
| | | | | | | | | - Increase main notification height and pad text/icon bottom - Reduce shortcuts height when there are notifications to 48dp - When the last notification is dismissed, animate back to 56dp Bug: 35766387 Change-Id: I84f843c042137fdf93fa720802eb2f19337197b4
* Portrait grid changes for Workspace/All Apps.Jon Miranda2017-06-191-4/+7
| | | | | Bug: 37015359 Change-Id: Ifbdd0e71c36e532b189e02283e3eeb562ebe2654
* Updating the fast scroll bar UISunny Goyal2017-06-161-8/+12
| | | | | Bug: 37015359 Change-Id: Iec0748f04ebe9a3eef13ff759da3cab6ff28c3a1
* Remove gap between popup itemsTony2017-05-311-1/+0
| | | | | | | | | | | | | - Unround interior corners - Update colors (shortcuts are gray when next to notifications, notifications always white) - Clean up animation to animate entire popup with simple reveal instead of individual items animating with reveal and icon scale Bug: 35766387 Bug: 36110804 Change-Id: I33685d53e2db3904731676123dc230be4dabb5d4
* Update FolderIcon preview to be 1dp bigger (stroke) than otherJon Miranda2017-05-241-1/+1
| | | | | | | shortcuts. Bug: 38338424 Change-Id: I2e9cdb2285e97e9d899eda13947bedb40d6fbcb2
* Adding an option to change the shadow sizeSunny Goyal2017-05-171-1/+1
| | | | Change-Id: I8ec810c5cf06852771247af5f1d717f41079c4f5
* Adding support for top padding in BaseRecyclerView. The scrollbar isSunny Goyal2017-05-151-9/+1
| | | | | | | | | drawn below the top padding. Also adding callback for getting the all-apps vertical pull range so that it can be controlled by SearchUiManager Bug: 37616877 Change-Id: Ib4642073f3e92f6676caede3bddd652fda89c86f
* Merge "Visual updates for popup" into ub-launcher3-dorvalTony2017-05-101-14/+18
|\ | | | | | | | | | | am: 5cfde85cb6 Change-Id: I4e97cb52054b5c5ff467f3481b92730f6f9a3e8e
| * Visual updates for popupTony2017-05-091-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Update some dimens - Increase left padding for shortcuts - Adjust arrow and notification ellipsis offset accordingly - Align shortcut dividers to be same width as text - Notification text 14sp instead of 15sp - Increase width of popup by 12dp - Shortcuts text 87% black instead of 54% - Arrow has same color as attached side, so takes on header gray instead of white when appropriate Bug: 37753827 Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
* | Creating a custom drawable to customize shadow.Sunny Goyal2017-04-271-0/+1
| | | | | | | | | | | | | | | | > Fixing DrapTargetBar set to visible (with alpha = 0) in the start causing unnecessary draw Bug: 37616877 Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
* | Separating top and bottom paddings for the hotseatSunny Goyal2017-04-261-3/+6
|/ | | | | | Bug: 37616877 Change-Id: I2f187576c28d62f9bb8257c9b9295edb7a8e44c0 (cherry picked from commit 751e41eb666e3ad19f1d0ca8eeebe3b2265795fc)
* Update icon badges to match specTony Wickham2017-04-251-2/+0
| | | | | | | | | | | | | - Size defined as percentage of app icon size - Width changes when there are 2 or 3 digits (round rect) - Offset slightly away from the app icon - Had to move drawing to BubbleTextView instead of FastBitmapDrawable - Hide badge when dragging and while popup is open - Tweaks for some color/text parameters Bug: 35744066 Change-Id: Ibb15ca634abaa0729aea637c904c4c6889a58c7c
* Slightly round corners of popup arrowTony2017-04-171-0/+1
| | | | | Bug: 35766387 Change-Id: I8d2be54c977074dbcf0d5884f44347edd0217bb5
* Update popup to match redlinesTony Wickham2017-04-111-24/+30
| | | | | | | | | | | - Update specs in dimens.xml and colors.xml - Move notification count to top right, and keep "Notifications" in left - Also removed NotificationHeaderView and instead use FrameLayout - Limit to 2 shortcuts instead of 3 if there are notifications - Use SP instead of DP for text (b/35869307) Bug: 35766387 Change-Id: I892640933ad6351946af3df6c805b98bb4e7cb50
* Add support for system shortcuts in popup containerTony Wickham2017-03-301-0/+2
| | | | | | | | | | | | - Currently the system shortcuts are just widgets and app info - As shortcuts, they live in ShortcutsItemView - They are populated either as icons only (if there are deep shortcuts) or as icons + text - Widgets are disabled until binding them is complete (we request for them to be bound on long-press now). We should revisit this. Bug: 34940468 Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
* Update notification visuals (part 2)Tony Wickham2017-03-021-4/+13
| | | | | | | | | | | | | | - Background is now white, and color beneath and divider color updated accordingly (not from color extraction) - Removed overflow text ("+6") and added it to a header ("6 Notifications"). Use "..." instead if there is an overflow. - Even spaced out icons in notification footer between the far right icon and the ellipsis - Remove code to change arrow tint, since it is always white now. This also fixes the issue where it was drawn as a rect. Bug: 35766387 Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
* Merge deep shortcuts in rounded rectTony Wickham2017-03-011-6/+7
| | | | | | | | | | | | | | | | | - DeepShortcutViews are added to ShortcutsItemView, which is in PopupContainerWithArrow - Moved some shortcut-specific logic to ShortcutsItemView (namely, touch/long-click handling for draggin shortcuts) - Moved round-rect clipping to PopupItemView - Removed collapseToIcon() logic, including PillWidthRevealOutlineProvider, which was only used for that purpose. It isn't necessary now that the deep shortcuts have no background themselves. - Replaced focus pill drawable with ripple effect on shortcuts and notification view. Bug: 35766387 Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
* Update notification view to match newer specsTony Wickham2017-02-241-7/+6
| | | | | | | | | | | - Use smaller radius for notifications round rect background - Remove "Notifications" header, and clip children to round rect path - Flip main notification so that icon shows on the right instead of left; footer is also flipped so animation makes sense - Clean up animations to animate view outline instead of height Bug: 32410600 Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
* Merge "Simplifying some launcher themes" into ub-launcher3-masterSunny Goyal2017-02-171-3/+0
|\
| * Simplifying some launcher themesSunny Goyal2017-02-161-3/+0
| | | | | | | | | | | | | | > Replacing some colors with theme attributes > Simplifying styles definition by removing unnecessary inheritance and inlining some definitions Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
* | Updating the shortcut preview generation logicSunny Goyal2017-02-161-0/+1
|/ | | | | | | | Drawing a shortcut icon on a white round-rect with shadow Also center aligning the preview Bug: 34819119 Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
* Merge "Updating the default widget preview generation logic" into ↵Sunny Goyal2017-02-091-0/+5
|\ | | | | | | ub-launcher3-master
| * Updating the default widget preview generation logicSunny Goyal2017-02-081-0/+5
| | | | | | | | | | | | | | | | | | We draw a while round rect box which is divided into the cells to represent the widget size. The app icon is drawn in the center for this white box. Bug: 34819119 Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
* | Show notification icon in place of "1" in badge.Tony Wickham2017-02-071-0/+2
|/ | | | | | | | | | | | | | | - When notifications update, add the NotificationInfo to the BadgeInfo if there is only one for an app. BadgeRenderer will use the NotificationInfo to get the icon to draw. - When retrieving the icon from the NotificationInfo, we draw it into a shader (similar to MaskableIconDrawable), which is rendered by BadgeRenderer. - For now, we only use the notification icon if it is large. Bug: 34839959 Bug: 32410600 Bug: 33553066 Change-Id: I31851804008dd15bab75d2759441187830c3265e
* Add swipe-to-dismiss notifications in popup menu.Tony Wickham2017-01-251-1/+14
| | | | | | | | | | | | | | - Next secondary icon animates up to replace dismissed main notification - Add padding around main notification so it always aligns with the straight edges of the view (not the rounded corners); looks more dismissable - Notification view collapses as notifications are dismissed - To mimic system notification behavior, we copy SwipeHelper, FlingAnimationUtils, and Interpolators. We also apply elevation to notifications and reveal a darker color beneath when dismissing. Bug: 32410600 Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
* Updating widget preview generation to not embed any badge.Sunny Goyal2017-01-191-1/+1
| | | | | | | | | Instead drawing badge in the view directly. This will allow us to reuse the same preview when we do not want to draw badges. This also simplified badging of shortcut config activities. Change-Id: I9c07c33bf9c2b8ef81a00026b1d42587868c906f
* FastBitmapDrawable can draw an icon badge (notification count)Tony Wickham2017-01-131-0/+4
| | | | | | | | | | | | | - Added BadgeInfo to contain data to be shown in a badge (currently just notification count). - Added BadgeRenderer in DeviceProfile to contain things relevant to drawing the badge, such as size and Paint's. - Added IconPalette to compute colors for the badge based on a dominant color (will also be used for notifications) - FastBitmapDrawable uses these classes to draw the badge. Bug: 32410600 Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
* This enables to slide up All Apps from anywhere in the workspace,Mario Bertschler2017-01-091-2/+0
| | | | | | | | | | not only over the hotseat. The tricky part handling with scrollable widgets is solved by setting requestDisallowInterceptTouchEvent from within the widget view host (and resetting it upon performing long click). Change-Id: I8b60e7ea2c1e8ae830b4737e94ed2d796265fa24
* Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logicSunny Goyal2016-12-151-8/+0
| | | | Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
* Refactor edge of screen detection code.Jon Miranda2016-11-071-3/+0
| | | | | | There were two resources that both defined the edge of the screen. Change-Id: I82ab553cc3123ef54ff1f0c692d29f3678ad04ac
* Remove unused code in DeviceProfile.Jon Miranda2016-11-021-2/+0
| | | | Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883
* Removing the section break UI supportSunny Goyal2016-10-131-3/+0
| | | | | | | This was an exploration for an alternative UI in all apps, where we show section headers before every section. This was never released. Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016
* Merge "Simplifying fast scroller logic" into ub-launcher3-masterSunny Goyal2016-10-111-0/+1
|\
| * Simplifying fast scroller logicSunny Goyal2016-10-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | > Using a separate view for drawing the popup. This allows us to use elevation property instead of drawing the shadow as bitmap. > During the thumb animation, invalidating the full track width, instead of invalidating the track and thumb separately. > The thumb path is calculated at 0,0 and drawn using canvas.translate(). This avoids recalculating the path on every scroll. Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6
* | Updating the folder cell dimensions to be closer to a squareSunny Goyal2016-10-101-2/+3
|\ \ | |/ |/| | | | | | | am: 68f240eb54 Change-Id: I68047a8eba8b3a0c8117fedbc45b6100dd04b023
| * Updating the folder cell dimensions to be closer to a squareSunny Goyal2016-10-071-2/+3
| | | | | | | | | | Bug: 31813976 Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
* | Update pre-drag lifecycle for apps with shortcuts.Tony Wickham2016-10-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - First of all, deferred drag has been renamed to pre-drag to avoid confusion with the existing deferred end drag. - For normal drags, the cycle is still startDrag --> onDragStart --> onDrop --> onDropComplete --> onDragEnd. - Pre-drags have two additional callbacks: onPreDragStart and onPreDragEnd. onPreDragStart is called between startDrag and onDragStart, and onPreDragEnd is called at the same time as onDragStart or onDragEnd. - If the pre-drag has not transitioned to a full drag before onDragEnd, onDragStart and onDropComplete are skipped (onDrop is still called to allow the DragView to animate). Change-Id: Icd7a8f75d5fcc159f9a52758c22ab6eae3edb9e2
* | resolve merge conflicts of 9311387 to ub-launcher3-masterTony Wickham2016-09-281-0/+5
|\| | | | | | | Change-Id: I449cd2c91c2906f04ebf844eab2d02befaeb2f4d