Package-level declarations
Types
usage image.setOnTouchListener(object : OnSwipeTouchListener(this@MainActivity) {
Properties
Default Snackbar duration. Set to Snackbar.LENGTH_LONG.
Functions
Accepts 3 text watcher methods with a default empty implementation.
Converts a Bitmap to a Drawable
Sets a color filter on a MenuItem
Uses compatibility library to create a tinted a drawable. Supports all important versions of Android.
DeleteLine for a TextView.
Hides keyboard for this edit text with delay
Measuring TextView height. Use this extension after view rendered
Measuring TextView width. Use this extension after view rendered
Sets CompoundButton.OnCheckedChangeListener and calls specified function block if this button state changed to checked
Sets CompoundButton.OnCheckedChangeListener and calls specified function block after checked state changed
Listens for either the enter key to be pressed or the soft keyboard's editor action to activate.
Callback executed when a spinner item is selected
Sets CompoundButton.OnCheckedChangeListener and calls specified function block if this button state changed to unchecked
Sets OnFocusChangeListener and calls specified function block if this view become unfocused
Sets EditText text from Clipboard
Refocus an edit text when the focus is lost
Extension method to replace all text inside an Editable with the specified newValue while ignoring any android.text.InputFilter set on the Editable.
Resets the cursor drawable to the default.
Sets given content to TextView or hides it.
Set different color for substring TextView.
Sets the cursor color of the edit text.
Set a drawable to the bottom of a TextView.
Set a drawable to the left of a TextView.
Set a drawable to the right of a TextView.
Set a drawable to the top of a TextView.
Sets an ArrayList of objects with an additional (but optional and which defaults to object.toString()
) string conversion method for the same.
Set TextView from Html
Setting new text to TextView with something like fade to alpha animation
Setting new text to TextView with something like width transition animation
Usage setTitleColor(getCompatColor(R.color.colorPrimary))
Loads current device wallpaper to an Imageview
Shows keyboard for this edit text with delay
Set the text for an EditText if the EditText doesn't already have focus
Change the background color of the text specified in a paragraph of text
Change the text to bold italic
Change the text to bold
Add color and click event to the text of the specified range in the text
Change the foreground color of the text specified in a paragraph of text
Converts this Bitmap to a Drawable
Change the text to italic
Change the text to normal text
Change the size of the text in the specified range of text
Add a strike through to the text of the specified range in the text
Set the span to a styled one from Typeface
Refocus an edit text when the focus is lost
Refocus an edit text when the focus is lost