Ritu Raj
Ritu Raj

Reputation: 553

Android: How to remove black line below the GridView

I have a GridView. I have added some paddingBottom for the view. When I scroll my GridView there is a blackish line that is seen on the border of gridview and bottom padding. How do I get rid of this blackish line?

The gridview xml code is as follows:

<GridView
            android:id="@+id/slot_gridView"
            android:layout_width="match_parent"
            android:layout_height="507dp"
            android:columnWidth="90dp"
            android:numColumns="2"
            android:scrollbars="none"
            android:listSelector="#00000000"
            android:layout_marginTop="10dp"
            android:paddingBottom="20dp"
            android:layout_marginBottom="10dp"
            android:verticalSpacing="31dp"
             />

Upvotes: 0

Views: 568

Answers (2)

N J
N J

Reputation: 27545

Try this

android:cacheColorHint="@android:color/transparent"
android:scrollingCache="false"

Upvotes: 1

Piyush
Piyush

Reputation: 18923

Use

android:fadingEdge="none" 

for disable black strip.

Upvotes: 0

Related Questions