Bug: http://b/issue?id=3053235
This is a proper way to do what was done in https://android-git.corp.google.com/g/#change,71522
The longAxisEndPadding used to be equal to button_bar_height.
Increased it to match proposed mock from designers and increase space
between last row and hot seats buttons.
Change-Id: I31dfba0a3e90a30f18d42b16681592d9527517d4
Strange behavior: cell height has to be increased to increase padding.
I guess this is because the cells have to fit in the screen height and are
rescaled, with a top alignement thus creating padding at the bottom.
Bug: http://b/issue?id=3053235
Change-Id: I727ab091a736916b7efc1c05a80c5b006bc56f67
* Correct the density (or, rather, remove the density) of
the icons in the cache to ensure they're drawn px-for-px.
* Create a new landscape layout for 2DAA that aligns things
properly (viz: Home icon at right, padding tuned, 6
columns).
* Performance improvement: Make the app grid, icons, and
home icon all opaque (by setting a black background) and
move the home icon so it doesn't overlap the grid.
Change-Id: I961323e9e39cb122cdc694853706e7fcdd10142f
The drop region is now 70dip^2. This means it invisibly
overlaps nearby icons ever so slightly---not enough to
prevent icons being properly dropped on the workspace.
Bug: 2623734
Change-Id: I945160ef6bdfc0a4ac3cf9db57d440bad424dfc4
To do this, we invoke resolveActivity to see what activity
would result from viewing an arbitrary (but valid) URL. If
there's just one installed, or there are multiple and the
user has chosen a default handler for http:, we take that
component and launch it with CATEGORY_HOME (so as not to
upset the URL in the frontmost window/tab/what-have-you).
We also use this information to extract the localized name
of the app, which is then installed into the hotseat as the
contentDescription (for accessibility).
If there's no default and multiple options are availble,
we'll get the activity chooser instead. In this case, we
just fire off that chooser and let the user pick an app
(possibly setting a default along the way). Because the
default may change, we reload all this hotseat information
every time one of the hotseats is tapped.
Another side-effect of this approach is that until there
exists a default browser, the original URL will be sent to
the activity the user chooses from the ResolveActivity. So
we need a sensible default URL here; one can be found in
R.string.default_browser_url (similar to Browser's
R.string.homepage_base).
This change also moves the hotseat intents and icons into
arrays.xml for easier configuration.
Change-Id: I06268df8b59e0f41f1f8b0e47f823db4c44ec761
Also closes the gap below the buttons (not visibly, but the
hit rect now reaches the bottom of the screen). Bug: 2630273
Change-Id: I8e8de6b63f91b2fcf87c3af856003cc36dd6c096