How do I access an instance variable inside a BindingAdapter when using Android Data Binding?
So I'm using this popular data binding code snippet to load in image into imageview of list items by passing in URL: <ImageView android:layout_width="match_parent" android:layout_height="150dp"" app:imageUrl="@{movie.imageUrl}" /> The Binding Adapter: class Movie{ boolean isLoaded; @BindingAdapter({"bind:imageUrl"}) public static void loadImage(final ImageView view, String imageUrl) { Picasso.with(view.getContext()) .load(imageUrl) .into(view, new Callback.EmptyCallback() { @Override public void onSuccess() { //set isLoaded to true for the listview item // but cannot access boolean isLoaded as