public interface DataBindingOptions
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAddDefaultAdapters()
Whether to add the default data binding adapters.
|
java.lang.String |
getVersion()
The version of data binding to use.
|
boolean |
isEnabled()
Whether to enable data binding.
|
boolean |
isEnabledForTests()
Whether we want tests to be able to use data binding as well.
|
java.lang.String getVersion()
boolean isEnabled()
boolean getAddDefaultAdapters()
boolean isEnabledForTests()
Data Binding classes generated from the application can always be accessed in the test code but test itself cannot introduce new Data Binding layouts, bindables etc unless this flag is turned on.
This settings help with an issue in older devices where class verifier throws an exception when the application class is overwritten by the test class. It also makes it easier to run proguarded tests.