public abstract class BaseColumnFeedFragment
extends BaseFragment
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Recyclable> |
weakRecyclableItemsForRelease |
Constructor and Description |
---|
BaseColumnFeedFragment() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyItemPaddingDecoration() |
protected void |
changeFeed(FeedIdentifier newIdentifier) |
protected RecyclerView.Adapter |
customizeAdapter(GfycatDataAdapter adapter) |
protected BIContext |
getBIContext() |
protected CellController |
getCellController() |
protected abstract int |
getColumnCount()
Count of columns to display gfycats.
|
protected float |
getCornerRadius() |
protected int |
getOffset()
If after adapter customization, Gfycats started not from first index.
|
protected int |
getOrientation() |
RecyclerView |
getRecyclerView() |
FeedIdentifier |
getTargetIdentifier() |
protected abstract void |
onClick(FeedIdentifier identifier,
Gfycat gfycat,
int positionInFeed) |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
protected void |
onCustomizeRecycler(RecyclerView recyclerView) |
void |
onDestroyView() |
void |
onSaveInstanceState(android.os.Bundle outState) |
void |
onStart() |
void |
onStop() |
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
static android.os.Bundle |
prepareArguments(android.os.Bundle bundle,
FeedIdentifier feedIdentifier) |
static android.os.Bundle |
prepareArguments(FeedIdentifier feedIdentifier) |
protected void |
reloadIfNeeded() |
void |
setDataLoadProgressListener(DataLoadProgressListener dataLoadProgressListener) |
protected void |
setFeedForceReloadingNeeded(boolean feedForceReloadingNeeded) |
protected void |
setFeedReloadingNeeded(boolean feedReloadingNeeded) |
void |
setPlaybackEnabled(boolean enabled) |
protected final java.util.Set<Recyclable> weakRecyclableItemsForRelease
public static android.os.Bundle prepareArguments(android.os.Bundle bundle, FeedIdentifier feedIdentifier)
public static android.os.Bundle prepareArguments(FeedIdentifier feedIdentifier)
protected abstract int getColumnCount()
protected int getOffset()
protected abstract void onClick(FeedIdentifier identifier, Gfycat gfycat, int positionInFeed)
gfycat
- - user has clicked on.protected BIContext getBIContext()
protected int getOrientation()
OrientationHelper#VERTICAL
or OrientationHelper#HORIZONTAL
protected void onCustomizeRecycler(RecyclerView recyclerView)
recyclerView
- that is used to display items.protected RecyclerView.Adapter customizeAdapter(GfycatDataAdapter adapter)
adapter
- with gfycat items.public void setPlaybackEnabled(boolean enabled)
enabled
- true if gfycats should autoplay.protected void setFeedReloadingNeeded(boolean feedReloadingNeeded)
protected void setFeedForceReloadingNeeded(boolean feedForceReloadingNeeded)
public void setDataLoadProgressListener(DataLoadProgressListener dataLoadProgressListener)
public void onCreate(android.os.Bundle savedInstanceState)
protected float getCornerRadius()
protected void changeFeed(FeedIdentifier newIdentifier)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
public void onStart()
public void onStop()
protected void reloadIfNeeded()
public void onSaveInstanceState(android.os.Bundle outState)
public void onDestroyView()
public RecyclerView getRecyclerView()
public FeedIdentifier getTargetIdentifier()
protected void applyItemPaddingDecoration()
protected CellController getCellController()