allprojects {
repositories { ... maven { url 'https://jitpack.io' } }}
dependencies {
implementation 'com.github.applogistdev:ALExtensions-android:lastVersion'}
function | description |
---|---|
startActivityModal | Open a new activity from bottom with animation |
startActivityModalWithResult | Open a new activity from bottom with animation |
startActivityFromRight | Open a new activity from right with animation |
startActivityFromRightWithResult | Open a new activity from right with animation |
slideOutRight | Close activity with animation |
slideOutModal | Close activity with reverse modal animaton |
reloadActivity | Reload activity instantly without animaton |
share | Open a share intent for given type parameters |
showAlertDialog | DSL for showing Alert Dialog |
function | description |
---|---|
rotateBitmap | Rotate bitmap |
getBytes | Return bytes of bitmap |
convertBase64 | Convert Bitmap to Base64 String |
function | description |
---|---|
formatDate | Format string with given coming and sending date format or date format patterns |
convertDateToCalendar | Convert date string to calendar object with given date format or date format pattern |
convertToMillis | Convert date string to millis with given date format or date format pattern |
convertDateString | Convert millis to date string with given date format or date format pattern |
toDate | Convert string to date object |
function | description |
---|---|
getOrientation | Get orientation of image file |
function | description |
---|---|
formatTwoDigit | Show double only with two digit |
dp | Convert px to dp |
px | Convert dp to px |
trimAll | Remove all spaces in the string |
removeNonNumeric | Remove all non numeric characters in the string |
convertToNonTurkish | Convert turkish text to non turkish |
format | Format double with given pattern and separators |
currencyFormat | Convert to currency format |
function | description |
---|---|
openYandexNavi | Open yandex navigation app |
openYandexMaps | Open yandex map |
openGoogleMaps | Open google maps |
openMapAppsChooser | Open map app choser intent |
function | description |
---|---|
isAppInstalled | Use package name to find is app installed |
openGooglePlayStore | Open Google Play Market, parameter tryWithWebView if fail open with browser |
function | description |
---|---|
openPhoneDialer | Open default dialer with phone number |
function | description |
---|---|
openFacebookPage | Open facebook page with Facebook Page Id |
openInstagram | Open Instagrem with User Id |
openYoutube | Open Youtube with Channel Id |
openTwitter | Open Twitter with User Id |
function | description |
---|---|
setGone | Set view status to gone |
setVisible | Set view status to visible |
setInvisible | Set view status to invisible |
setOnSingleClickListener | Prevents double view click action |
setHtmlText | Set HTML text to TextView |
setTextColorRes | Change text color of TextView |
setMargin | Change margins of the view |
function | description |
---|---|
isTurkishMobileNumber | Check phone number is valid Turkish mobile phone number |
function | description |
---|---|
isTimePassed | Check time difference between current time and given time |
getMarketUrl | Get 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