I had this same problem.  After days of searching online, I found this
workaround:

- Create a resources.xml file with the following contents:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-stylable name="Gallery1">
        <attr name="android:galleryItemBackground" />
    </declare-stylable>
</resources>

- Instead of using android.R.styleable.Gallery1 just reference
R.styleable.Gallery1

Hope this helps!  I set this up a long time ago... If I missed something let
me know so I can post that missing information.

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Wed, Aug 26, 2009 at 7:02 PM, steve <[email protected]> wrote:

>
> I've been working through the Hello,Views examples.  They are great
> resource - thanks to those that created them.
>
> There is a problem with the setiton on the example using
> android.R.sytleable
>
> public ImageAdapter(Context c) {
>        mContext = c;
>        TypedArray a = obtainStyledAttributes
> (android.R.styleable.Theme);
>        mGalleryItemBackground = a.getResourceId(
>                android.R.styleable.Theme_galleryItemBackground, 0);
>        a.recycle();
>    }
>
> Eclipse reports that R.styleable cannot be resolved
>
> There are lots of messages on the web about the problem.  Finally I
> found one that reported android.R.styleable. is no longer supported in
> sdk 1.5
>
>
> http://mac.softpedia.com/progChangelog/Google-Android-SDK-Changelog-31208.html
>
> If this is officially true, it would really be helpful to people
> trying to learn Android programming to have some official notification
> in the example and a revised workaround approach.  Otherwise a lot of
> people will be wasting a lot of time.
>
> thanks
>
> >
>

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

Reply via email to