Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
Just change @id
to @+id
while defining or referencing an id. This will fix your issue.
For me, I just changed
android:layout_below="@id/toolbar_layout"
to
`android:layout_below="@+id/toolbar_layout"