Skip Navigation

Automatic widget substitution in AppCompat apps

Apps that use AppCompatActivity with a theme derived from AppCompat can use the following to install the provided GDAppCompatViewInflater in their theme:
<item name="viewInflaterClass">com.good.gd.app.GDAppCompatViewInflater</item>
When this is installed, widgets that are defined in layout files are automatically replaced by their GDAppCompat equivalents. For more information, see the com.good.gd.widget API documentation.