AnkushWalia / EasyAndroidDevelopment

Now no need of project start with beginning. Here some stuff of daily need of code so approx 30% project are completion prevently.
5 stars 3 forks source link
appupdater custom-image-crop custom-progressbar custom-snack-bar dimensions downloadservice googleapihandle imageutil livedata-databinding location-based-services mvvm-architecture network-broadcast permission-android picasso-caching retrofit2-rxjava2 room-persistence-library shared-preferences-util sociallogin uberlikemovemarker viewmodel-pattern

EasyAndroidDevelopment

Now no need of project start with beginning. Here some stuff of daily need of code so approx 30% project are completion prevently.


       ImageUtils.with(MainActivity.this, getString(R.string.app_name), new ImageUtils.ImageSelectCallback() {

                @Override
                public void onImageSelected(ArrayList<Image> imageData) {

                }
            }).onlyCamera(false)                               // by default false
                    .cropAspectRatio(600, 400)                 // by default image ratio
                    .doCrop(true)                              // by default true
                    .doImageCompress(true)                     // by default true
                    .onlyGallery(false)                        // by default false
                    .selectedImageSize(4)                      // by default select 1
                    .setToolbarColor(ContextCompat.getColor(MainActivity.this, R.color.colorPrimary))
                    .setBackgroundColor(ContextCompat.getColor(MainActivity.this, R.color.White))
                    .setProgressBarColor(ContextCompat.getColor(MainActivity.this, R.color.colorAccent))
                    .setStatusBarColor(ContextCompat.getColor(MainActivity.this, R.color.colorPrimaryDark))
                    .setToolbarIconColor(ContextCompat.getColor(MainActivity.this, R.color.colorPrimary))
                    .setToolbarTextColor(ContextCompat.getColor(MainActivity.this, R.color.White))
                    .show();

        }

             @Override
             public void onActivityResult(int requestCode, int resultCode, Intent data) {
              ImageUtils.onActivityResult(requestCode, resultCode, data);
             }

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
        compile 'com.github.AnkushWalia:EasyAndroidDevelopment:imagepickcrop-1.0.5'
}