I have a snippet that uses the getArguments () method in onCreateView to get some input.
I use this snippet with ViewPager and it works great.
The problem starts when I try to reuse this fragment in another action, which shows only this fragment. I wanted to add a fragment to the activitie layout:
<fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment" android:name="com.example.ScheduleDayFragment" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Question: how to pass a package to the fragment declared in the layout?
android android-fragments
kmalmur Jan 28 '14 at 10:29 2014-01-28 10:29
source share