I want two image view on one activity view, One image for profile picture and other for profile cover page.
My code
setupImage.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { bringImagePicker(); } }); private void bringImagePicker() { // start picker to get image for cropping and then use the image in cropping activity CropImage.activity() .setGuidelines(CropImageView.Guidelines.ON) .setAspectRatio(1,1) .start(SetupActivity.this); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) { CropImage.ActivityResult result = CropImage.getActivityResult(data); if (resultCode == RESULT_OK) { mainImageURI = result.getUri(); setupImage.setImageURI(mainImageURI); isChanged = true; } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) { Exception error = result.getError(); } } }
Now how can I add for profile cover image??