Skip to content

Instantly share code, notes, and snippets.

/**
* We are combining unit and intrumentation test reports
* if no one uses instrumentation then delete createDebugCoverageReport
* and it output outputs/code-coverage/connected/*coverage.ec
*/
/**
* Since jacoco does not support android out of the box we create a custom task per variant
* for test coverage.All the coverage reports are created in the root projects build directory.
* These are then archived in the pages folder which is then deployed on the project.
import android.support.v4.view.ViewPager;
import android.view.View;
public class FlipPageViewTransformer implements ViewPager.PageTransformer {
@Override
public void transformPage(View page, float position) {
float percentage = 1 - Math.abs(position);
page.setCameraDistance(12000);
setVisibility(page, position);
setTranslation(page);

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@notsatyarth
notsatyarth / MainActivity.java
Created March 7, 2015 17:13
Circular Reveal issue 18
//the relevant code
private void showDialog() {
final View dialogView = View.inflate(MainActivity.this, R.layout.image_selector_dialog, null);
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
builder.setView(dialogView)
.setCancelable(false);
cameraDialog = builder.create();