Hi slink,

I exaktly see "This\nis\na\ntest!" as caption of the button.
Also if I try "This \n is \n a \n test!".


On Nov 17, 9:31 am, skink <[email protected]> wrote:
> VBMichi wrote:
> > Hi,
>
> > I am searching for help with a multiline button since 6 days.
> > Maybe someone of you can help me.
> > I've also posted my question in den android-beginner google group.
> > Sorry for crossposting.
>
> > I have a button:
>
> > <Button
> >     android:layout_height="wrap_content"
> >     android:id="@+id/test"
> >     android:background="@drawable/background_image"
> >     android:layout_width="280dip"
> >     android:layout_marginLeft="20dip"
> >     android:layout_marginTop="10dip"
> >     android:text="This is a test!">
> > </Button>
>
> > How can I set each word which is in android:text in a seperate line in
> > the button?
>
> > I've allready tried;
>
> > android:text="This\nis\na\ntest!" and
> > android:singleLine="false" and
> > android:lines="4"
>
> > Nothing seems to work.
>
> > Thanks for you help!
>
> > Regards,
> > Michael
>
> hi,
>
> what do you see when you just  try:
>
> android:text="This\nis\na\ntest!"
>
> ?

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