diff --git a/AndroidCustomGridView/.settings/org.eclipse.jdt.core.prefs b/AndroidCustomGridView/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..b080d2d --- /dev/null +++ b/AndroidCustomGridView/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/AndroidCustomGridView/project.properties b/AndroidCustomGridView/project.properties index 8937e94..6e18427 100644 --- a/AndroidCustomGridView/project.properties +++ b/AndroidCustomGridView/project.properties @@ -11,4 +11,4 @@ #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. -target=android-14 +target=android-21 diff --git a/AndroidCustomGridView/res/layout/row_grid.xml b/AndroidCustomGridView/res/layout/row_grid.xml index f9c1969..461ceee 100644 --- a/AndroidCustomGridView/res/layout/row_grid.xml +++ b/AndroidCustomGridView/res/layout/row_grid.xml @@ -5,9 +5,9 @@ android:layout_marginTop="5dp" android:orientation="vertical" android:padding="5dp" - android:clickable="true" + android:clickable="false" android:background="@drawable/grid_color_selector" - android:focusable="true"> + android:focusable="false"> parent, View v, int position, long id) { + Log.e("item", "clicked"); Toast.makeText(MainActivity.this, position + "#Selected", Toast.LENGTH_SHORT).show(); }