android - Gridview item showing shadow on click -
i using gridview application dashborad, when click on item, shows shadow. how can remove showdow on click.
here item grid xml
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" > <imageview android:id="@+id/dashboard_icon_img" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginbottom="0dp" android:layout_margintop="10dp" android:scaletype="fitxy" /> <textview android:id="@+id/launcher_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:textsize="12sp" /> </linearlayout> here gridview layout.
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.tech.reader.mainactivity$placeholderfragment" > <gridview android:id="@+id/dashboard_grid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerinparent="true" android:layout_margin="10dp" android:layout_margintop="80dp" android:numcolumns="3" /> </relativelayout> here attaching link picture of dashboard in click mode in tried explain problem. dashboard
use android:listselector="#00000000" in gridview element in xml layout file.
reference at post
Comments
Post a Comment