public abstract class ActivityStreamFragment
extends android.support.v4.app.Fragment
Modifier and Type | Field and Description |
---|---|
int |
actNumbers |
protected StandardArrayAdapter |
arrayAdapter |
protected int |
currentPosition |
protected android.view.View |
emptyStubView |
protected int |
firstIndex |
protected int |
fragment_empty_view_id
This fragment's empty view ID
|
protected int |
fragment_layout
This fragment's layout resource
|
protected int |
fragment_list_view_id
This fragment's ListView ID
|
protected boolean |
isLoadingMoreActivities |
protected SectionListView |
listview |
protected SocialLoadTask |
mLoadTask |
protected SectionListAdapter |
sectionAdapter |
Constructor and Description |
---|
ActivityStreamFragment() |
Modifier and Type | Method and Description |
---|---|
int |
getPosition() |
abstract SocialLoadTask |
getThisLoadTask()
Gets this fragment task to load proper activities.
|
abstract int |
getThisTabId()
Gets this fragment's tab ID.
|
abstract boolean |
isEmpty()
Returns whether the current stream's activity list is empty.
|
boolean |
isLoading() |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroy() |
void |
onDestroyView() |
void |
onLoadMore(int numberOfActivities,
int currentPos,
int firstVisible)
Load
numberOfActivities (default 100) more activities from the
end of the list. |
void |
onPrepareLoad(int actNums,
boolean isRefresh,
int position)
Interface for loading activities.
|
abstract void |
setActivityList(ArrayList<SocialActivityInfo> list)
Sets the current stream's activity list.
|
void |
setListAdapter(ArrayList<SocialActivityInfo> activityList)
Set the array adapter with the content of the given list.
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivityForResult, toString, unregisterForContextMenu
protected SectionListView listview
protected android.view.View emptyStubView
protected StandardArrayAdapter arrayAdapter
protected SectionListAdapter sectionAdapter
protected int firstIndex
protected SocialLoadTask mLoadTask
protected int currentPosition
public int actNumbers
protected boolean isLoadingMoreActivities
protected int fragment_layout
protected int fragment_empty_view_id
protected int fragment_list_view_id
public abstract boolean isEmpty()
public abstract void setActivityList(ArrayList<SocialActivityInfo> list)
list
- This stream's list of activities.public abstract int getThisTabId()
public abstract SocialLoadTask getThisLoadTask()
AllUpdatesFragment.AllUpdateLoadTask
,
MySpacesFragment.MySpacesLoadTask
,
MyStatusFragment.MyStatusLoadTask
,
MyConnectionsFragment.MyConnectionLoadTask
public void onDestroy()
onDestroy
in class android.support.v4.app.Fragment
public void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class android.support.v4.app.Fragment
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
in class android.support.v4.app.Fragment
public void onPrepareLoad(int actNums, boolean isRefresh, int position)
actNums
- The number of activities to load.isRefresh
- Whether the user is refreshing the stream manually.position
- The position of the 1st item of the list.public void onLoadMore(int numberOfActivities, int currentPos, int firstVisible)
numberOfActivities
(default 100) more activities from the
end of the list.numberOfActivities
- The number of activities to add to the current
list.currentPos
- The position of the 1st newly loaded activity.public boolean isLoading()
public int getPosition()
public void setListAdapter(ArrayList<SocialActivityInfo> activityList)
activityList
- The list of activities that the list adapter uses.public void onDestroyView()
onDestroyView
in class android.support.v4.app.Fragment
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.