Hello,
I wanted to create a custom view with rounded corners and a
transparent background (lets say #dd000000)

I created a color and it worked ok
For the rounded corners I found this method:

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>

But how/where do i specify the background color ?

I tried <background android:color="..."/> ...it doesn't work :(
Can anyone help ?

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