How to group android shortcuts inside a "folder"programatically in an android custom launcher application?

huangapple go评论60阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月5日 19:02:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76405786.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定