[android-developers] Re: Performance of local variable vs. class field

2009-01-06 Thread Dave Kong
a local variable in contrast can be done just by using the existing value in a register. On Mon, Jan 5, 2009 at 3:44 PM, Dave Kong davek...@gmail.com wrote: In the Notepad Exercise 2, there is a section about perf (see excerpt) *Note:* We assign the mNotesCursor field to a local variable

[android-developers] Performance of local variable vs. class field

2009-01-05 Thread Dave Kong
In the Notepad Exercise 2, there is a section about perf (see excerpt) *Note:* We assign the mNotesCursor field to a local variable at the start of the method. This is done as an optimization of the Android code. Accessing a local variable is much more efficient than accessing a field in the

[android-developers] How to inflate AND replace *this* with the inflated tree?

2008-12-22 Thread Dave Kong
Hi all, Perhaps this has been posted but I couldn't find the answer through searching. So would appreciate a redirect if that's the case. I love to inflate my views when I construct a custom Layout, since I can have the behavior in code but presentation defined in xml files. However, I find that

[android-developers] Re: How to inflate AND replace *this* with the inflated tree?

2008-12-22 Thread Dave Kong
/   Button / /merge class MyLayout extends LinearLayout {   // adds the two buttons as children of this   inflate(R.layout.mylayout, this, true); } On Mon, Dec 22, 2008 at 6:36 PM, Dave Kong davek...@gmail.com wrote: Hi all, Perhaps this has been posted but I couldn't find

[android-developers] Re: How to enable screen transition when launching Activity

2008-11-30 Thread Dave Kong
Will it be? Is it disabled due to possible bug or patent issues? On Sun, Nov 30, 2008 at 12:59 AM, Dianne Hackborn [EMAIL PROTECTED]wrote: Inter-activity transitions are not supported at this point, sorry. On Tue, Nov 25, 2008 at 11:51 PM, Tomei Ningen [EMAIL PROTECTED]wrote: This question

[android-developers] cannot change size of TextView inside FrameLayout

2008-11-03 Thread Dave Kong
I have a layout file where part of it is below. 2 TextViews nested inside the same FrameLayout so that the 1st one (being lower in the Z- order) shows up behind the text (which has transparent background). FrameLayout android:id=@+id/upper_status android:layout_width=fill_parent