Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

hasCheck icon not displaying in few android devices/emulators

$
0
0

Problem Description :

On particular android devices/emulators (as mentioned above), hasCheck property of TableViewRow is not showing the checkmark icon on right side of the row.

Environment:-

Android : 4.2.2, 4.1.2

Ti SDK : 3.1.1.GA

Device : Micromax Funbook Alpha, LG Optimis Pro

Emulator Screens : QVGA, WQVGA400, WQVGA432

Steps to reproduce

In order to reproduce this issue, please try this sample code given below on above mentioned android devices/emulators in Environments area.

var data = [];
    //create object instance, a parasitic subclass of Observable
    var self = Titanium.UI.createTableView({        
        data : data,
    });
 
 
    for (i = 0; i < 5; i++) {
        var section = Titanium.UI.createTableViewSection({headerTitle: "section"+i});
 
        for (j = 0; j < 5; j++) {
            var row = Ti.UI.createTableViewRow({
                title : "row"+j,
                hasCheck :  true
            });
            section.add(row); 
 
 
        }
        data.push(section);
    }
    self.setData(data);
    self.addEventListener('click', function(e) {    
        if(e.row.hasCheck){
            e.row.hasCheck = false;
        }else{
            e.row.hasCheck = true;
        }
    });

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>