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

Android: Changed hint text on textfield not shown in landscape mode

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.4.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      SDK: 3.4.0.v20140917120000
      Studio: 3.4.0.201409161950
      CLI: 3.4.0-rc4
      Alloy: 1.5.0-rc2
      Xcode: Xcode 6
      Device: Nexus 5 (v4.4.4)

      Description

      The changed hint text on a textfield does not show when the device is in landscape orientation. This happens when soft keyboard is shown and on android devices that show only the text field for edit in landscape mode.

      This is not a regression as the issue also occurs in 3.3.0.GA

      Steps to Reproduce:
      1. Create a project and replace its app.js with the code below
      2. Run the app on a device
      3. When the app launches the textfield shows a hint text as "123".
      4. Click on "click me!" button. The hint text of the textfield changes to "456"
      5. Click on the textfield to invoke the soft keyboard
      6. Now rotate the device to landscape mode

      Actual Result:
      The textfield shows the hint text as "123" instead of "456"

      Expected Result:
      The changed hint text should show even after orientation change

      var window = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
      var text = Ti.UI.createTextField({
      	hintText : 123
      });
      	var crash = Ti.UI.createButton({
      	top : 30,
      	title : 'click me!'
      });
       
      crash.addEventListener('click', function(e) {
      	text.hintText = 456;
       
      });
      window.add(crash);
      window.add(text);
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration