2012-07-27 66 views
3

目前,我有一个Activity,其顶部为ListView,底部为LinearLayoutListView底部的“Glooming”效果图层

enter image description here

当我ListView一排滚动和行部分所示,它看起来像这样。 (LinearLayout措辞)

但是,我希望有以下效果。

enter image description here

看来,LinearLayout增加在ListView底部的 “glooming层”。 - 我相信这不是错觉。 :)

我怎么能达到这样的效果?

+0

你设置的android:在布局的ListView fadingEdge = “无”?如果是,然后用适当的值替换没有值,自定义淡入淡出颜色是不可能在android http://stackoverflow.com/a/4678136/582571 – rajpara 2012-07-27 15:03:06

回答

3

添加

android:requiresFadingEdge="vertical" 

ListView就能解决问题

1

现在我脑海中想到的其中一个想法是create a shape带有透明渐变色。然后在LinearLayout上方创建一个View,并将Shape作为背景。

另一个想法是将透明图像,而不是形状,以上LinearLayout