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"></item>
When this is installed, widgets that are defined in layout files are automatically replaced by their GDAppCompat equivalents. For more information, see the API documentation.