Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (ellipsize)
Viewing all articles
Browse latest Browse all 15

Android Label Ellipsize

$
0
0

I have some labels in my app that I would like to ellipsize, but it seems that this property only works if the label is given a fixed width (i.e. have to set the width property to something).

I am using setting the left and right properties to make the width fit the screen and it does not work even with wordWrap set to false. The words just get chopped off.

labelProps: {
        left: '85dip',
        top: '28dip',
        right: '20dip',
        height: '20dp',
        ellipsize: true,
        wordWrap: false,
        textAlign: 'left',
        touchEnabled: false,
        color: '#999',
        font: {
            fontSize: '12dip'
        },
        horizontalWrap: false
    }
Is there some magic to make it work without the width property?

Viewing all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>