List of usage examples for android.app ListFragment getListView
public ListView getListView()
From source file:ca.zadrox.dota2esportticker.ui.MatchActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { if (fragment.getUserVisibleHint()) { mCurrentListView = fragment.getListView(); enableActionBarAutoHide(mCurrentListView); }//from ww w .j a va 2 s.c o m }
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.ui.BaseScheduleActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { fragment.getListView() .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: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.myschedule.MyScheduleActivity.java
@Override public void onFragmentViewCreated(ListFragment fragment) { fragment.getListView() .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 {//from w w w. j a va 2 s. co m fragment.setListAdapter(mScheduleAdapters[dayIndex]); fragment.getListView().setRecyclerListener(mScheduleAdapters[dayIndex]); } }