Turn the app drawer into a one-column list with letter headers
PRD M2 (AD-1 to AD-3, AD-7, AD-8, HS-7). The drawer keeps Launcher3's adapter, sorting, live updates, click, long-press menu and drag; only what differs from the grid is new. - FlexeraDrawer (flexera/src): column count, row styling, and a letter-header adapter item - flexera/res/layout/all_apps_icon.xml overrides Launcher3's grid cell with a horizontal row (46dp icon, name beside it, 64dp tall) - AlphabeticalAppsList adds a header item at the start of each letter group and points the fast-scroll section at it; Private Space keeps its own framing - BaseAllAppsAdapter creates and binds the header view type and styles rows - DeviceProfileOverrides forces one drawer column - DeviceProfile.getAllAppsIconStartMargin returns the row padding for a one-column drawer, which keeps the search bar full width - Suggested apps row above the list is off by default Tested on the Android 17 emulator: scrolling, tap to launch, long-press menu, drag to the home screen, and live removal and return of an app all work. The right-edge fast scroller did not respond to scripted drags and still needs a hand test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9376781e8a
commit
76c3603693
9 files changed
+165
-2
No files matched your search
@@ -1979,6 +1979,14 @@ public class DeviceProfile {
|
||||
|
||||
/** The margin between the edge of all apps and the edge of the first icon. */
|
||||
public int getAllAppsIconStartMargin(Context context) {
|
||||
// Flexera Launcher: in the one-column drawer list the first icon sits at the row's start
|
||||
// padding. The grid maths below would instead centre it in a full-width cell, which
|
||||
// squeezed the search bar down to a small pill.
|
||||
if (numShownAllAppsColumns == app.flexera.drawer.FlexeraDrawer.COLUMNS) {
|
||||
return (Utilities.isRtl(context.getResources()) ? allAppsPadding.right
|
||||
: allAppsPadding.left)
|
||||
+ app.flexera.drawer.FlexeraDrawer.rowStartPadding(context);
|
||||
}
|
||||
int allAppsSpacing;
|
||||
if (isVerticalBarLayout()) {
|
||||
// On phones, the landscape layout uses a different setup.
|
||||
|
||||
Reference in new issue
Block a user