On Sat, Jul 10, 2010 at 6:31 PM, Mark Murphy <[email protected]> wrote:
> On Sat, Jul 10, 2010 at 5:22 PM, Sebastián Treu
> <[email protected]> wrote:
>>> Then clone the Gallery class in your project and make your changes there.
>>
>> I thought on that, but my 'clone' will be on my package and there's
>> some protected variables that they don't have (or I can't find them)
>> the proper getters and setters.
>
> Odds are those will be on AbsSpinner, which you may have to clone as
> well. If you would need to clone more than those two, then I'd
> consider another direction.


Indeed. I found a solution! Not the best as I want it. I was hoping to
modify a widget to be spreaded and used. That feature is nice. Having
the option to add a "slider" to be pulled out. I have to say that I
was dissapointed after reading the source code of the Gallery widget.
I realized the bad focus behaviour that I mention on another thread,
and the global variables within packages it's not my style. Also, the
impossibility to override or to provide a different filling function
is an unwise choice.

What I have done is to provide to the adapter the drawable I want to
be drawn in the edges. And, set a different background resource and
scale for them. Thought, they will be threated and centered as a
Gallery item. For the jogs I defined a selector so when you click them
you have a different color, and I have the animation turned off for
those positions. So, you see the "scale" animation only on the picture
items.

The problem is that the image is on top of the next item. Can it be put behind?

Here's some stuff:

http://labombiya.com.ar/media/device.png
http://labombiya.com.ar/media/device1.png
http://labombiya.com.ar/media/vid.mpeg

Best regards,
-- 
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to