helloGallery错误

时间:2011-03-03 18:48:59

标签: android

  

可能重复:
  Android Hello, Gallery tutorial — “R.styleable cannot be resolved”

喜。我在android开发者网站上的helloGallery教程出错...我的错误出现在ImageAdapter类中,特别是public ImageAdapter ..

 public ImageAdapter(Context c) {
        mContext = c;
        TypedArray a = c.obtainStyledAttributes(R.styleable.Gallery1);
        mGalleryItemBackground = a.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 0);
        a.recycle();
    }

,错误为R.styleable cannot be resolved

请帮忙吗?谢谢

1 个答案:

答案 0 :(得分:2)

也许这已经是你问题的答案了: Android Hello, Gallery tutorial -- "R.styleable cannot be resolved"