Am I missing something?
There is code in this forum that will check to see if a phrase of text will fit in a views size, and other code to resize (typically reducing) the font size so that the view's text can be fully visible/displayed and not get cut off.
Why doesn't every view that displays text have the built-in ability to resize it's text automatically?
With all the fragmentation with different screen sizes, density and different user-specified system font size, any view not having this built-in ability will waste us developer's time by having to manually implement this functionality. This ability is especially important when you start to do translations for your app and many translated phrases are longer/bigger then the English version.
I mean, B4X is for RAD development, so why does adding this essential functionality for virtually any app have to be a manual and time consuming task if we want our apps to appear properly on the broad range of devices out there?
I can't think of even one situation where it would be OK to display cut-off text to the user.
Is there a way to create a universal routine that would iterate through all the views of an activity and when it finds a view that displays text, automatically resize the text so it will fully display? This routine would obviously be called when a new layout/activity is loaded, but it should also have the ability to be manually called (or automatically detect) when text in a view has changed and perform a resize if needed. Can this routine/ability be built-into B4X so we don't have to manually insert the code in every activity and add the event hooks?
There is code in this forum that will check to see if a phrase of text will fit in a views size, and other code to resize (typically reducing) the font size so that the view's text can be fully visible/displayed and not get cut off.
Why doesn't every view that displays text have the built-in ability to resize it's text automatically?
With all the fragmentation with different screen sizes, density and different user-specified system font size, any view not having this built-in ability will waste us developer's time by having to manually implement this functionality. This ability is especially important when you start to do translations for your app and many translated phrases are longer/bigger then the English version.
I mean, B4X is for RAD development, so why does adding this essential functionality for virtually any app have to be a manual and time consuming task if we want our apps to appear properly on the broad range of devices out there?
I can't think of even one situation where it would be OK to display cut-off text to the user.
Is there a way to create a universal routine that would iterate through all the views of an activity and when it finds a view that displays text, automatically resize the text so it will fully display? This routine would obviously be called when a new layout/activity is loaded, but it should also have the ability to be manually called (or automatically detect) when text in a view has changed and perform a resize if needed. Can this routine/ability be built-into B4X so we don't have to manually insert the code in every activity and add the event hooks?
Last edited: