I'm happy to release B4A v5.80.
This update includes important new features, including better support for custom views:
Improvements:
This update includes important new features, including better support for custom views:
Improvements:
- Custom views: [B4X] Custom Views with Enhanced Designer Support
With this feature it is much easier to add and configure custom views.
- #ExcludeClasses: https://www.b4x.com/android/forum/threads/new-feature-three-birds-with-one-stone.63127/
This attribute makes it simple to exclude classes not required from libraries such as google play services. - CreateResource manifest editor keyword: https://www.b4x.com/android/forum/threads/new-feature-three-birds-with-one-stone.63127/#post-398974
Allows creating XML resource files from the manifest editor.
For example with this code we can use the native light theme based on the Android version:
B4X:SetApplicationAttribute(android:theme, "@style/LightTheme") CreateResource(values-v20, theme.xml, <resources> <style name="LightTheme" parent="@android:style/Theme.Material.Light"> </style> </resources> ) CreateResource(values-v14, theme.xml, <resources> <style name="LightTheme" parent="@android:style/Theme.Holo.Light"> </style> </resources> )
- Debugger improvements and fixes. Mostly related to larger projects.
- Coarse location permission added to BluetoothAdmin. Required for discovery in Android 6.
- The default setting of the holo theme in the manifest editor was removed.
It is recommended to use a custom theme or the device default theme.
The compiler will issue a warning about explicit usage of the holo.theme.
- The WYSIWYG designer defaults to material theme on Android 5+.
- The READ_LOGS permission was removed from LogCat object. It is not useful since Android 4.1.
- The compiler will issue a warning if the targetSdkVersion is missing or if the value is not between 14 to 22.
- ViewsEx library - Includes two views implemented as custom views (Switch and RatingBar). The source code of this library is available in the custom views tutorial.
- View.Parent - Returns the view's parent.
- OkHttp and OkHttpUtils2 libraries are included.
- Other minor IDE improvements and bug fixes.