Android Question Updating apps to API35

ilan

Expert
Licensed User
Longtime User
hi

i am using the snipped from here:

but i encounter on some apps that uses CLV that there is an issue with the z-order or something else. the thing is that 2 labels that should be in the front of a button do not appear.

1753421307554.png



if i change this line:

B4X:
name="LightTheme" parent="@android:style/Theme.Material.Light">

to this:

B4X:
name="LightTheme" parent="@android:style/Theme.Holo.Light">

the labels are seen probably:

1753421590316.png



is it safe to use this code in my manifest for all my apps?

B4X:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
    <style
        name="LightTheme" parent="@android:style/Theme.Holo.Light">
       <item name="android:actionMenuTextAppearance">@style/LowerCaseMenu</item>
       <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>
     <style name="LowerCaseMenu" parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
        <item name="android:textAllCaps">false</item>
    </style>
</resources>
)
 

ilan

Expert
Licensed User
Longtime User
Whatever you want to be above them should be inside a panel with a larger elevation.
ok so i need to add another panel, put both labels inside an set the elevation property to above 2dip for the panel.
ok got it.

is it bad to use the Theme.Holo.Light theme? will it have any effect on my app or is it just appearance? (like msgbox,...)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
is it bad to use the Theme.Holo.Light theme?
Apart of the theme looking outdated, you are relying on the OS to properly support an old theme. Android doesn't always excel with backward compatibility.
If you plan to further maintain and improve this app then it is worth updating the theme. It should be simple to update.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Apart of the theme looking outdated, you are relying on the OS to properly support an old theme. Android doesn't always excel with backward compatibility.
If you plan to further maintain and improve this app then it is worth updating the theme. It should be simple to update.
i just tried but i dont like the time and date selection. i like much more the old fashion. if it wont effect the functionality i will leave it like this. i am running the latest android version so i will make sure the apps work fine. if they wont i guess i will have to update unless there is a way to keep the look of the msgbox, date/time picker,..
 
Upvote 0
Top