Titanium JIRA Archive
Appcelerator Community (AC)

[AC-169] Text is not visible or too small in textfield with 3.5.0 SDK

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-11T05:27:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
Labels3.5.0GA, 3.5.1GA, android, font, textfield
Reporterprashaanth
AssigneeShak Hossain
Created2015-06-19T03:27:36.000+0000
Updated2015-11-11T05:27:28.000+0000

Description

Hi I am facing the issue of font in 3.5.0 and 3.5.1 sdk. I have an app developed in 3.1.3 sdk and I have upgraded to 3.5.0, when I upgraded the font in the text field is too small or not visible. I have given all my images and buttons measurements in percentages and I am facing this font issues when I give in tiapp.xml. Though it is deprecated from 3.3.0, all my images and buttons are rightly placed and have correct measures and when I checked my device height and width through console, it gave correct measures. But when I remove this density element, all my UI was disturbed but font in the textfield was good and my device width and height was shown increased in the console. But when I run the project with 3.3.0sdk or 4.0.0 sdk there are no problems and the font was clear UI was good and my device width and height were correct and I have given the density to "false". I am facing this issue in 3.5.0 sdk and 3.5.1 sdk.

Attachments

FileDateSize
Screenshot_2015-06-19-08-50-51.png2015-06-19T03:26:52.000+000065149

Comments

  1. Rakhi Mitro 2015-09-14

    Hello, Tested this issue. It is working as expected. Please try the latest SDKs. *Test Environments:* CLI Version :4.1.3 Titanium SDK Version:4.1.1.GA,4.1.0.GA,3.50,3.51GA Emulator :Motorola Moto X - 4.4.4 - API 19 - 720x1280 Sumsung Device:SM-T210R (4.4.2) Appc Studio: Appcelerator Studio, build: 4.1.1.201507141126 Alloy: 1.7.6 Mac OS X,Version = 10.10.1 *Test Steps:* * Create a classic project * Copy sample app.js to your resource directory. * Add sample manifest entry to the tiapp.xml. * Run Project *Test Code:* app.js
       var win1 = Titanium.UI.createWindow({  
       
           title:'Tab 1',
       
           backgroundColor:'red'
       
       });
       
       
       
       
       
       // Create a TextField.
       
       var aTextField = Ti.UI.createTextField({
       
       height : 35,
       
       top : 50,
       
       left : 40,
       
       width : 240,
       
       hintText : 'This is hint text',
       
       softKeyboardOnFocus : Ti.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS, // Android only
       
       keyboardType : Ti.UI.KEYBOARD_DEFAULT,
       
       returnKeyType : Ti.UI.RETURNKEY_DEFAULT,
       
       borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
       
       });
       
       
       
       // Listen for return events.
       
       aTextField.addEventListener('return', function(e) {
       
       aTextField.blur();
       
       alert('Input was: ' + aTextField.value);
       
       });
       
       
       
       // Add to the parent view.
       
       win1.add(aTextField);
       
       win1.open();
       
       
       
    Tiapp.xml
       <android xmlns:android="http://schemas.android.com/apk/res/android">
       
       <manifest>
       
               <supports-screens android:anyDensity="false"/>
       
           </manifest>
       
       </android>  
       
       
    *Test Result:* Text is properly visible in the text field . [Check ](http://tinypic.com/view.php?pic=14tr3p&s=8#.VfZktJ2qqko) this. Thanks

JSON Source