我需要,到一個TableViewRow,有一個雙線標籤,但標籤只顯示一行。Appcelerator - Android多行標籤
這是我的代碼:
1 TSS文件
"#titulo[platform=android] ":{
font:{fontSize:15},
textAlign:'left',
color: '#0a80b0',
top: 2,
left:45,
height:40,
ellipsize: true,
wordWrap: false,
lines: 2
}
2. JS控制器文件
var labelWidth = Titanium.Platform.displayCaps.platformWidth - 45 - 20;
$.titulo.setText(args.get('title'));
$.titulo.setWidth(labelWidth);
感謝您提前。
問題在Appcelerator的Q &答:http://developer.appcelerator.com/question/183058/android--multiline-text-label-into-a-table-row
編輯:
現在我有兩條線,但我的第一行的最後一個字被切斷......
不,我正在使用3.5.0.GA – amurcia
在版本3.5.0.GA中,不可能在兩行中使用標籤?????? – amurcia
我在版本4.1.0.GA嘗試,它不起作用 – amurcia