Thank you very much. That helped me out.

Regards.

On 28 Jan., 00:43, James Yum <j...@google.com> wrote:
> Hi,
> You can set the background to a 9-patch image:
>
> http://code.google.com/android/reference/available-resources.html#nin...
>
> It's fairly easy to create one yourself. Just make sure the outside 1-pixel
> area is completely empty except for the black lines.
>
> Or ...
>
> Create a file "res/drawable/my_border.xml" and define a shape:
>
> <shape xmlns:android="http://schemas.android.com/apk/res/android";>
>     <stroke android:width="4dp" android:color="#FF00FF00" />
>     <padding android:left="7dp" android:top="7dp"
>             android:right="7dp" android:bottom="7dp" />
>     <corners android:radius="4dp" />
> </shape>
>
> The padding is optional, but you just might need it.
>
> ... and then set the layout's background:
>
> <LinearLayout
>    android:background="@drawable/my_border"
>    ...
>
> Cheers,
> James
>
> On Tue, Jan 27, 2009 at 11:32 AM, code_android_festival_way <
>
> festival.s...@googlemail.com> wrote:
>
> > Hello.
>
> > I'm not very experienced in Java. Is there an easy possibility to get
> > a border and round edges around a LinearLayout? (perhaps with XML
> > parameters)
>
> > Or do I have to draw my own widgets.
>
> > Thank you for your help.
>
> > Regards.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to