MobileUI LogoMobileUI

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.
public class MyApplication extends {
    public void 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.

     <!-- 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>