Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-528

Appcelerator on android 5.x don't prevent system font size change

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Needs more info
    • Affects Version/s: None
    • Component/s: Studio
    • Labels:
    • Environment:

      On Android 5.x there is a different behaviour than older Android or iOS.

      Description

      I have found a strange behavior of the application text size when I change the system font size settings of iOs or Android configurtion and after that open my Appcelerator Studio application.

      On older Android versions the system wide font size setting on Android was ignored by Titanium but in newer Android versions it is not
      In iOS and Android < 5.x it works fine for me. Always I can see fonts without scale. On Android 5.x text inside a WebView and other components like a AlertDialog or TextField, I notice a scaled font size. I want the app respect text size, prevent the OS settings change. I don't know why on Android 5.x don't have the same behavior.

      The problem occurs when I change system font size from Android Configuration. When I open the app after change it, on Android 5.x change the app font size and lose structure of my design

      I don't understand this different behaviour and maybe should be there a configuration parameter to avoid this.

      I try to get de size of an alert text trying to check the change but It's no possible. If it not posible to avoid this at least should be something to check if system font size has changed and show an alert to the user.

      I already try to set ti.ui.defaultunit on "dp" or other values with the same results. The Label component don't change the font size in any case.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              asanjuan Toni Sanjuan
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code