-2

I have been following the following tutorial Gridview with two columns and auto resized images and coded as follows and get red highlighted errors. I have fixed several errors, but could not able to figure out the followings

enter image description here

In detail in Line 37, I am getting the following errors:

enter image description here

Community
  • 1
  • 1
casillas
  • 16,351
  • 19
  • 115
  • 215
  • 1
    What is `R.drawable`? – TZHX Nov 21 '15 at 01:05
  • it is resources folder, oh ok I have got you mean. I should put images there. Do you have any idea regarding line 37-40 errors – casillas Nov 21 '15 at 01:06
  • 1
    R.drawable.red is lable ? did you check they are exist in the drawable folder ? are you developing for multiple resolutions ? if so can you please give us the folder details and what are the images exist ? – Zumry Mohamed Nov 21 '15 at 01:10

1 Answers1

1

You are extending BaseAdapter. your ProductHomeActivity class must extend Activity class.

Zumry Mohamed
  • 9,318
  • 5
  • 46
  • 51