Sometimes you have to use the + sign. For example. when you use <include ... /> and the included file looks like this:
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.FloatingActionButton xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" (...) app:layout_anchor="@+id/view_pager" app:layout_anchorGravity="top|right|end" />
If you did not add + to "@+id/view_pager" , you will receive an error when creating the project:
Error:(9, 24) No resource found that matches the given name (at 'layout_anchor' with value '@id/view_pager').
I did it in a project with libraries.
AppiDevo Feb 13 '17 at 15:24 2017-02-13 15:24
source share