Concurrency



https://unsplash.com/photos/Wpn9NX84SeI


https://unsplash.com/photos/hklRkhJyo5I
  • 3D in Android
  • Depth
  • Z value, elevation and Translation Z
  • Light
  • Button state (Pressed and Resting)
  • Outline
  • Custom Outline with ViewOutlineProvider

What is 3D?



TLDR;

DaggerAppCompatActivity and DaggerFragment


1 — Operator Overloading in Kotlin

val disposables = CompositeDisposable()
val observable1 = your_observable
disposables.add(observable1)


1 — @BindingAdapter and Kotlin

public class BindingTextUtils {

@BindingAdapter({"imageUrl"})
public static void loadImage(ImageView v, String url) {
Picasso.with(view.getContext()).load(url).into(view)
}
}
class BindingAdapterUtils {

companion object {

@BindingAdapter(value = "imageUrl")
fun load(view: ImageView, url: String) = Picasso.with(view.context).load(url).into(view)
}
}


1 — Mutate your drawable!

val drawable = ContextCompat.getDrawable(context, R.drawable.icon)
drawable.setColorFilter(Color.WHITE)

Mert SIMSEK

Software Engineer at Storytel

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store