[英]How to embed app drawer / app launcher in Android Application
I'd like to embed the app drawer within an activity/layout in my android app. 我想将应用程序抽屉嵌入到我的Android应用程序的活动/布局中。 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... 我进行了StackOverflow搜索,但找不到任何有用的信息...
https://stackoverflow.com/search?q=app+drawer https://stackoverflow.com/search?q=app+drawer
Download DevApps Direct on your device. 在您的设备上下载DevApps Direct 。 All the samples DevApps showcases are open source.
DevApps展示的所有示例都是开源的。
It has an example called "Sliding up Panel", with its code here . 它有一个名为“ Sliding up Panel”的示例,其代码在此处 。
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. 但是请注意,如果您想要像应用程序抽屉一样在该面板中复制启动器图标列表,则还需要合并此gridview示例的代码。
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
在这里获取我的资源https://github.com/aospTV/TVLauncher-Gee
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.