简体   繁体   English

如何在Android应用程序中嵌入应用程序抽屉/应用程序启动器

[英]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.

相关问题 单击应用程序抽屉按钮时,Android启动器崩溃 - Android launcher crashes when I click the app drawer button 如何在 Android Studio 中打开 AOSP 默认启动器应用 Launcher3? - How to open AOSP default launcher app Launcher3 in Android Studio? 如何修复未在应用程序抽屉中显示应用程序图标? - How to fix not show application icon into app drawer? 辅助功能服务是否有任何方法可以检测用户何时位于启动器或应用程序抽屉中? - Is there any way for an Accessibility service to detect when the user is in the launcher or app drawer? 如何将 Embed Google Maps 添加到 Android 应用程序中 - How to add Embed Google Maps into android app 如何在Android O上强制使用应用程序图标? (防止启动器进行调整) - How to force an app icon on Android O? (Prevent the launcher from adapting it) 制作 android 电视启动器应用程序需要什么 - What is required to make an android tv launcher app 在一个Android Java应用程序中嵌入Groovy - Embed Groovy in an Android Java App 删除 Android 意图启动器并从另一个应用程序中的按钮启动应用程序 - Removing Android Intent launcher and launch an app from a button in another app 应用程序图标未在运行的应用程序中显示,但在android的启动器中显示 - App icon is not show in running app but its showing in launcher in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM