Skip to content
Various view-related utility functions, extension functions and delegates.
Kotlin Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
gradle/wrapper
viewhelper
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

ViewHelpers

Extension functions, utility functions and delegates for Views

CircleCI Download

Installation

implementation 'io.flatcircle:viewhelper:{version}'

Usage

Function Description Example
ViewHelperUtil.hideSoftKeyboard() Hides the software keyboard if it is up Example
ViewHelperUtil.showSoftKeyboard() Opens the software keyboard if it is down Example
ViewHelperUtil.getPxFromDp() Calculates pixels from dp input Example
ViewHelperUtil.getDpfromPx() Vice versa Example
ViewHelperUtil.showShareDialog() Opens a generic "share with" dialogue Example
ViewHelperUtil.showEmailDialog() Opens a send-email intent Example
ViewHelperUtil.showConfirmation() Shows a generic confirmation dialog Example
Activity.screenDensity Determines whether the phone is Low/High/XXXHigh screen density Example
Extension Description Example
view.show() Makes the View go GONE Example
view.hide() Makes the View go VISIBLE Example
You can’t perform that action at this time.