Using material.io lists in android

678 Views Asked by At

According to the newest maven website the newest material.io version is: com.google.android.material.material-1.4.0-beta01

Which I did import:

implementation 'com.google.android.material:material:1.4.0-beta01'

According to the documenttation, listviews are already available in material.io.

However according to my XML-Layoutfile, there are no .lists. classes, how can that be? Am I missing some import? inj

1

There are 1 best solutions below

2
On BEST ANSWER

The components provided by the package com.google.android.material.lists are not included in the 1.4.0 version.

In any case, the current components are only ViewHolder:

  • SingleLineItemViewHolder
  • TwoLineItemViewHolder
  • ThreeLineItemViewHolder