Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23361] Android: TableViewRow hasCheck icon styling issues

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterBe Rushton
AssigneeUnknown
Created2016-05-05T04:02:01.000+0000
Updated2018-02-28T19:54:56.000+0000

Description

On a Nexus 5 (Android 6) when I use a TableViewRow with hasCheck="true" or a ListItem with the accessoryType "Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK" the tick icon is not sharp and is touching the edge of the screen. Can we fix this or have a way to override the drawable tick icon with our own assets. This tick icon has been an ongoing issue with Titanium for the last 3 or 4 years at least and breaks everytime a higher density screen comes along so this might be a way to fix it for good this time.

Comments

  1. Nazmus Salahin 2016-05-05

    Hello, Thanks for reporting. It will be appreciated if you share simple test code that reproduces this issue. We will confirm the issue as bug when we are able to reproduce it. Thanks in advance
  2. Be Rushton 2016-05-06

    sample code is pretty straight forward: Expected result: android checkmark displayed unpixelated and with padding from edge of row. Actual result: The checkmark is blurry and touching the right side of the screen.
  3. Be Rushton 2016-05-07

    Google link for list design specs: https://www.google.com/design/spec/components/lists.html#lists-specs
  4. Nazmus Salahin 2016-05-08

    Hello, I have tested this issue with Nexus7 , Nexus 5 and HtcOne android device. The issue seems to be reproducible. The check mark has right padding and much too small to notice. I am attaching screenshots here. [Nexus 5](https://i.imgsafe.org/53f3703.png) [Nexux 7](https://i.imgsafe.org/9641bfe.png) [HtcOne](https://i.imgsafe.org/c3e4a1c.png) *Code:*
       var tableData = [];
       var win = Ti.UI.createWindow({
       	backgroundColor : 'white'
       });
       
       var table = Ti.UI.createTableView({
       	objName : 'table'
       });
       
       var row = Titanium.UI.createTableViewRow({
       	hasCheck: true
       });
       var view = Titanium.UI.createView({
       	backgroundColor : 'red',
       	width : 200,
       	height : 200
       });
       row.add(view);
       tableData.push(row);
       table.setData(tableData);
       win.add(table);
       win.open(); 
       
    *Environment*: *Device info:* Nexus7, Nexux5 (android 6.0.1) , Htc One (Android 4.4.3) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.2.GA and 5.2.1.GA *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5 *Appcelerator CLI Version:* 5.2.2 *Appcelerator Studio:* 4.5.0

JSON Source