1. Are you ready for the Galaxy S20? Here is everything we know so far!

Problem with Grid View

Discussion in 'Android Development' started by TheCompBoy, Nov 3, 2010.

  1. TheCompBoy

    TheCompBoy Android Enthusiast
    Thread Starter

    I wanted to create a grid view from the tutorial from this web site : Grid View | Android Developers


    And the problem i got was when i should write in which pictures that should show i wrote this as the tutorial said:

    private Integer[] mThumbIds = {
    R.drawable.sample_2, R.drawable.sample_3,
    R.drawable.sample_4, R.drawable.sample_5,
    R.drawable.sample_6, R.drawable.sample_7,
    R.drawable.sample_0, R.drawable.sample_1,
    R.drawable.sample_2, R.drawable.sample_3,
    R.drawable.sample_4, R.drawable.sample_5,
    R.drawable.sample_6, R.drawable.sample_7,
    R.drawable.sample_0, R.drawable.sample_1,
    R.drawable.sample_2, R.drawable.sample_3,
    R.drawable.sample_4, R.drawable.sample_5,
    R.drawable.sample_6, R.drawable.sample_7

    But i got this error message : Cannot be resoloved or is not in a field

    Any ideas or help here?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. TheCompBoy

    TheCompBoy Android Enthusiast
    Thread Starter

    Err.. Thanks..
     
Loading...

Share This Page

Loading...