RotationFragment

abstract class RotationFragment : Fragment, GarbageView

An abstract class, inherited by fragments that need to be rotated without an extra layout.

Constructors

RotationFragment
Link copied to clipboard
fun RotationFragment()

Functions

clearGarbage
Link copied to clipboard
open override fun clearGarbage()

Set all listeners, ViewModels and shared references to null.

onCreateView
Link copied to clipboard
open override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

Initializes the fragment.

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

Remove this fragment from the container to close it.

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

Removes this fragment from the container to be able to rotate it.

rotateView
Link copied to clipboard
private fun rotateView(rotationDeg: Int, v: View): View

Rotates a view v by rotationDeg degrees and returns it.

Properties

ca
Link copied to clipboard
var ca: CameraActivity? = null

The activity that contains this fragment. TODO: Remove CameraActivity cast to make this class usable for all activities

containerView
Link copied to clipboard
var containerView: FrameLayout? = null

The container of the fragment

mView
Link copied to clipboard
private var mView: View? = null

The view of the fragment

rotation
Link copied to clipboard
var rotation: Int = 0

The rotation of the fragment

subclassName
Link copied to clipboard
private lateinit var subclassName: String

The class name of the fragment extending this class

Inheritors

GalleryFragment
Link copied to clipboard
GalleryPreviewFragment
Link copied to clipboard
SelectDeviceFragment
Link copied to clipboard