{ "id": "134210", "key": "AC-1195", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-09-01T06:47:34.000+0000", "created": "2014-08-06T01:37:17.000+0000", "labels": [ "TCSupportTriage", "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "#Background:\r\nNoticed that in the Kitchen Sink app the textfields looks just fine, but in the app I was developing had this good amount of padding applied to it due to which my text in the textfields were not visible. Solved it by using height: Ti.UI.SIZE, but that made my textfields look huge. There was no way to improve it as padding control is not given to the textfields.\r\n\r\n#Investigation Finding\r\nAfter removing \r\n\r\nfrom my tiapp.xml fixed the issue of removing that additional padding.", "attachment": [], "flagged": false, "summary": "android:anyDensity=\"false\" usage gives too much extra padding to TextFields", "creator": { "name": "ivks", "key": "ivks", "displayName": "Vishal Kumar Singh", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "ivks", "key": "ivks", "displayName": "Vishal Kumar Singh", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "Mac OSX Mavericks\r\nTitanium SDK 3.3.0\r\nAndroid 4.4.2.", "comment": { "comments": [ { "id": "317833", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nWe have tested this issue with our sample code. We have used in tiapp.xml and also remove this from tiapp.xml, but there is no any effect on textfield padding.\r\n\r\n \r\n*TESTING ENVIRONMENT:*\r\n Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n Android API Level: 17 and 19\r\n \r\n*STEPS TO REPRODUCE:*\r\n a) Create a simple alloy project.\r\n b) Update this code in index.js , index.xml and tiapp.xml\r\n c) Run this with testing environment\r\n\r\n*TESTING CODE:* \r\n\r\nIndex.xml\r\n\r\n{code}\r\n \r\n \r\n \r\n{code}\r\n\r\nAlso using height: Ti.UI.SIZE,\r\n\r\n{code}\r\n \r\n \r\n \r\n{code}\r\n\r\nIndex.js\r\n\r\n{code}$.win.open();{code}\r\n\r\nTiapp.xml\r\nAdd and remove bellow code in tag\r\n{code}{code}\r\n\r\n\r\n*TESTING RESULT:*\r\n \r\nThere is no change in TextField.\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-10T05:12:33.000+0000", "updated": "2014-09-01T06:46:23.000+0000" }, { "id": "321195", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Please take a look into the testcase. If you can still reproduce the issue, please add your testcase so we can reproduce. \r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-01T06:47:34.000+0000", "updated": "2014-09-01T06:47:34.000+0000" }, { "id": "322495", "author": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "body": "I'm seeing this same issue with HUGE (sometimes more than 20px) padding given to all my textfields, for various Android devices (Galaxy S4 and above display the most padding). Will add a test case once I've figured out a hacked fix because the App is due for release today.", "updateAuthor": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "created": "2014-09-09T08:56:09.000+0000", "updated": "2014-09-09T08:56:09.000+0000" }, { "id": "331371", "author": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That issue is connected with TIMOB-16512 and is a big pain for some android devices (HTC One with Android 4.4.3 in my case) - textboxes become just not functioning at all (probably because of default padding values and/or anyDensity=false).", "updateAuthor": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-10T12:34:38.000+0000", "updated": "2014-11-10T12:34:38.000+0000" }, { "id": "334018", "author": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Excessive textfield internal padding could be eliminated by specifying style for EditText:\r\n\r\nChecked for classic app. See how to introduce custom style for Android http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Themes ", "updateAuthor": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-27T10:55:17.000+0000", "updated": "2014-11-27T10:55:17.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }