GalleryFragment

class GalleryFragment : RotationFragment

RotationFragment displaying all old match results saved in the external app directory as a grid.

Constructors

GalleryFragment
Link copied to clipboard
fun GalleryFragment()

Functions

clearGarbage
Link copied to clipboard
open override fun clearGarbage()

Set all listeners, ViewModels and shared references to null.

initAdapter
Link copied to clipboard
private fun initAdapter()
initViews
Link copied to clipboard
private fun initViews()

Initializes all views and the adapter.

onViewCreated
Link copied to clipboard
open override fun onViewCreated(view: View, savedInstanceState: Bundle?)

Initializes the fragment.

removeThisFragment
Link copied to clipboard
open override fun removeThisFragment(removeBackground: Boolean)

Removes this fragment.

removeThisFragmentForRotation
Link copied to clipboard
open override fun removeThisFragmentForRotation(): ArrayList<File?>?

Removes this fragment to rotate it.

Properties

adapter
Link copied to clipboard
private var adapter: GridBaseAdapter? = null

The adapter to fill the grid view

galleryViewModel
Link copied to clipboard
private var galleryViewModel: GalleryViewModel? = null
mBackButton
Link copied to clipboard
private var mBackButton: ImageButton? = null

The back button to close the fragment

mFragmentBackground
Link copied to clipboard
private var mFragmentBackground: FrameLayout? = null

The dark background behind the fragment

mGridView
Link copied to clipboard
private var mGridView: GridView? = null

The grid view to display the old match results