Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-6392

Android: Ti.UI.Button text values with too many displayable characters draw improperly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 1.7.5, Release 1.8.0.1
    • Fix Version/s: Release 7.0.0
    • Component/s: Android
    • Environment:

      SDK: 1.8.0.1.v20111129200258, 1.7.5
      Android Runtimes: V8, Rhino
      Studio: 1.0.7.201111291553
      OS: OS X Lion
      Devices Tested: all Android/Nook devices/emulators, iOS Simulator 5.0

      Description

      Ti.UI.Button text values containing too many displayable characters are: truncated without a visual cue (Android 2.3), displayed outside the background image of the button (Android 2.2, 2.3), or cut in half horizontally (Nook). Screenshots attached.

      In contrast, large text values in iOS buttons contain an ellipsis (ensuring the user is aware of the missing text).

      Steps to Reproduce:

      1. Create a project using the following code:

      Titanium.UI.setBackgroundColor('#000');
      var win = Titanium.UI.createWindow({title:'Tab 1',backgroundColor:'#fff'});
      var button = Titanium.UI.createButton({title:'Set active tab via index (Controls)',top:160,height:40,width:200});
      win.add(button);
      win.open();
      

      2. Run the project using the Android Emulator 2.2 WVGA854 (a known error-observable configuration).
      3. The button appears.

      Expected Result:

      Button text should display within the button area, be displayed in full, or displayed with an ellipsis (i.e., iOS).

      Actual Result:

      Button text is displayed outside the button area, horizontally cut in half, or truncated without a visual cue.

      Note:

      The Android runtime (V8, Rhino), TiMob SDK, or device orientation do not affect this behavior.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchen Maggie Chen
                Reporter:
                dhyde Dustin Hyde
                Reviewer:
                Joshua Quick
                Tester:
                Lokesh Choudhary
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6928
                    Sync status:
                    ERROR
                    Last sent:

                    Git Source Code