在GridView上删除FadingEdge。 Android Honeycomb

时间:2013-04-19 11:09:00

标签: android android-layout gridview android-3.0-honeycomb

我需要从gridview中删除淡化边缘。我做了一些研究,目前下面是我的gridview看起来像,问题是没有任何作用。有没有办法禁用/删除/隐藏淡化边缘?

    <GridView
        android:id="@+id/shop_grid_cart_items"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:background="#C4C4C4"
        android:fadingEdge="none"
        android:fadingEdgeLength="0px"
        android:numColumns="1"
        android:overScrollMode="never"
        android:padding="20dp"
        android:scrollbarStyle="outsideInset"
        android:verticalSpacing="3dip"
        android:requiresFadingEdge="none"  
        android:cacheColorHint="@android:color/transparent"          
        tools:listitem="@layout/shop_cart_grid_item" />

OnCreateView:cartItems.setVerticalFadingEdgeEnabled(false);

1 个答案:

答案 0 :(得分:2)

你可以试试这个:

机器人:overScrollMode = “从不”

还有答案: Is there a way to disable/edit the fading that a list view has at its edges?