Loading images with data binding and Picasso

Are you trying the new Android data binding library, and you don’t know how to load images into ImageViews? Here are two examples of how to get those images showing!

Option 1

Using @BindingAdapter

Option 2

ObservableField & custom Picasso Target

Android developer @monzo. http://ivanc.uk

The (retired) Pub(lication) for Android & Tech, focused on Development