[android-developers] DatePicker throw java.lang.StackOverflowError when embbeded with TableRow

2009-09-01 Thread FBear
A strange error: when DatePicker is used as child item of , it throws out StackOverflowError and then the application crashes. It would work fine if it is defined outside of . Do not know why ... Is it related to my UTF-8 strings defined in strings.xml? Do anyone know what's going on on eart

[android-developers] Re: Why drawing in View.onDraw not take effect, but does in ViewGroup.dispatchDraw

2009-03-31 Thread FBear
Got it! Thank you! On 3月31日, 下午11时35分, Romain Guy wrote: > For efficiency, layouts do not get their onDraw() method called. To > enable it, call setWillNotDrawEnabled(false) (or set the equivalent > XML attribute to false.) > > > > On Tue, Mar 31, 2009 at 7:15 AM, FBear wr

[android-developers] Why drawing in View.onDraw not take effect, but does in ViewGroup.dispatchDraw

2009-03-31 Thread FBear
des to the override of ViewGroup.dispatchDraw. I know dispatchDraw is a good place to draw something, but I'm just wondering why there's such difference in my practice? Thank you in advance. FBear --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: What is the difference between View.ondraw and View.dispatchdraw?

2009-03-31 Thread FBear
I have the same question. I'm wondering why my codes in MyTableLayout.onDraw() did not take effect, but can do in MyTableLayout.dispatchDraw(). MyTableLayout is derived from TableLayout. On 3月27日, 下午5时54分, "admin.androidsl...@googlemail.com" wrote: > Specifically I want to know if one can give m

[android-developers] Re: how to implement scrolling text?

2009-03-18 Thread FBear
Set the focus on the buttons to make them scrolling. not selecting the text, but use the UP and Down navigator button of the simulator to change the focus ... On 3月10日, 下午1时55分, soniya wrote: > I am talking about this API Demo: API Demos -> Text -> Marquee > > I tried selecting the textbut i

[android-developers] Re: how to implement scrolling text?

2009-03-18 Thread FBear
I implemented a scrollable TextView, named ScrollTextView before Android 1.1R1 with the marquee feature for TextView. It used android.widget.Scroller and attached TextPaint. Here's the source code: http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html It's glad to see

[android-developers] How do you know the FPS of an application?

2009-03-10 Thread FBear
Hi, I often saw here that somebody said how many FPS of his application ran in. I'm so curious that how you know that? Is there any tools in Android SDK to evaluate that? Thank BR FBear --~--~-~--~~~---~--~~ You received this message because you are subscrib

[android-developers] Help to understand LunarLander: Canvas.save & Canvas.restore

2009-03-07 Thread FBear
I dont's know what 'matrix' and 'clip' was saved and then restored before and after rotating the Lander. I just commented out the Canvas.save and Canvas.restore, rebuild and re-install the LunarLander, it seemed to work as before. Would anybody help me to understand why using Canvas.save and Canva

[android-developers] Re: How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-07 Thread FBear
Thank you very much! On 3月7日, 下午5时23分, Romain Guy wrote: > > Do you mean that onDraw(Canvas) will ignore the drawing call in it > > when the affected area is not in the dirty area? > > That's correct. > > > I can hardly believe it it so wise. > > How about the drawing call which affected area ov

[android-developers] Re: How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-07 Thread FBear
t often not worth it. > > > > On Fri, Mar 6, 2009 at 6:37 PM, FBear wrote: > > > android.view.View.invalidate(int l, int t, int r, int b) can mark the > > the area defined by the rect (l,t,r,b) as needing to be drawn. > > But how does View update only the dirty area s

[android-developers] How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-06 Thread FBear
whole view? I read some sources and searched in google developer group. No answer to this question was found. Would anybody please kindly explain that to me? Thanks in advance. FBear --~--~-~--~~~---~--~~ You received this message because you are subscribed to the