[android-developers] Re: StartAnimation on child and OnDraw

2011-06-03 Thread Andrea Richiardi
ven if view are correctly displayed. BTW, I'm targeting Android 2.1-update. Bye. On 2 Giu, 19:00, Andrea Richiardi wrote: > Anyone? > > I really can't figure out what I'm doing wrong... > > The animation doesn't draw. I also have overridden the canAnimate() >

[android-developers] Re: StartAnimation on child and OnDraw

2011-06-02 Thread Andrea Richiardi
imple View or a AdapterView as a container as the latter is a ViewGroup. Maybe ovverriding the onDraw doesn't suffice as it's not called to draw every frame. I'll appreciate any kind of advice / document for me to read on this. Thank you! On 28 Mag, 19:05, Andrea Richiardi wrote: > Hi

[android-developers] StartAnimation on child and OnDraw

2011-05-28 Thread Andrea Richiardi
Hi guys! Here I am again to ask some newbie question :-) I'm trying to build a class that has-a ViewAnimator. For this reason, my onDraw has been overridden like this: protected void onDraw(Canvas canvas) { mAnimator.getCurrentView().draw(canvas); } Now, the ViewAnimator has cool setIn

[android-developers] Re: Problem of Focusing Keeping (I think)

2011-05-28 Thread Andrea Richiardi
By the way, the issue has been added: Issue 16959:ViewAnimator resizing with a 9-patch background On 17 Mag, 23:21, Andrea Richiardi wrote: > Ok, don't know why, but using 9 patched andViewAnimatoris not good. > > I've ended up using a transition between two normal

[android-developers] Re: Problem of Focusing Keeping (I think)

2011-05-17 Thread Andrea Richiardi
Ok, don't know why, but using 9 patched and ViewAnimator is not good. I've ended up using a transition between two normal shapes for my list selector. I think I'll report the problem to developers. Bye guys. On May 17, 10:55 pm, Andrea Richiardi wrote: > Going deep in the

[android-developers] Re: Problem of Focusing Keeping (I think)

2011-05-17 Thread Andrea Richiardi
Going deep in the debug, I've notice that my blue line appears after a msg.target.dispatchMessage(msg). The what is 1000 for this message, but maybe is too generic to be identified. On May 17, 9:39 pm, Andrea Richiardi wrote: > It turn out that the problem is related to those two stat

[android-developers] Re: Problem of Focusing Keeping (I think)

2011-05-17 Thread Andrea Richiardi
this moment on, the line is always drawn, until the View is destroyed (a new View doesn't have the blue line). Furthermore, it seems that this kind of error also enlarge the size of my view. I would like to ask here first and then to submit it to developers. Bye!! On May 15, 7:46 pm, And

[android-developers] Problem of Focusing Keeping (I think)

2011-05-15 Thread Andrea Richiardi
My problem is really difficult to explain actually... I have a ViewAnimator which has some View inside. Views are custom, and each view has its own background. The background is a selector, partly taken from Android source, especially the transition between longpress/normal press (two 9 patch ima

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
Thanks, seriously. I'll search on some Samsung forum whether it's a phone problem. On 18 Mar, 16:36, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 11:34 AM, Andrea Richiardi > > wrote: > > You wouldn't believe it, but it returns 4. > > > Could my phone b

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
You wouldn't believe it, but it returns 4. Could my phone be bugged (I5500 Samsung) ? On 18 Mar, 16:28, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 11:26 AM, Andrea Richiardi > > wrote: > > No worries. > > > But it doesn't work as well. It returns me 4 (

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
No worries. But it doesn't work as well. It returns me 4 (here is 4 o'clock PM). On 18 Mar, 16:16, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 11:13 AM, Andrea Richiardi > > wrote: > > I can't find any java.util.Time class in my Android sdk...maybe you &g

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
I can't find any java.util.Time class in my Android sdk...maybe you wanna suggent java.util.Date ? On 18 Mar, 15:53, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 10:42 AM, Andrea Richiardi > > wrote: > > Hi guys, I would like to ask you something about the Time class. &

[android-developers] Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
Hi guys, I would like to ask you something about the Time class. I'm trying to grab time doing: Time now = new Time(); now.setToNow(); But if I have my phone set to the AM/PM behaviour, now.hour returns me a < 12 number, even if noon is gone by. Am I wrong doing something? Or the native method s

[android-developers] Re: Assign LayoutParams from Xml

2011-03-18 Thread Andrea Richiardi
It works like a charm! Thanks! On 17 Mar, 21:25, Andrea Richiardi wrote: > Thanks guys, I missed that article. > > I'll try! > > On 17 Mar, 18:16, Kostya Vasilyev wrote: > > > 17.03.2011 20:02, TreKing ?: > > > > I don't think you add the xmlns

[android-developers] Re: Assign LayoutParams from Xml

2011-03-17 Thread Andrea Richiardi
Thanks guys, I missed that article. I'll try! On 17 Mar, 18:16, Kostya Vasilyev wrote: > 17.03.2011 20:02, TreKing ?: > > > > > I don't think you add the xmlns declaration to your custom view. > > That's for Android defined views. > > The repeated xmlns:android is unnecessary, but harmless.

[android-developers] Re: Assign LayoutParams from Xml

2011-03-17 Thread Andrea Richiardi
_view, parent, false); Fails with a InflateException...binary file at line 2 of my xml. The class is extending a RelativeLayout as before. On Mar 17, 5:32 pm, TreKing wrote: > On Thu, Mar 17, 2011 at 11:07 AM, Andrea Richiardi < > > andrea.richia...@gmail.com> wrote: > > A

[android-developers] Re: Assign LayoutParams from Xml

2011-03-17 Thread Andrea Richiardi
y from the xml "inside" the Context only constructor. At least, I'm trying to implement it this way... In any case, thanks for the fast answer! :-) On 17 Mar, 16:54, TreKing wrote: > On Thu, Mar 17, 2011 at 10:46 AM, Andrea Richiardi < > > andrea.richia...@gmail.c

[android-developers] Assign LayoutParams from Xml

2011-03-17 Thread Andrea Richiardi
Hi guys, I'll to expose my trouble here. I'm convinced that I could do the same thing in another way, but I would like to know if my approach is correct as well. I want to build a custom class that extends RelativeLayout and implements a Interface MyInterface. I have the complete definition of t