Default value in Data Binding
suggest changeThe Preview pane displays default values for data binding expressions if provided.
For example :
android:layout_height="@{@dimen/main_layout_height, default=wrap_content}"
The layout preview uses wrap_content. The running app uses @dimen/main_layout_height.
Another example is
android:text="@{user.name, default=`Preview Text`}"
The layout preview shows Preview Text. On a device, the bound user.name is shown.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents