Wish Updated Core library

Cableguy

Expert
Licensed User
Longtime User
Hi Erel,

If i understand correctly, the B4a Core lib is why B4x is still compatible with Android 2+ version.
since the percentagem of such devices is nos very very small, i wish it would target higher versions of the Android OS, por at least encapsulate a few BASIC Android features such as elevation (I know I could use appcompat for this but to me its implementation/usage ratio is overkill, as in most cases we only need to set elevation)
Please correct me if im wrong!
 

corwin42

Expert
Licensed User
Longtime User
No, you are wrong here.

What you call a BASIC Android feature was introduced to Android in API 21 (View.setElevation() ). So if this is added to the core library it will work only on (currently) 18% of the devices. Though this simple feature wouldn't cause a drop of Android 2+ support.
Setting the elevation for Android 5.0 and up can be done easily with Reflection in just a few lines of code. No need to add this to the core.
 

Cableguy

Expert
Licensed User
Longtime User
Good to know... Thanks corwin
 
Top