How to embed app drawer / app launcher in Android

2019-09-13 03:06发布

问题:

I'd like to embed the app drawer within an activity/layout in my android app. Has anyone seen an example of how this can be done?

I did a StackOverflow search and I wasn't able to find anything useful...

https://stackoverflow.com/search?q=app+drawer

回答1:

Download DevApps Direct on your device. All the samples DevApps showcases are open source.

It has an example called "Sliding up Panel", with its code here.

But note that you'll also need to merge the code for this gridview example if you want to replicate the listing of the launcher icons in that panel just like the app drawer does.



回答2:

I basically think this is a bad idea you shouldn't be launching other apps from inside your app unless it is a launcher. That said I've written a few. Grab my source here https://github.com/aospTV/TVLauncher-Gee