Git Product home page Git Product logo

android-helpers's Introduction

Android Helpers

License

Android helpers collection that used for my projects.

Gradle Dependency

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
    }
}

Core

Every method can be accessed in static way

  • BitmapHelper
  • ColorHelper
  • ContextHelper
  • DrawableHelper
  • FileHelper
  • ListHelper
  • SoftKeyboardHelper
  • TimeHelper
  • UnitHelper
  • ViewHelper
  • WindowHelper

Animation

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();

License Checker

  • 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.

Permission

Every method can be accessed in static way

  • PermissionHelper

License

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.

android-helpers's People

Contributors

danimahardhika avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

android-helpers's Issues

Provide Documentation

Hi,

It would be nice to have proper JavaDoc information for each method (which is exposed to the public API).

Reading a JavaDoc header when using the library is much more convenient instead of digging through all the code to see what a method actually does.

Regards

I'm using this animation in tablayout but it is to fast why?

i have copied code from your IconBaseFragment class and used the same code for my tablayout but there is huge difference between both animations. Animation on your IconBaseFragment is very smooth and elegant but on my side it is not smooth and it is rapid also completed with in nano seconds.

AnimationHelper.slideDownIn(mTabLayout)
                .interpolator(new LinearOutSlowInInterpolator())
                .callback(new AnimationHelper.Callback() {
                    @Override
                    public void onAnimationStart() {

                    }

                    @Override
                    public void onAnimationEnd() {


                    }
                })
                .start();

this is what i'm using i have used duration method but it is for wait how can i slow down the speed of animation?

Could not found LogUtil class?

I'm trying to use this library but unable to found LogUtil class.
i have this line present in my build.gradle file

implementation('com.github.danimahardhika.android-helpers:core:-SNAPSHOT') {
       changing = true
   }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.