Hello,

I've been following the Views tutorials included in the android
developer site:
http://developer.android.com/guide/t...o-gallery.html

When testing the "Hello Gallery" view, I get the compile-time error:
"android.R.styleable cannot be resolved"

I searched for this error on this group but is wasn't answered.
Can anyone help?

The problem reference occurs in the imageAdapter class that is
appended after the onCreate() method in the HelloGallery class:

public class ImageAdapter extends BaseAdapter
{
...
TypedArray a = obtainStyledAttributes(android.R.styleable.Theme);
}

Strangely enough, when I insert this line into the onCreate() method
at the start of the package, there is no problem. It seems that the
android.R class is not known to this class.

Thanks,
Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to