嗨,伙计们,我正在尝试使 ellipsize 在 2 行上工作,但我不确定如何......目前它正在工作,但它会在一行之后将其切断。有任何想法吗?
var recipeName = Ti.UI.createLabel({
color:'#576996',
font:{fontSize:Titanium.Platform.displayCaps.platformWidth*5/100,fontWeight:'bold', fontFamily:'Arial',textAlign:'center'},
left:Ti.Platform.displayCaps.platformHeight /5 + 20,
top: 0,
right: 5,
height: photo.height /2.5 ,
width:Ti.UI.FILL,
clickName:'user',
ellipsize:true,
wordWrap : false,
verticalAlign: 'TEXT_VERTICAL_ALIGNMENT_TOP',
text: results.matches[c].recipeName
});