SelectionFragment

public class SelectionFragment extends Fragment

Swipe selection fragment. Where you can choose if you like someone o not.

Methods

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle)

Called to have the fragment instantiate its user interface view.

Parameters:
  • inflater – The LayoutInflater object that can be used to inflate any views in the fragment,
  • container – If non-null, this is the parent view that the fragment’s UI should be attached to. The fragment should not add the view itself, but this can be used to generate the LayoutParams of the view.
  • bundle – If non-null, this fragment is being re-constructed from a previous saved state as given here.
Returns:

Return the View for the fragment’s UI, or null.

onStart

public void onStart()

Called when the Fragment is visible to the user. This is generally tied to Activity.onStart of the containing Activity’s lifecycle.

onStop

public void onStop()

Called when the Fragment is no longer started. This is generally tied to Activity.onStop of the containing Activity’s lifecycle.