Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8772843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:08:07+00:00 2026-06-13T18:08:07+00:00

I am new to Titanium. I have a tableview displaying some data. I have

  • 0

I am new to Titanium.

I have a tableview displaying some data. I have added an event listener on each row to toggle the display of the check image (rightImage) like this:

row.addEventListener('click', function(e){
    if(e.row.getHasCheck()){
            e.row.setHasCheck(false);
            e.row.rightImage = 'android/images/blank.png';
            e.rowData.rightImage = 'android/images/blank.png';
        } else {
            e.row.setHasCheck(true);
            e.row.rightImage = 'android/images/check.png';
            e.rowData.rightImage = 'android/images/check.png';
        }
    });
  • The images click.png and blank.png are in the folder: project/Resources/android/images (density independent)

  • I have tried both e.row.rightImage as well as e.rowData.rightImage since both are mentioned in several other questions.

  • The Android manifest in my tiapp.xml looks like this:

    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <supports-screens 
                android:smallScreens="true"
                android:normalScreens="true"
                android:largeScreens="true"
                android:anyDensity="true"
            />
        </manifest>
    </android>
    
  • I am running Titanium 2.1.2GA on Ubuntu Linux and testing the app on Android 2.3.6 device with a 240 x 320 pixels display

  • The only relevant part in the adb logcat is :

    I/InputReader( 1490): dispatchTouch::touch event's action is 0
    I/InputDispatcher( 1490): Delivering touch to current input target
    I/InputReader( 1490): dispatchTouch::touch event's action is 1
    I/InputDispatcher( 1490): Delivering touch to current input target
    

    Nothing unusual, no warnings, errors, etc.

Problem: The toggle (check/uncheck) works perfectly fine on the Android emulator (actually it works fine right out of the box on emulator, even without the custom image) but it fails to work (fails to display the row.rightImage) on device in any case.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:08:09+00:00Added an answer on June 13, 2026 at 6:08 pm

    I was able to make it work later.

    within the for loop

    var row = Titanium.UI.createTableViewRow({
        //I was dealing with contacts
        title : contacts[i].fullName + ", "+ contacts[i].phone.mobile[j], 
        rightImage : 'images/blank.png'
        });
    row.addEventListener('click', function(e) {
        if(e.row.getHasCheck()){
            e.row.setHasCheck(false);
            e.row.setRightImage('images/blank.png');            
        } else {
            e.row.setHasCheck(true);
            e.row.setRightImage('images/check.png');            
        }
    });
    tableData.push(row);
    

    not much change but the image paths.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to titanium and I,m trying to build some prototypes based on wireframes
I'm new to Titanium mobile as well as titanium studio, but have heard good
I am new to Titanium Studio. Need to set row height dynamically but, I
I am new to titanium mobile and I am a bit stuck. I have
I'm new to Titanium, and have started out by trying to build a (yet
i create some application in titanium mobile for opening a window when a row
New to PHP and MySQL, have heard amazing things about this website from Leo
I am working on an iPhone app for an event and I have to
I'm new with Appcelerator and I encountered an annoying problem regarding layout. I have
I've been looking over some of the Titanium Appcelerator tutorials on the appcelerator Vimeo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.