0

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

Savan Luffy
  • 440
  • 3
  • 12

1 Answers1

0

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
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • @Gabrielle Mariotti, thanks for the answer. So I just need to copy the class and add it to my xml file then, or do I need to be carefully when doing so? – Savan Luffy May 09 '21 at 13:48
  • 1
    @SavanLuffy Here an example: https://github.com/material-components/material-components-android/blob/master/catalog/java/io/material/catalog/lists/ListsMainDemoFragment.java. You have to copy the classes but also the resources. – Gabriele Mariotti May 09 '21 at 13:50