List of usage examples for android.app ListFragment getArguments
final public Bundle getArguments()
From source file:pl.edu.agh.schedule.myschedule.MyScheduleActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { int dayIndex = fragment.getArguments().getInt(DAY_INDEX, 0); fragment.setListAdapter(mScheduleAdapters[dayIndex]); fragment.getListView().setRecyclerListener(mScheduleAdapters[dayIndex]); }
From source file:com.google.samples.apps.iosched.ui.BaseScheduleActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { fragment.getListView()// w w w .j a v a 2 s . c o m .addHeaderView(getLayoutInflater().inflate(R.layout.reserve_action_bar_space_header_view, null)); int dayIndex = fragment.getArguments().getInt(ARG_CONFERENCE_DAY_INDEX, 0); fragment.setListAdapter(mScheduleAdapters[dayIndex]); fragment.getListView().setRecyclerListener(mScheduleAdapters[dayIndex]); }
From source file:com.saarang.samples.apps.iosched.ui.MyScheduleActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { fragment.getListView().addHeaderView(getLayoutInflater() .inflate(com.saarang.samples.apps.iosched.R.layout.reserve_action_bar_space_header_view, null)); int dayIndex = fragment.getArguments().getInt(ARG_CONFERENCE_DAY_INDEX, 0); fragment.setListAdapter(mScheduleAdapters[dayIndex]); fragment.getListView().setRecyclerListener(mScheduleAdapters[dayIndex]); }
From source file:com.google.samples.apps.iosched.myschedule.MyScheduleActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { fragment.getListView()/*w w w . ja v a 2 s. co m*/ .addHeaderView(getLayoutInflater().inflate(R.layout.reserve_action_bar_space_header_view, null)); int dayIndex = fragment.getArguments().getInt(ARG_CONFERENCE_DAY_INDEX, 0); if (dayIndex < 0) { fragment.setListAdapter(mDayZeroAdapter); fragment.getListView().setRecyclerListener(mDayZeroAdapter); } else { fragment.setListAdapter(mScheduleAdapters[dayIndex]); fragment.getListView().setRecyclerListener(mScheduleAdapters[dayIndex]); } }