MobileUI/
From 0.3 to 0.4
Migration guide from MobileUI 0.3 to 0.4
Simpler initialization on Android
It is now a bit simpler to initialize MobileUI on Android. We have removed one parameter. In your Application class, please remove the boolean parameter and shorten the initialization to MobileUIAndroid.init(this) as shown below.
Application.java
public class MyApplication extends android.app.Application {
@Override
public void onCreate() {
super.onCreate();
MobileUIAndroid.init(this); }
}Material Theme for Android
MobileUI Buttons and CardViews on Android are now backed by the official material library. The latter requires the app to use an Material Components theme. This requirement can easily be fulfilled:
Open the file app-android/src/main/res/values/styles.xml and change the parent attribute of the style element to Theme.MaterialComponents.Light or one of the other supported themes as shown below.
app-android/src/main/res/values/styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.Light"> <!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resource>