Don't use predefined instead use layout_width="fill_parent", maxLines=1 and use elipsize
ellipsize :- If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. have a look at TextView xml attributes http://developer.android.com/reference/android/widget/TextView.html <http://developer.android.com/reference/android/widget/TextView.html> On Thu, Feb 17, 2011 at 5:13 PM, Rahul <[email protected]> wrote: > hiiii > > i am stuck in a problem > > i want to display some text in a text view constraint is text has a > predefined width... if the text exceeds this width it should hide > that... > but now it goes in next line... > > please help > > Thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- --Jitesh .V. Dedhiya--- Don't Learn To Hack but Hack To Learn -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

