Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139470

TextView width changes for complex letter shapes in Android 15 and later

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.5, 6.8, 6.9, 6.10
    • QPA: Android
    • None
    • Android

      The Android 15 introduces the change https://developer.android.com/about/versions/15/behavior-changes-15#textview-width

      Which is "on" by default from Android 15 and later
      https://developer.android.com/reference/android/widget/TextView#setUseBoundsForWidth(boolean)

      TextView is directly used in QPA Android at two places: 
      https://code.qt.io/cgit/qt/qtbase.git/tree/src/android/jar/src/org/qtproject/qt/android/EditContextView.java#n35 
      https://code.qt.io/cgit/qt/qtbase.git/tree/src/android/jar/src/org/qtproject/qt/android/QtMessageDialogHelper.java#n161 

      The change might cause TextView and classes inheriting from it to take more space with complex letter shapes. This suggestion suggest that complex letter changes should be tried on Android 15 and later especially on the two directly used classes to see how does the "on" by default impact to them. End user can control "on" by XML and set it as "false"

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            rampe Rami Potinkara
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes