android - Grid item not clickable -


i have used 1 gridview calendar in application.the gridview calendar working correctly , displayed element want.my problem when click grid item not clickable.thanks

my gridview:

<linearlayout     android:id="@+id/gridlayoutid"     android:layout_width="fill_parent"     android:layout_height="fill_parent" >      <gridview         android:id="@+id/gridviewid"         android:layout_width="fill_parent"         android:layout_height="match_parent"         android:horizontalspacing="-1px"         android:numcolumns="7"         android:stretchmode="columnwidth"         android:textdirection="anyrtl" /> </linearlayout> 

my grid rows:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="200dp" android:layout_height="fill_parent" android:background="@drawable/gridcal" android:orientation="vertical"> <textview     android:id="@+id/griddate"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:paddingleft="10dp"     android:paddingbottom="10dp"     android:textcolor="@color/text_color"     android:textsize="14sp"     android:textstyle="bold" >     <!-- android:layout_height="200dp" --> </textview> <textview     android:id="@+id/gridstatus"     android:layout_gravity="right"     android:layout_width="wrap_content"     android:layout_height="wrap_content" />      </linearlayout> 

my activity:

gridview = (gridview) view.findviewbyid(r.id.gridviewid); gridview.setonitemclicklistener(new onitemclicklistener() {         public void onitemclick(adapterview<?> parent, view v,                 int position, long id) {            //some codes                 }             }         }     }); 


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -