英文:
How to group android shortcuts inside a "folder"programatically in an android custom launcher application?
问题
我正在开发一个自定义的启动器应用程序,我想像Android的默认启动器行为一样将一些应用程序分组到文件夹中。我找不到可以编程创建这个“文件夹”的API。
我已经尝试定义了OnItemLongClick行为,但仅仅这样做是无法分组图标的。
英文:
I'm developing a custom launcher application and I'd like to group some apps inside a folder like the default launcher behavior of Android. I couldn't find some API to create this "folder" programatically.
I already tried to define the OnItemLongClick behavior but only this is not possible to group the icons.
答案1
得分: 0
like the default launcher behavior of Android
Android没有"默认启动器"。在成千上万种Android设备型号中,有几十种预安装的启动器实现。
I couldn't find some API to create this "folder" programatically.
这不是操作系统的功能。您需要自行在应用程序管理的某种文件中存储这些信息。
英文:
> like the default launcher behavior of Android
There is no "default launcher" for Android. Across the tens of thousands of Android device models, there are several dozen pre-installed launcher implementations.
> I couldn't find some API to create this "folder" programatically.
That is not a feature of the operating system. You will need to store this information yourself in some sort of file managed by your app.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论