Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2518] Android: Multiple line in label does not show ellipsis

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-06-25T19:41:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, ellipsis, label
ReporterSoumya Kanti Kar
AssigneeMauro Parra-Miranda
Created2013-06-25T07:59:05.000+0000
Updated2016-03-08T07:41:34.000+0000

Description

When executing the below code, it does not display the ellipsis at the end of 2nd line. This issue is happening in Android.
var win = Titanium.UI.createWindow({
    exitOnClose : true,
    navBarHidden : true,
    backgroundColor : 'black'
});
 
var label = Titanium.UI.createLabel({
    left : '2%',
    width : '33%',
    height : '33dip',
    color : 'white',
    ellipsize : true,
    wordWrap : true,
    font: {
        fontFamily:'Roboto',
        fontSize: '13dip',
        fontStyle: 'regular',
        fontWeight: 'normal'
    },
    text : 'The quick brown fox jumps over the hungry lazy dog. The quick brown fox jumps over the hungry lazy dog.',
    borderColor : 'red',
    borderWidth : 1
});
 
win.add(label);
 
win.open();
Note: The ellipsis is coming on Android 2.3.3. But once the code is executed on Android 4.0 and higher, the ellipsis is not getting displayed.

Comments

  1. Dharmik Patel 2013-06-25

    Soumya Kanti Kar, you correct that is not working on Android 4.0 and higher. I am also faceing same problem.
  2. Carter Lathrop 2013-06-25

  3. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source