summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
Commit message (Collapse)AuthorAgeFilesLines
* Updating the folder cell dimensions to be closer to a squareSunny Goyal2016-10-101-1/+2
|\ | | | | | | | | | | am: 68f240eb54 Change-Id: I68047a8eba8b3a0c8117fedbc45b6100dd04b023
| * Updating the folder cell dimensions to be closer to a squareSunny Goyal2016-10-071-1/+2
| | | | | | | | | | Bug: 31813976 Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
* | Restore AllAppsContainerView UI to match spec.Jon Miranda2016-09-261-1/+1
|/ | | | | | Did some refactoring with Sunny's help. Change-Id: Ie4c90c316f1e381829836e11c83eaaedfed4d621
* Updating the paddings in folder cellSunny Goyal2016-09-161-14/+20
| | | | | | | | | > Updating overall padding for the cell and adding drawable padding > Ensuring that the folder cell is always rendered properly based on available vertical space Bug: 30605958 Change-Id: I8ceb9fea5a25052b0d7461f52edca0e6a33fa085
* Change all apps caret target bounding boxHyunyoung Song2016-09-071-1/+0
| | | | | | | | | | | | | | b/30400751 1) This also fixes the issue of apps drawer sliding up when page is swiped horizontally immediately above the hotseat area. 2) Disclaimer: this should be cp'ed to calgary. Hence, I tried to keep the diff small. Ideally, CaretDrawable animation handling should move to AllAppsHandleImageView via refactoring in follow up CL. Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
* Landscape container padding update.Hyunyoung Song2016-08-231-3/+3
| | | | | | b/30021487 Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
* Fixing regression in folder positioning.Winson2016-07-231-1/+21
| | | | | | | | | | - When we had the search bar, the workspace padding always accounted for the search bar (and therefor drop target bar) height when the folder opened. Now that there is no padding on the top, we should offset the bar whenever possible to ensure that the drop target bar is visible. Bug: 30110595 Change-Id: Ia9a8581981c777f2507b6bd880994a3dcfd52c39
* Matching hotseat to spec.Winson2016-07-201-11/+9
| | | | | | | | | - Fixing regression in hottest folder background getting clipped - Ensuring that the padding is correctly applied in vertical bar layout to match workspace Bug: 30021487 Change-Id: I09bce21829867f4bd4e50646e565959421e4984c
* Fixing small regressions from layout tweaksWinson2016-07-201-1/+1
| | | | | | | | | - Ensure that the caret is the right height - Ensure that the workspace page spacing matches the workspace padding, but just offscreen Bug: 30021487 Change-Id: Iaf4b33db0f6456b74986638fb6b6af78fc6e1859
* Initial changes to tweak layout.Winson2016-07-201-75/+121
| | | | | | | | | | | | | | | - Adding DeviceProfile callback for when the launcher layout changes due to insets. This is necessary since there are now different layouts depending on which side the navigation bar is on - Consolidating hotseat and other layout into the device profile launcher layout logic - Making the all apps icons match the workspace icon height - Tweaking caret drawable to draw to the bounds specified to simplify layout in each orientation - Fixing minor issue with page indicator shifting in landscape - Centering overview buttons to the workspace page Bug: 30021487 Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
* Moving the QSB out of the cell layout to the Drag layerSunny Goyal2016-07-131-8/+10
| | | | | | | | This allows better edge matching for the QSB. The QSB position is kept synchronized with the page scroll and all-apps transition. But its not visible in spring loaded and overview mode Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
* Adding support for non-zero left insetsSunny Goyal2016-07-071-20/+15
| | | | | Bug: 29613069 Change-Id: Ifdf9bcce7ecdedc510f3be8a4dc10eb8da7c4bf1
* Add caret shaped all app pull up handle to page indicator.Hyunyoung Song2016-06-151-6/+3
| | | | | | | | | b/28917826 > PageIndicator is also added in landscape > Touch delegate allows the active touch area to be 36dp Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
* Removing the SearchDropTarget bar as it no longer contains the QSBSunny Goyal2016-06-061-123/+51
| | | | | | | | | | | | > Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
* Add PageIndicator interface and custom PageIndicatorLine view.Tony Wickham2016-05-171-1/+0
| | | | | | | | | | | | | - The current PageIndicator has been renamed to PageIndicatorDots and PageIndicatorMarker has been renamed to PageIndicatorDot. - PageIndicatorDots and PageIndicatorLine implement PageIndicator. - PageIndicatorLine uses scroll progress and number of pages to draw a line of the correct size and position. - All of these page indicator files are now in a pageindicators package. Bug: 27227498 Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
* Fixing wrong method nameSunny Goyal2016-04-041-1/+1
| | | | Change-Id: Idabe5d8ee41f31d30dcbe03aa626f7b39f713c14
* Adding an upper bound to all-apps width on larger devicesSunny Goyal2016-04-041-0/+15
| | | | Change-Id: I16a0d8fb7c5023045d0a6b9e8089e0ab6a476d6d
* Defining separate layouts for horizontal and vertical drop target barsSunny Goyal2016-03-241-25/+2
| | | | | | | instead of chaning the layouts in DeviceProfile Bug: 27721989 Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204
* Switch all folder preview rendering to be programmatic (ie. no assets)Adam Cohen2016-03-031-0/+2
| | | | | | | | | | | | | | | -> Refactored the preview background rendering to be much more self-contained. This cleans up a lot of code in the CellLayout, and keeps the logic in the right place. -> We switch to software rendering for performance and compatibility reasons. -> Removed all assets. -> FolderIcon accept animation includes animation of the clipped region. -> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon and the CellLayout. Unfortunately, CellLayout rendering is still required to work around clipping issues (due to use of software layer). We also need this to support folder creation feedback. Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51
* Merge "Setting content bounds in onMeasure as it uses measuredWidth, which ↵Sunny Goyal2016-02-171-1/+1
|\ | | | | | | | | | | | | | | | | might not be available during onCreate" into ub-launcher3-burnaby-polish am: 5df98da8fd * commit '5df98da8fd2c1997bd6c09a4772f018730345090': Setting content bounds in onMeasure as it uses measuredWidth, which might not be available during onCreate
| * Setting content bounds in onMeasure as it uses measuredWidth, which mightSunny Goyal2016-02-161-1/+1
| | | | | | | | | | | | | | | | | | | | not be available during onCreate Also fixing the calculation of allApps column could, which was counting an additional icon gap Bug: 27173894 Change-Id: I8be8cccc76d7e7d945cf9383567a3026228b6c86
* | Refactor FolderIcon to separate the preview effect into it's own classAdam Cohen2016-02-121-1/+1
| | | | | | | | | | | | | | -> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
* | Tweak spring-loaded workspace.Tony Wickham2016-02-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | - No page indicators in spring-loaded mode - Don’t move workspace up as high - Scale workspace at 90% instead of 80% on phones - Increase speed of workspace -> spring-loaded -> workspace - Widgets were being scaled down twice when dragging from widget picker - Don't scale up icons when dragging (scaling other stuff down is enough) - Make scrim less dark and panels more transparent - Thin white border around page instead of highlight when hovering Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
* | resolve merge conflicts of b9759d399b to ub-launcher3-calgary.Tony Wickham2016-02-011-3/+14
|\| | | | | | | Change-Id: I66230c15e5eaeef316d4e2f14b85c6ff1b6e977d
| * Add extra space for the search bar.Tony Wickham2016-02-011-3/+14
| | | | | | | | | | | | Also fixed a broken test. Change-Id: I1c270e69617528ea30f0e26a2101673e9b9fa63c
* | resolve merge conflicts of a50a419b82 to ub-launcher3-master.Sunny Goyal2015-12-111-1/+1
|\| | | | | | | Change-Id: Ie0e233e22284b8ddd2dbb86204e042651b6dfae2
| * Restarting launcher when on font scale changeSunny Goyal2015-12-111-1/+1
| | | | | | | | | | | | | | | | | | Chaning the font scale affects the static device profile and may affect various background threads and static constants. Killing the process ensures that these states get invalidated properly. Bug: 26131935 Change-Id: Idc262ee5d158019e7a2505f8fb9a6413c06bfdeb
* | Merge "Fixing All apps not respecting scaled icon size" into ↵Sunny Goyal2015-12-101-3/+3
|\| | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: 49750ce75e * commit '49750ce75e7413ad3c4fe4be31a2e1d73312794b': Fixing All apps not respecting scaled icon size
| * Fixing All apps not respecting scaled icon sizeSunny Goyal2015-12-101-3/+3
| | | | | | | | Change-Id: I3d05c713939fd69d04f5896cdc5db91480b0d4d1
* | Revert "Revert "Reverting folder cell width on portrait phones.""Tony Wickham2015-11-131-1/+3
|\| | | | | | | | | | | | | am: 6159c242bc * commit '6159c242bc610f13e4c7550ae8b15f25603f4b23': Revert "Revert "Reverting folder cell width on portrait phones.""
| * Revert "Revert "Reverting folder cell width on portrait phones.""Tony Wickham2015-11-131-1/+3
| | | | | | | | | | | | This reverts commit 1974e98f5ec4713e50ba64ec32a7607c92ddce9b. Change-Id: I7c5d86de187989c085f676933ce3f1cbd57ed8a7
* | Revert "Reverting folder cell width on portrait phones."Tony Wickham2015-11-121-3/+1
|\| | | | | | | | | | | | | am: 1974e98f5e * commit '1974e98f5ec4713e50ba64ec32a7607c92ddce9b': Revert "Reverting folder cell width on portrait phones."
| * Revert "Reverting folder cell width on portrait phones."Tony Wickham2015-11-121-3/+1
| | | | | | | | | | | | This reverts commit b25e684a766362422f5693f7a2189910c1275584. Change-Id: Ie86adc4b35c73ab7ef78d73225b437adc4751172
* | Reverting folder cell width on portrait phones.Tony Wickham2015-11-121-1/+3
|\| | | | | | | | | | | | | am: b25e684a76 * commit 'b25e684a766362422f5693f7a2189910c1275584': Reverting folder cell width on portrait phones.
| * Reverting folder cell width on portrait phones.Tony Wickham2015-11-121-1/+3
| | | | | | | | | | | | | | | | | | | | The extra folder cell space added in ag/790800 looks bad on phones in portrait mode, so reverting it here. However, we keep the extra space on tablets or phones in landscape mode, since it provides more room for long app names (bug 22462641). Bug: 25662215 Change-Id: I2a37b884458ee557c9b8cff0c3edef16bfc50efb
* | Added Gravity.CENTER_HORIZONTAL to drop target layout params.Tony Wickham2015-10-301-1/+1
| | | | | | | | | | | | | | I'm not sure if it is strictly necessary, but it is probably good to be more explicit regardless. Change-Id: Ib7647dbcb5449e22ef87da8d49b4e7804ba5c17f
* | resolve merge conflicts of a3c74d10a7 to ub-launcher3-master.Tony Wickham2015-10-301-39/+65
|\| | | | | | | Change-Id: Ibeb2499ac278e4094a2922501cfffad2489e58ed
| * Setting correct height for search bar widget options bundle.Tony Wickham2015-10-291-42/+66
| | | | | | | | | | | | | | | | | | | | - Seperate search bar height from its top and bottom paddings - Report this height plus 8dps top and bottom for the widget options - Use a separate bottom padding to adjust spacing between QSB and the workspace - Add tests to verify the height of the search bar in both normal and tall modes (ran on Nexus 6, 7, and 10) Change-Id: Ia7557785d1b38194eee869d0460456e8f33447d5
* | resolve merge conflicts of 52040c2d51 to ub-launcher3-master.Tony Wickham2015-10-231-9/+11
|\| | | | | | | Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c
| * Set search bar height before setting up views in Launcher.Tony Wickham2015-10-211-9/+11
| | | | | | | | | | | | | | | | This ensures that the QSB widget options are set correctly the first time they are used. Bug: 24704753 Change-Id: I2bb13ff012b6f13ca076deed61f0b08a7037e2fa
* | am a295048a: Increase folder cell width slightly.Tony Wickham2015-10-121-1/+2
|\| | | | | | | | | * commit 'a295048a69d35b5adc3f021c3d40c32700cc9629': Increase folder cell width slightly.
| * Increase folder cell width slightly.Tony Wickham2015-10-121-1/+2
| | | | | | | | | | | | | | | | The increased breathing room makes it more likely that long app names will fit in the folder cells without being cut off. Bug: 22462641 Change-Id: I110ede040f9e8fdddbf0c4e7a395ac71435559f3
* | resolved conflicts for fa3c369c to ub-launcher3-masterTony Wickham2015-10-091-11/+26
|\| | | | | | | Change-Id: I6bfc3d3b731a414060d86d4f1dfc5480c279edc9
| * Merge "Added launcher callback to specify search bar height." into ↵Tony Wickham2015-10-091-13/+28
| |\ | | | | | | | | | ub-launcher3-burnaby
| | * Added launcher callback to specify search bar height.Tony Wickham2015-10-081-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | The search bar can now be be normal or tall. When it is set to tall, the hotseat and page indicators move down so that the workspace isn't compressed quite as much. Change-Id: Id92a946eab3a93524999f92efd847a501a95f002
* | | resolved conflicts for d70a4b7b to ub-launcher3-masterTony Wickham2015-10-081-11/+29
|\| | | | | | | | | | | Change-Id: Ib04f80eeebf551fc026925830fc4739d1c620513
| * | Grid adjustments, specifically for Ryu.Tony Wickham2015-10-081-11/+29
| |/ | | | | | | | | | | | | | | | | | | | | | | > Less than 14% of the screen is used for left/right workspace padding. (To be clear, this means 7% for the left and 7% for the right.) > Hotseat icons are the same size as workspace icons. > Far left and right hotseat edges line up with workspace edges. > All Apps button is scaled down 8dp. Bug: 24003478 Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
* | am d47807d7: am 3a3517fb: Add widget size options for QSB.Tony Wickham2015-10-071-3/+3
|\| | | | | | | | | * commit 'd47807d7a97d4ab555b2f9be882591c08955d699': Add widget size options for QSB.
| * Add widget size options for QSB.Tony Wickham2015-10-061-3/+3
| | | | | | | | | | Bug: 24704753 Change-Id: I3e16c1f67a67b08b3843f7f38312447bdfa6a91e
* | Flinging to the left deletes when in vertical bar layout mode.Tony Wickham2015-09-161-1/+1
| | | | | | | | | | | | | | This mode has the remove icon on the left side, so flinging to the left makes more sense. But flinging up still works in either case. Change-Id: I7ab40776b67659026f03f81efd43fae3375b5ba0