Skip to content

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

Notifications You must be signed in to change notification settings

AnkushWalia/EasyAndroidDevelopment

Repository files navigation

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