B4A Code Snippet Theme Colors - Erel    Jan 8, 2026   (21 reactions)   tags: Themes, B4A Theme, color, status navigation color, Theme, ActionBar, code:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values.../color>
</resources>
)
CreateResource(values, theme.xml,
<resources>
<style name... B4A Code Snippet [B4X] Share your B4XDialog + templates theming code - Erel    Jun 1, 2021   (8 reactions) Have you created a nice dialog based on B4XDialog?
Post it here.
If you have any question then sta... B4A Code Snippet [B4X] Light theme B4XDateTemplate - Erel    Sep 13, 2021   (15 reactions) Many more options: https://www.b4x.com/android/forum/threads/b4x-share-your-b4xdialog-templates-theming-code.131243
https://www.b4x.com/basic4android/images/i_view64_QAmn2SVit7.png
Example of customizing B4XDialog and B4XDateTemplate.
Sub SetLightTheme
Dialog.TitleBarColor = 0xFFFF7505... B4A Code Snippet Full Screen Theme - Erel    Jun 7, 2018   (14 reactions)   tags: Themes .
You can use this theme to prevent it from appearing:
SetApplicationAttribute(android:theme, "@style/DarkTheme")
CreateResource(values-v20, theme.xml,
<resources>
<style
name="DarkTheme" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
</style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>... B4A Code Snippet [B4X] Animated change of theme / layouts - Erel    Aug 9, 2021   (21 reactions) SetNewTheme As ResumableSub
If bc1.IsInitialized = False Then
bc1.Initialize(Root.Width, Root... 'already in progress...
bc1.CopyPixelsFromBitmap(Root.Snapshot)
UpdateTheme
bc2... B4A Code Snippet Version safe themes - Erel    Mar 12, 2018   (11 reactions)   tags: themes, safe, Version 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... B4A Code Snippet targetSdkVersion 35 and opting out of edge-to-edge enforcement - Erel    Jul 10, 2025   (29 reactions) Starting from B4A v13.4, the default themes (Themes.LightTheme / Themes.DarkTheme) already include the snippet that opts out of edge-edge. You only need this if you use a customize theme... platforms\android-35.
3. Add to manifest editor:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
<style
name... B4A Code Snippet Light Theme for B4XDialogs - arfprogramas    Mar 5, 2021   (11 reactions) First you have to use the code below to set your dialog variable to Light Theme:
Sub SetLightThemeDialog(dialog As B4XDialog)
dialog.BackgroundColor = Colors.White
dialog.ButtonsColor... B4A Code Snippet theme colors for Material design - Dave O    Jun 26, 2016   (8 reactions) with custom color themes for a Material design app (Android 5+), and have found (by searching... colors for certain Android UI UI elements.
Below is the content of a sample theme.xml file... B4A Code Snippet ThemeColors - Blueforcer    Feb 22, 2022   (15 reactions) This codemodule provide colorpalettes from 22 different themes:
Oceanic
Darker
Lighter
Palenight...
OneLight
SolarizedDark
SolarizedLight
NightOwl
LightOwl
Moonlight
Synthwave84
Set the theme with
ThemeColors.setTheme("Forest")
After that you can access the color variables and use it for your... Page: 1   2   3   4   |