public abstract class BaseFragment
extends android.support.v4.app.Fragment
Modifier and Type | Class and Description |
---|---|
static interface |
BaseFragment.FragmentCallback |
Modifier and Type | Field and Description |
---|---|
protected rx.subscriptions.CompositeSubscription |
compositeSubscription |
protected android.content.Context |
context |
protected BaseFragment.FragmentCallback |
fragmentCallback |
protected android.view.View |
frmRootView |
java.lang.String |
TAG |
Constructor and Description |
---|
BaseFragment() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleException(java.lang.Throwable throwable) |
void |
onAttach(android.content.Context context) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroyView() |
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
setFragmentCallback(BaseFragment.FragmentCallback fragmentCallback) |
protected abstract int |
setLayoutResourceId() |
protected abstract java.lang.String |
setTag() |
protected void |
showDialogError(java.lang.String errMsg) |
protected void |
showDialogMsg(java.lang.String msg) |
protected void |
subscribe(rx.Observable observable,
rx.Subscriber subscriber) |
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
protected android.content.Context context
protected rx.subscriptions.CompositeSubscription compositeSubscription
public java.lang.String TAG
protected android.view.View frmRootView
protected BaseFragment.FragmentCallback fragmentCallback
protected abstract java.lang.String setTag()
public void onViewCreated(@NonNull android.view.View view, @Nullable android.os.Bundle savedInstanceState)
onViewCreated
in class android.support.v4.app.Fragment
@Nullable public android.view.View onCreateView(@NonNull android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, @Nullable android.os.Bundle savedInstanceState)
onCreateView
in class android.support.v4.app.Fragment
protected abstract int setLayoutResourceId()
public void onDestroyView()
onDestroyView
in class android.support.v4.app.Fragment
protected void subscribe(rx.Observable observable, rx.Subscriber subscriber)
public void onAttach(android.content.Context context)
onAttach
in class android.support.v4.app.Fragment
protected void handleException(java.lang.Throwable throwable)
protected void showDialogError(java.lang.String errMsg)
protected void showDialogMsg(java.lang.String msg)
public void setFragmentCallback(BaseFragment.FragmentCallback fragmentCallback)