Search code examples
androidlayoutmaterial-designmaterial-components-androidgoogle-material-icons

Using material.io lists in android


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


Solution

  • 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