【问题标题】:Remove FadingEdge on GridView. Android Honeycomb删除 GridView 上的 FadingEdge。安卓蜂窝
【发布时间】:2013-04-19 11:08:59
【问题描述】:

我需要从我的网格视图中移除褪色边缘。我做了一些研究,目前下面是我的 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);

【问题讨论】:

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


    【解决方案1】:

    你可以试试这个:

    android:overScrollMode="never"

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-10-28
      • 2012-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多