user6671516
user6671516

Reputation: 1

No resource identifier found

I am trying to create an app with a collapsible toolbar but getting an error "No resource identifier found for attribute 'layout_collapseMode' in package android"

i have tried adding different libraries in gradle but error still persists

this is the errors and the highlighted xml code for the error

Upvotes: 0

Views: 179

Answers (1)

Venkata Narayana
Venkata Narayana

Reputation: 1697

Change the prefix to app:layout_collapseMode="parallax" from android:layout_collapseMode="parallax" on line 36.

Also, this line should belong in the RelativeLayout(parent of the ImageView), which is a direct child of the CollapsingToolbarLayout if you intend to achieve parallax collapsing of the layout.

Upvotes: 1

Related Questions