gpt4 book ai didi

android - 在 android 小部件中映射

转载 作者:行者123 更新时间:2023-11-29 18:14:06 25 4
gpt4 key购买 nike

我正在尝试在 android 小部件中显示 map 。但据我所知,android 小部件中没有 mapview。任何人请告诉我有没有可能在 android 小部件中显示 map 的方法?

最佳答案

map View 不是小部件支持的 View 。在这里可以注意到:

http://developer.android.com/guide/topics/appwidgets/index.html

Creating the App Widget layout is simple if you're familiar with XML Layouts. However, you must be aware that App Widget layouts are based on RemoteViews, which do not support every kind of layout or view widget.

A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:

  • FrameLayout
  • LinearLayout
  • RelativeLayout

And the following widget classes:

  • AnalogClock
  • Button
  • Chronometer
  • ImageButton
  • ImageView
  • ProgressBar
  • TextView
  • ViewFlipper
  • ListView
  • GridView
  • StackView
  • AdapterViewFlipper

Descendants of these classes are not supported.

关于android - 在 android 小部件中映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9126488/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com