Skip to content

Instantly share code, notes, and snippets.

View csobrinho's full-sized avatar

Carlos Sobrinho csobrinho

  • Roblox
  • Bay Area, CA
  • 16:26 (UTC -07:00)
  • LinkedIn in/sobry
View GitHub Profile
@JakeWharton
JakeWharton / BindingAdapter.java
Last active July 25, 2023 05:49
An adapter base class that uses a new/bind pattern for its views.
// Apache 2.0 licensed.
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
/** An implementation of {@link BaseAdapter} which uses the new/bind pattern for its views. */
public abstract class BindableAdapter<T> extends BaseAdapter {