I am using the following drawable to draw a line

<shape xmlns:android="http://schemas.android.com/apk/res/android";
android:shape="line">
    <stroke android:width="1dp" android:color="#FFC0C0C0" />
    <size android:height="5dp" />
</shape>




displayed in the layout using,

                    <ImageView
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:src = "@drawable/line"/>



I pulled this from some example code...  a couple questions

1.  what does the android:height="5dp" mean?  If the stroke is really
the height what is the android:height do?

2.  what I really want is for the line to display as a gradient
starting at #F000 and ending at #FFFF.  I tried adding the following
to the shape xml but it does not appear to work.

<gradient android:startColor="#FF000000" android:endColor="#FFFFFFFF"
android:angle="180" />

How do I do this?

thanks, Mark
--~--~---------~--~----~------------~-------~--~----~
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