material-components-android-codelabs icon indicating copy to clipboard operation
material-components-android-codelabs copied to clipboard

In NestedScrollView: layout_behavior is trying to give error of resource linking failed

Open nachiket-gohil opened this issue 5 years ago • 0 comments

Describe the bug In shr_product_grid_fragment.xml, inside androidx.core.widget.NestedScrollView, app:layout_behavior="@string/appbar_scrolling_view_behavior". this attribute is the reason of error: resource linking failed because string is not defined

To Reproduce Steps to reproduce the behavior:

  1. Go to 'material-components-android-codelabs-101-starter\java\shrine\app\src\main\res\layout\shr_product_grid_fragment.xml'
  2. Click on '...'
  3. Scroll down to 'androidx.core.widget.NestedScrollView'
  4. See error

Expected behavior In my case, by removing layout_behaviour attribute, app works fine

Screenshots If applicable, add screenshots to help explain your problem.

Codelab details (please complete the following information about the codelab):

  • Level (MDC-102)
  • Language (Java)
  • Link to the codelab: "https://google.dev/codelabs/mdc-102-java?return=https%3A%2F%2Fgoogle.dev%2Fpathways%2Fbeta%2Fmdc-java%3Fhl%3Den%23codelab-https%3A%2F%2Fgoogle.dev%2Fcodelabs%2Fmdc-102-java&hl=en#4 Screenshot (71) Screenshot (72)

"

Additional context Add any other context about the problem here.

nachiket-gohil avatar Jun 16 '20 15:06 nachiket-gohil