I've got a fragment that uses getArguments() method in onCreateView, to get some input data.
I'm using this fragment with ViewPager and it works fine.
The problem starts when I try to reuse this fragment in a different activity, that shows this fragment only. I wanted to add the fragment to the activitie's 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" />
The question is: how to pass a Bundle to a fragment declared in layout?