I am trying the code from the answer of this question: dynamically add and remove view to viewpager
I copied the code but inflater at the following line can't be resolved.
FrameLayout v0 = (FrameLayout) inflater.inflate (R.layout.fragment_schema, null);
This is my xml:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>