View gist:947fb57e0916d24a397d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+' | |
} | |
} |
View CamCompatListView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.support.v7.view.ActionMode; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.AbsListView; | |
import android.widget.ListView; | |
public class CamCompatListView extends ListView | |
{ | |
public CamCompatListView(Context context) |
View gist:5744791
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index = Action { | |
val output = Enumerator.outputStream | |
{ | |
o => | |
val out = new PrintWriter(new OutputStreamWriter(o, "utf8"), true) | |
for(i <- 1 to 5) | |
{ | |
out.println(s"Hello $i") | |
} | |
out.close() |