I have the following layout file:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent"> <TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/what_did_you_eat"/> <FrameLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="wrap_content" tools:context=".AddFoodActivity" tools:ignore="MergeRootFrame" /> </LinearLayout>
FrameLayout will contain the dynamically added fragment , is there a way to preview in the fragment editor? How can we do this when using the <fragment> tag with the tools:layout attribute?
source share