Best way to a/b two different views in xml?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • JetBrains - Developer Ecosystem Survey 2022
  • SonarLint - Clean code begins in your IDE with SonarLint
  • material-components-android

    Modular and customizable Material Design UI components for Android

    You need a custom implementation for the AppCompatViewInflater. Take a look here for an example. If you are using material design, then extend the material design viewInflater, since you want to override only the imageview.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts