Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

Is there are set of guidelines for the Android how the text should be truncated in the controls? Fading text, ellipsis, cut in the middle, etc.?

enter image description here

share|improve this question
add comment

1 Answer

A quick check of developer.android.com shows that the standard approach to stop text wrapping over lines is to go with your second option: to display with ellipses.

android:ellipsize= causes words in the text that are longer than the view is wide to be ellipsized instead of broken in the middle

However; considering this is UX.StackExchange and this isn't really the place to come for coding guidelines, there are some specific usability issues to consider when thinking of truncating your text in any fashion. Just because you technically can implement techniques to show that more text exists, doesn't mean that it's the best way to do things.

For instance; as stated in the Windows User Experience Interaction Guidelines:

Avoid truncated text and their associated ellipses. Users should never have to interact with a window to view its typical content — reserve resizing and scrolling for unusually large content.

(emphasis mine)

Yes, it's Microsoft and the guideline is for Windows 7 / Vista, but the reasoning is sound. Also, don't forget that ellipses have other connotations, particularly if you're going to be using them on the options you show above; ellipses on button.

For example, this image of a typical button shows ellipses:

enter image description here

Now in this instance the ellipses do not mean 'the label doesn't fit on the button' it actually means 'click this button to open up a new menu'.

So yes, you can go ahead and use the ellipses for the android options you have above as Android does cater for that option, but in reality if you find that your text / labels are too long for the controls they are used on then you either have the wrong controls or your text is too long. Don't look for workarounds to shoehorn your content into a layout, ensure that you design the layout and labels to fit correctly into the screen in the first place.

Also, if you are interested in truncation itself then there are also some good answers on this ux.se question about what type of truncation is preferable: Studies or experience on using faded text to indicate more content?

share|improve this answer
    
Thank you JonW. I agree, ideally, the text should fit but for the solutions that are localized to tens of languages that is hard to guarantee and a fallback solution is needed in case the text is too long. –  Anna Rouben Jun 26 '12 at 23:06
    
@AnnaRouben that is fair enough, but be careful the fallback solution doesn't get used as a crutch whereby you end up thinking 'it doesn't matter if this label won't fit because it'll just be ellipsized' you should aim for the ellipsis to never be shown, even if the functionality is in there to display it. –  JonW Jun 27 '12 at 7:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.