Dynamic Utils

License Build Status Download

A collection of static methods to perform various operations including color, device, drawable, package and SDK on Android 2.3 (API 9) and above devices.

Since v0.4.0, it uses 26.x.x support libraries so, minimum SDK will be Android 4.0 (API 14).
Since v2.0.0, it uses AndroidX so, first migrate your project to AndroidX.


Contents


Installation

It can be installed by adding the following dependency to your build.gradle file:

dependencies {
    // For AndroidX enabled projects.
    implementation 'com.pranavpandey.android:dynamic-utils:3.2.1'

    // For legacy projects.
    implementation 'com.pranavpandey.android:dynamic-utils:1.3.0'
}

Usage

It is divided into different classes according to their category for easy understanding and usage. This library is fully commented so I am highlighting some of the functions below, keep exploring for more hidden features.

For complete reference, please read the documentation.

DynamicAnimUtils

Helper class to perform animation related operations.

DynamicBitmapUtils

Helper class to perform bitmap operations.

DynamicColorUtils

Helper class to change colors dynamically.

DynamicDeviceUtils

Helper class to detect device specific features like Telephony, etc.

DynamicDrawableUtils

Helper class to perform drawable operations.

DynamicLinkUtils

A collection of functions to perform various operations on the URL or to generate intents.

DynamicPackageUtils

Helper class to get package or app related information.

DynamicUnitUtils

Helper class to perform unit conversions.

DynamicSdkUtils

Helper class to detect the Android SDK version at runtime so that we can provide the user experience accordingly. Pass true in the alternate method to check for equality.

...

DynamicViewUtils

Helper class to perform view operations.

DynamicWindowUtils

Helper class to perform window operations and to detect system configurations at runtime.


Translations


Author

Pranav Pandey

GitHub Follow on Twitter Donate via PayPal


License

Copyright 2017-2020 Pranav Pandey

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.