来源:https://developer.android.com/training/material/lists-cards.html如何设置RecyclerView在Android小工具
我想设置RecyclerView
在主屏幕上的小部件。是否有可能,如果是,如何去做?请给我一些样品。
来源:https://developer.android.com/training/material/lists-cards.html如何设置RecyclerView在Android小工具
我想设置RecyclerView
在主屏幕上的小部件。是否有可能,如果是,如何去做?请给我一些样品。
RecyclerView不支持用作RemoteView。见CreatingLayout
甲RemoteViews对象(以及,因此,应用程序的widget)可以支持 以下布局类:
的FrameLayout
的LinearLayout
RelativeLayout的
GridLayout的而下面的窗口小部件类别:
AnalogClock
Button 天文台
的ImageButton
ImageView的
进度
的TextView
ViewFlipper
的ListView
的GridView
StackView
AdapterViewFlipper
谢谢你解决我的问题,我会尝试。 – Stopfan 2014-11-14 22:14:07
欢迎您。如果你觉得这个答案令人满意,不要忘记接受它。 – 2014-11-14 22:15:31
这个答案不正确,AppWidgets(RemoteViews)在给定的时间不支持RecyclerView。 – user1806772 2016-01-04 23:10:37
RecyclerView
是not presently supported for app widgets。
可能的[RecyclerView在Android主屏幕小部件(HTTP重复:// stackoverflow.com/questions/29051733/recyclerview-in-android-home-screen-widget) – user1806772 2016-01-04 23:14:45