diff options
Diffstat (limited to 'core/README.md')
-rw-r--r-- | core/README.md | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/core/README.md b/core/README.md index 42d82c5..db602b6 100644 --- a/core/README.md +++ b/core/README.md @@ -116,56 +116,5 @@ Include your email and subject, along with other optional configurations such as > "[Extensions](https://kotlinlang.org/docs/reference/extensions.html) provide the ability to extend a class with new functionality without having to inherit from the class" Note that since KAU depends on [ANKO](https://github.com/Kotlin/anko), all of the extensions in its core package is also in KAU. -### AnimUtils - -> Extends View -* Fade In/Fade Out/Circle Reveal with callbacks -* Switch texts in a TextView with a fade transition - -### ColorUtils - -> Extends Int -* Check if color is dark or light -* Check if color is visible against another color -* Convert color to HSV (float[]) or hex (String) -* Get the disabled color of a theme -* Adjust alpha - -> Extends String -* Parses color; adds onto the original parser by supporting #AAA values - -> Extends View -* Various tinting for different views; taken from [MDTintHelper](https://github.com/afollestad/material-dialogs/blob/master/core/src/main/java/com/afollestad/materialdialogs/internal/MDTintHelper.java) - -### ContextUtils - -> Extends Activity -* Restart an activity - -> Extends Context -* Start Activity using the class, with optional intents and stack clearing -* Create a toast directly -* Get resource values through `.color(id)`, `.dimen(id)`, `.drawable(id)`, `.integer(id)`, `.string(id)` -* Get attribute values through resolve methods -* Show a Changelog by parsing an xml resource -* Check if network is available - -### IIconUtils - -> Extends [IIcon](https://github.com/mikepenz/Android-Iconics) -* `toDrawable` method that only requires a context; defaults to a white icon of size 24dp and uses a ColorStateList to allow for dimming - -### Utils [Misc] - -> Extends Int -* dpToPx & pxToDp conversions -* Check sdk version -* Check if app is installed - -### ViewUtils - -> Extends View -* `visible()`, `invisible()`, `gone()`, `isVisible`, `isInvisible()`, `isGone()` methods -* matchParent method to set the layout params to match_parent -* Create snackbar directly -* Set IIcon into ImageView directly +KAU's vast collection of extensions is one of its strongest features. +There are too many to explain here, but you may check out the [utils package](https://github.com/AllanWang/KAU/tree/master/core/src/main/kotlin/ca/allanwang/kau/utils)
\ No newline at end of file |