Why are some views inside the legacy tab in Android Studio 3.1 and what replaces them?

前端 未结 1 585
情深已故
情深已故 2021-01-30 17:01

I\'ve updated my Android Studio to 3.1 stable channel. I\'ve noticed that \"All\" tabs in palette window are removed and \"Legacy\" tab is introduced. That tab contains the foll

相关标签:
1条回答
  • 2021-01-30 17:32

    ListView - replaced with RecyclerView

    TabHost - replaced with TabLayout

    RelativeLayout - replaced with ConstraintLayout

    GridView - replaced with ConstraintLayout

    Mostly due to the new ones having better performance.

    RecyclerView.Adapter has implemented the popular and recommended holder pattern and supports modern layout transitions. It also accepts a layout manager allowing you to easily implement a grid.

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