Skip to content

Repository files navigation

Extensions

Installation

allprojects { repositories { ... maven { url 'https://jitpack.io' } }} dependencies { implementation 'com.github.applogistdev:ALExtensions-android:lastVersion'} 

Extensions

functiondescription
startActivityModalOpen a new activity from bottom with animation
startActivityModalWithResultOpen a new activity from bottom with animation
startActivityFromRightOpen a new activity from right with animation
startActivityFromRightWithResultOpen a new activity from right with animation
slideOutRightClose activity with animation
slideOutModalClose activity with reverse modal animaton
reloadActivityReload activity instantly without animaton
shareOpen a share intent for given type parameters
showAlertDialogDSL for showing Alert Dialog
functiondescription
rotateBitmapRotate bitmap
getBytesReturn bytes of bitmap
convertBase64Convert Bitmap to Base64 String
functiondescription
formatDateFormat string with given coming and sending date format or date format patterns
convertDateToCalendarConvert date string to calendar object with given date format or date format pattern
convertToMillisConvert date string to millis with given date format or date format pattern
convertDateStringConvert millis to date string with given date format or date format pattern
toDateConvert string to date object
functiondescription
getOrientationGet orientation of image file
functiondescription
formatTwoDigitShow double only with two digit
dpConvert px to dp
pxConvert dp to px
trimAllRemove all spaces in the string
removeNonNumericRemove all non numeric characters in the string
convertToNonTurkishConvert turkish text to non turkish
formatFormat double with given pattern and separators
currencyFormatConvert to currency format
functiondescription
openYandexNaviOpen yandex navigation app
openYandexMapsOpen yandex map
openGoogleMapsOpen google maps
openMapAppsChooserOpen map app choser intent
functiondescription
isAppInstalledUse package name to find is app installed
openGooglePlayStoreOpen Google Play Market, parameter tryWithWebView if fail open with browser
functiondescription
openPhoneDialerOpen default dialer with phone number
functiondescription
openFacebookPageOpen facebook page with Facebook Page Id
openInstagramOpen Instagrem with User Id
openYoutubeOpen Youtube with Channel Id
openTwitterOpen Twitter with User Id
functiondescription
setGoneSet view status to gone
setVisibleSet view status to visible
setInvisibleSet view status to invisible
setOnSingleClickListenerPrevents double view click action
setHtmlTextSet HTML text to TextView
setTextColorResChange text color of TextView
setMarginChange margins of the view
functiondescription
isTurkishMobileNumberCheck phone number is valid Turkish mobile phone number

Helpers

functiondescription
isTimePassedCheck time difference between current time and given time
getMarketUrlGet Google Play Market URL

Notify only observer once

A generic class that holds a value with its loading status.

Helper class for detecting snap position changes

About

Useful extensions for android

Resources

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages