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

Android- Multiline text label into a table row

$
0
0

I need, into a TableViewRow, to have a two lines label but the label only shows one line.

This is my code:

  1. tss file
    "#titulo[platform=android] ":{
        font:{fontSize:15},
        textAlign:'left',
        color: '#0a80b0',
        top: 2,
        left:45,
        height:40,
        ellipsize: true,
        wordWrap: false,
        lines: 2
    }
  2. js controller file
    var labelWidth =  Titanium.Platform.displayCaps.platformWidth - 45 - 20;
     
    $.titulo.setText(args.get('title'));
    $.titulo.setWidth(labelWidth);

Viewing all articles
Browse latest Browse all 8068

Trending Articles