Package-level declarations
Types
Properties
View artificial attribute that sets compound bottom drawable
View artificial attribute that sets compound left drawable
View artificial attribute that sets compound right drawable
View artificial attribute that sets compound top drawable
Allows you to modify the elevation on a view without worrying about version.
get Activity On Which View is inflated to
Return true if navigation bar is at the bottom, false otherwise
Return true if navigation bar change its position when device rotates, false otherwise
Returns the default, clear background for selectable items without a border. Reacts when touched.
Returns the default, clear background for selectable items. Reacts when touched.
Return the status bar height. 0 otherwise
Functions
Sets color to status bar
Aligns in the center of the parent in relative layout
Aligns to right of the parent in relative layout
Aligns to left of the parent in relative layout
Sets bottom margin for views in Linear Layout
Sets bottom margin for views
Sets bottom margin for views in Relative Layout
Sets receiver's visibility to View.GONE if value is true; sets it to View.VISIBLE otherwise. Opposite of expandIf; also see hideIf.
Sets receiver's visibility to View.GONE if TextView.getText is null or empty; sets it to View.VISIBLE otherwise.
Function which updates the given rect with this view's position and bounds in its window.
AndroidX version of searchview gets the disabled icon hint
Sets right margin for views in Linear Layout
Sets right margin for views in Relative Layout
Request to be laid out fullscreen tell the system to lay out our app behind the system bars
get Activity On Which View is inflated to
Get views by tag for ViewGroup.
Gone if condition met
Sets receiver's visibility to View.INVISIBLE if value is true; sets it to View.VISIBLE otherwise. Opposite of showIf; also see collapseIf.
Sets receiver's visibility to View.INVISIBLE if TextView.getText is null or empty; sets it to View.VISIBLE otherwise.
Attaches a listener to the recyclerview to hide the fab when it is scrolling downwards The fab will reappear when scrolling has stopped or if the user scrolls up
Hides the soft input for the vindow.
Invisible if condition met
Invisible if condition met
Sets margins for views in Linear Layout
Pad this view with the insets provided by the device cutout (i.e. notch)
Adds a leading zero if only one digit
Declare a variable private var gestureDetector: ScaleGestureDetector? = null
Reads the file attributes safely
Sets margins for views in Relative Layout
Remove views by tag ViewGroup.
Call View.requestApplyInsets in a safe away. If we're attached it calls it straight-away. If not it sets an View.OnAttachStateChangeListener and waits to be attached before calling View.requestApplyInsets.
Animates the view to rotate, can be refactored for more abstraction if needed
Create a Screnshot of the view and returns it as a Bitmap
Gives focus to the passed view once the view has been completely inflated
Sets margins for views
Creates an on touch listener that only emits on a short single tap
Making notification bar transparent
Gives focus to the passed view once the view has been completely inflated using view.requestFocusFromTouch
Displays a popup by inflating menu with specified menu resource id, calling onClick when an item is clicked, and optionally calling onInit with PopupMenu as receiver to initialize prior to display.
Shows the soft input for the vindow.
Sets top margin for views in Linear Layout
Sets top margin for views
Sets top margin for views in Relative Layout
Convert this Drawable to Bitmap representation. Should take care of every Drawable type
Get a screenshot of the View, support a long screenshot of the entire RecyclerView list Note: When calling this method, please make sure the View has been measured. If the width and height are 0, an exception will be thrown.
INVISIBLE TO GONE AND OTHERWISE
INVISIBLE TO VISIBLE AND OTHERWISE
Sets top margin for views in Linear Layout
Sets top margin for views in Relative Layout
Visible if condition met else gone
Method to simplify the code needed to apply spans on a specific sub string.