Android helpers collection that used for my projects.
Add JitPack repository to root build.gradle
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Add the dependency
dependencies {
implementation 'com.github.danimahardhika.android-helpers:core:$versionNumber'
implementation 'com.github.danimahardhika.android-helpers:animation:$versionNumber'
implementation 'com.github.danimahardhika.android-helpers:license:$versionNumber'
implementation 'com.github.danimahardhika.android-helpers:permission:$versionNumber'
}
Or use a snapshot
dependencies {
implementation('com.github.danimahardhika.android-helpers:core:-SNAPSHOT') {
changing = true
}
implementation('com.github.danimahardhika.android-helpers:animation:-SNAPSHOT') {
changing = true
}
implementation('com.github.danimahardhika.android-helpers:license:-SNAPSHOT') {
changing = true
}
implementation('com.github.danimahardhika.android-helpers:permission:-SNAPSHOT') {
changing = true
}
}
Every method can be accessed in static way
- BitmapHelper
- ColorHelper
- ContextHelper
- DrawableHelper
- FileHelper
- ListHelper
- SoftKeyboardHelper
- TimeHelper
- UnitHelper
- ViewHelper
- WindowHelper
Every method can be accessed in static way
- AnimationHelper
AnimationHelper.fade(view)
.interpolator(new LinearOutSlowInInterpolator())
.duration(500)
.callback(new AnimationHelper.Callback() {
@Override
public void onAnimationStart() {
//Do something
}
@Override
public void onAnimationEnd() {
//Do something
}
})
.start();
- LicenseHelper
LicenseHelper helper = new LicenseHelper(context);
helper.run(licenseKey, salt, callback);
Don't forget to destroy license helper inside onDestroy()
method
@Override
protected void onDestroy() {
helper.destroy();
super.onDestroy();
}
You can see LicenseCallback sample from here.
Every method can be accessed in static way
- PermissionHelper
Copyright (c) 2017 Dani Mahardhika
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.