hi,
use button.setLines() method to restrict it to single line

On Jun 16, 8:17 am, Dhawal <[email protected]> wrote:
> Hi,
> I am creating a button widget with icon and text. Single word text is
> getting divided into two lines. There is enough room on the screen for
> the button widget to grow. But it still wraps the text to next line.
> How do I force it to be single line ?
> This is how I setup th button widget.
>
> <Button android:id="@+id/delete" android:text="@string/delete"
>                 android:drawableTop="@drawable/ic_menu_post_delete"
>                 style="@style/OnScreenActionIcon" />
>
> Thanks,
> Dhawal.

-- 
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

Reply via email to