Sunday, October 30, 2011

[android-developers] Re: HorizontalScrollView not show fading edge when drag

I tried it and it doesn't work at all.

I remember in ListView I can use the "android:cacheColorHint" to
modify the color of the fading edge, but HorizontalScrollView doesn't
have that.

I even extend HorizontalScrollView and override certain functions but
still not working..

@Override
public int getHorizontalFadingEdgeLength() {
return 0;
}

@Override
public int getVerticalFadingEdgeLength() {
return 0;
}

@Override
protected float getLeftFadingEdgeStrength() {
return 0;
}

@Override
protected float getRightFadingEdgeStrength() {
return 0;
}

@Override
public int getSolidColor() {
return Color.argb(0x00, 0xaa, 0xaa, 0xaa);
}

On Oct 30, 4:53 am, Pent <supp...@apps.dinglisch.net> wrote:
> You tried setting the fading edge length to 0 ?
>
> Pent
>
> > I have a HorizontalScrollView and when I drag the LinearLayout to the
> > left and right edge, a orange color gradient will gradually appear on
> > the edges. My quesiton is how to get rid of them? These gradient only
> > appears when I drag the view to the most left and right. I tried many
> > things (fading edge/foreground color/override getSolidColor.. etc) and
> > still couldn't get rid of it.
>
> > thanks.
> > Ronald

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate