Experimenting with the B4XPages example Menu Badges: https://www.b4x.com/android/forum/threads/b4x-b4xpages-menu-badges.133301/ How can I get the menu items closer together? This is my amended code sofar from that example: 'This event will be called once, before the page becomes visible...
Changing the action bar, status bar and navigation bar colors is done with resources set in the manifest editor. The following code is fully supported by Android 5+ devices but it will also work properly on Android 4 devices. The manifest code: SetApplicationAttribute(android:theme...
Using the hooks feature it is possible to change the Activity theme at runtime. The theme is set before the activity is actually shown. This means that in order to change the theme we need to destroy the activity and start it again. You can use StateManager to save the activity state. The...
This is an example that demonstrates how Root.Snapshot + 2 BitmapCreators, with the old and new layouts can be used to create a nice transition between two layouts. Private Sub SetNewTheme As ResumableSub If bc1.IsInitialized = False Then bc1.Initialize(Root.Width, Root.Height)...
Update: If you are using B4A v8.0+ then you should just add: CreateResourceFromFile(Macro, Themes.DarkTheme) 'or Themes.LightTheme Older versions: If you are not explicitly setting the theme in the manifest editor then it will change based on the device version and targetSdkVersion value...
Hi, Presently, in my B4XPages app I have the Action Bar with a 'Blue' background with 'White' foreground text and it is extremely well readable. Ps. note: I referred Erel's Post in this regard. https://www.b4x.com/android/forum/threads/theme-colors.87716/#content However, when I add a...