[android-developers] Re: Gallery usage without using styleable

2009-07-29 Thread HIFI_LEO
I ran into the same issue. The method call is not seen by the compiler. Use an object of the class "Context" to make that method call. If you are continuing the HelloGallery Example, there is a Context object already being used called mContext. So my code looks like this: public ImageAdapter2

[android-developers] Re: Gallery usage without using styleable

2009-06-04 Thread yaiza
On 13 mayo, 20:27, lilbyrdie wrote: > I've answered my own question. Net result is the same, just a > different way of getting to the default theme resources, but it's what > I was missing. > > Within your attrs.xml file, place a block that looks like the > following: > >     >         >     >

[android-developers] Re: Gallery usage without using styleable

2009-06-04 Thread yaiza
Thank, lilbyrdie. It helped me a lot :) The thing is I'm still getting an error in function obtainStyledAttributes, where the compiler says that obtainStyledAttributes(int[]) is undefined. I have that class extending BaseAdapter. What am I missing? Should I be implementing an Interface or somethi

[android-developers] Re: Gallery usage without using styleable

2009-06-04 Thread yaiza
On 13 mayo, 20:27, lilbyrdie wrote: > I've answered my own question. Net result is the same, just a > different way of getting to the default theme resources, but it's what > I was missing. > > Within your attrs.xml file, place a block that looks like the > following: > >     >         >     >

[android-developers] Re: Gallery usage without using styleable

2009-06-04 Thread yaiza
Thank, lilbyrdie. It helped me a lot :) The thing is I'm still getting an error in function obtainStyledAttributes, where the compiler says that obtainStyledAttributes(int[]) is undefined. I have that class extending BaseAdapter. What am I missing? Should I be implementing an Interface or somethi

[android-developers] Re: Gallery usage without using styleable

2009-05-13 Thread lilbyrdie
I've answered my own question. Net result is the same, just a different way of getting to the default theme resources, but it's what I was missing. Within your attrs.xml file, place a block that looks like the following: This basically provides access to the galleryItemBackgr