[AC-1195] android:anyDensity="false" usage gives too much extra padding to TextFields
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-09-01T06:47:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | TCSupportTriage, android |
Reporter | Vishal Kumar Singh |
Assignee | Mauro Parra-Miranda |
Created | 2014-08-06T01:37:17.000+0000 |
Updated | 2016-03-08T07:37:34.000+0000 |
Description
#Background:
Noticed 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.
#Investigation Finding
After removing
from my tiapp.xml fixed the issue of removing that additional padding.
Hello, We have tested this issue with our sample code. We have used
Also using height: Ti.UI.SIZE,
Index.js
Tiapp.xml Add and remove bellow code in
*TESTING RESULT:* There is no change in TextField. Thanks.
Please take a look into the testcase. If you can still reproduce the issue, please add your testcase so we can reproduce.
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.
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).
Excessive textfield internal padding could be eliminated by specifying style for EditText: Checked for classic app. See how to introduce custom style for Android http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Themes