public class FavSquaresFragment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RecyclerSquareAdapter |
adapterFavs |
private TextView |
favEmptyText |
private static FavSquaresFragment |
instance |
private BroadcastReceiver |
mMessageReceiver
Receives a notification whenever a square is deleted and updates the view if needed
|
private android.support.v7.widget.RecyclerView |
recyclerListFavs |
private static java.lang.String |
TAG |
private android.support.v7.widget.Toolbar |
toolbar |
Constructor and Description |
---|
FavSquaresFragment() |
Modifier and Type | Method and Description |
---|---|
private void |
listShowHide() |
static FavSquaresFragment |
newInstance() |
void |
onCreate(Bundle savedInstanceState) |
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState)
Create and initializes the main view
|
void |
onDetach() |
void |
onFavChanged() |
void |
onOwnedChanged() |
void |
onRecentChanged() |
void |
onResume() |
void |
onStart() |
private void |
setupToolbar(View v)
Sets up the toolbar with the profile image of the user and infos about the view
|
private static FavSquaresFragment instance
private static final java.lang.String TAG
private android.support.v7.widget.RecyclerView recyclerListFavs
private RecyclerSquareAdapter adapterFavs
private android.support.v7.widget.Toolbar toolbar
private TextView favEmptyText
private BroadcastReceiver mMessageReceiver
public static FavSquaresFragment newInstance()
public void onCreate(Bundle savedInstanceState)
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
inflater
- container
- savedInstanceState
- private void setupToolbar(View v)
public void onStart()
public void onResume()
private void listShowHide()
public void onDetach()
public void onOwnedChanged()
public void onFavChanged()
public void onRecentChanged()