Android Home Screen Widget (icon, label - style)

后端 未结 2 494
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 12:33

I\'m trying to create an icon/widget (1 cell x 1 cell) that can be placed on the home screen of android. The widget will look and act exactly like the other standard shortcu

2条回答
  •  天涯浪人
    2020-11-29 13:03

    The "correct way to do this" is to make a shortcut, and not try to mimic it with an app widget. This has been pointed out repeatedly by the core Android team (notably Romain Guy) on the [android-developers] discussion list, such as:

    Widgets should look like widgets, not like shortcuts. The main reason is that there is absolutely NO guarantee about what a shortcut will look like. Other devices (especially ones with custom system UIs like MOTOBLUR or HTC Sense) might have a different look and feel. Or in the next update of Android we might change the way shortcuts are presented.

提交回复
热议问题