[TIMOB-9447] Android: TableView hasChild icon with Galaxy nexus (all xhdpi devices?)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-21T15:39:08.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19 |
Components | Android |
Labels | api, qe-port |
Reporter | Paul Hamilton |
Assignee | Hieu Pham |
Created | 2012-05-30T12:59:23.000+0000 |
Updated | 2015-08-31T09:07:54.000+0000 |
Description
The hasChild property on a Galaxy nexus (res 1280×720) makes for a VERY tiny icon on the right. I think that there is no xhdpi icon for this, and it displays to a MUCH smaller one. the ldpi, mdpi, and hdpi versions all seem to scale appropriate to its size. The galaxy nexus isn't using the hdpi version. It might be using the mdpi.
Appcelerator docs also make no mention of this resolution density (xhdpi) in any of its docs. This resolution should also be included / mentioned to take into account the xtra high res density phones.
1. Run this code:
Ti.UI.backgroundColor = "#000000"
var win = Titanium.UI.createWindow({
title:'window',
backgroundColor:'#fff'
});
var aTableView = Ti.UI.createTableView();
var data = [
{title:'Row 1', hasChild:true, color:'red', header:'First'},
{title:'Row 2', hasCheck:true, color:'orange'}
];
aTableView.setData(data);
aTableView.addEventListener('click', function(e) {
alert('title: \'' + e.row.title + '\', section: \'' + e.section.headerTitle + '\', index: ' + e.index);
});
win.add(aTableView);
win.open();
Keep in mind there may be other icons that don't have xhdpi support.
We have the same problem with a Galaxy Note (whose resolution is 1280x800) on Android 4.0.4. Titanium SDK 2.1.1
So it does appear to be XHDPI phones. This will get more and more critical as people get newer phones. Is it a huge prospect to support XHDPI androids?
The medium sized image is the default and then it is only checked for low or high resolution but not for ultrahigh (XHDPI) The Bug also affects mobile SDK 2.1.1 TiBaseTableViewItem.java#56-61:
Can we backport this to 2.1.3GA? One of our customers is requesting for the same.
Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, build: 3.0.0.v20121204181658 Devices: Samsung Galaxy S III (4.0.4)
Just tested this problem on 3.1.1GA with HTC One phone (1920x1080 at 480dpi) and I've got a tiny icon again.
4.2.2 S4 has tiny icons too. Any workaround?
tiny icons on 3.1.3GA and HTC one. This needs to be reopened.
As Beau and Abdul have said, the check mark is almost invisibly small with 3.1.3GA and HTC One. (Although fine on Nexus 7) It's over three month since Joe reported it, this bug needs to be reopened immediately and fixed : it's a very large usability issue for HTC One users.
Nexus 7 is an oddball. We have to be compatible with HTC One.
This bug isn't fixed at all: Still experiencing those problems with Ti.SDK 3.2.1.GA and Android 4.3 (Galaxy S4).
This is still a bug on the HTC One.
This bug also appears on galaxy s5
Still happening on most of my emulators
We have to specifically add a custom checkbox view to almost every table and list in our apps, just to be able to show a checkmark that's more than a millimeter tall on the most popular Android devices. Seems a bit mad that this is still around...
is this ever going to be fixed? Still happening over here.