How to set RecyclerView in android widget

前端 未结 2 1520
囚心锁ツ
囚心锁ツ 2021-02-19 11:37

From : https://developer.android.com/training/material/lists-cards.html

I want to set RecyclerView in widget on home screen. Is it possible, and if it is, h

相关标签:
2条回答
  • 2021-02-19 12:08

    RecyclerView is not supported to be used as a RemoteView. See CreatingLayout

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

    FrameLayout
    LinearLayout
    RelativeLayout
    GridLayout

    And the following widget classes:
    AnalogClock
    Button Chronometer
    ImageButton
    ImageView
    ProgressBar
    TextView
    ViewFlipper
    ListView
    GridView
    StackView
    AdapterViewFlipper

    0 讨论(0)
  • 2021-02-19 12:23

    RecyclerView is not presently supported for app widgets.

    0 讨论(0)
提交回复
热议问题