fragment Binary XML file line Must specify unique android:id, android:tag, or have a parent with an id for

FrameLayou, fragment have to unique id android:id=”@+id/your_id_unique”

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
 
    <fragment
        android:id="@+id/your_id_unique"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="cz.okhelp.notepad.AddNoteFragment"
        tools:layout="@layout/add_note" />
 
</FrameLayout>
This entry was posted in Android Studio, Bugs, warnings, errors and tagged , , . Bookmark the permalink.


Comments are closed.

1,262 views