There's no need to use a GradientDrawable, that effect is provided by
the View class. Look for the various occurrences of "fade" in the
documentation of View. ListView in particular enables this by default.

On Wed, Jan 20, 2010 at 5:55 AM, AJ <ajeet.invinci...@gmail.com> wrote:
> Thanks Mark, it worked :)
>
> - AJ
>
> On Jan 20, 3:20 pm, AJ <ajeet.invinci...@gmail.com> wrote:
>> Thanks Mark for the info
>> let me try this
>>
>> - AJ
>>
>> On Jan 20, 3:07 pm, "Mark Murphy" <mmur...@commonsware.com> wrote:
>>
>>
>>
>> > > thanks for quick response.
>>
>> > > This is the url of the image what I am talking about
>> > >http://developer.android.com/resources/articles/images/list_fade_2.png
>>
>> > > If you see the background of the image it is light green at top and
>> > > becomes dark green at bottom.
>> > > This effect i want to implement in my list view also.
>>
>> > Ah, sorry -- that is a subtle color change, and I missed it.
>>
>> > You will need to create a GradientDrawable, perhaps via drawable XML, such
>> > as:
>>
>> >http://github.com/commonsguy/cw-advandroid/blob/master/Drawable/Gradi...
>>
>> > You can then apply that drawable resource as the background of the window
>> > or ListView or whatever. As the article you linked to suggests, you will
>> > also wish to change or turn off the cache color hint.
>>
>> > --
>> > Mark Murphy (a Commons Guy)http://commonsware.com
>> > Android App Developer Books:http://commonsware.com/books.html
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them
-- 
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