Skip to content

Instantly share code, notes, and snippets.

💭
💻

Ubiratan Soares ubiratansoares

💭
💻
Block or report user

Report or block ubiratansoares

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ubiratansoares
ubiratansoares / toplevel-build-script.gradle
Created Dec 29, 2016
Increase javac maxErrors output for Gradle-based build
View toplevel-build-script.gradle
allprojects {
repositories {
jcenter()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "1000"
}
}
@ubiratansoares
ubiratansoares / FasterArrayAdapter.java
Created May 26, 2013
A simple idea for a less bloated (Array)Adapter implementation, using ViewHolder pattern.
View FasterArrayAdapter.java
public abstract class FasterArrayAdapter<T> extends ArrayAdapter<T> {
protected abstract Object getHolder();
protected abstract int layoutResourceForItem();
protected abstract void setupHolder(View convertView, Object tag);
protected abstract void fillHolder(Object tag, int position);
protected LayoutInflater mInflater;
public FasterArrayAdapter(Context context, List<T> objects) {
You can’t perform that action at this time.