[android-beginners] Re: SurfaceView -Memory Creation

2009-10-12 Thread Romain Guy
initialisation to Create a Window and Pixmap Surface is Happening ?? Does it call GLCanvas for Surface Creation or it Directly access the Memory from the GPU ?? If It is allocating Memory Directly from the GPU what is GlCanvas Used For ?? Thanks in advance -- surya -- Romain Guy Android

[android-beginners] Re: Best way to reposition contents of ListView at the top?

2009-10-08 Thread Romain Guy
has previously scrolled down in the ListView then the scrolling is not then reset to the top - I can see why this is the way it is (to support incremental changes to the contents). How to programmatically set the contents to appear at the top of the ListView? -- Romain Guy Android

[android-beginners] Re: Best way to reposition contents of ListView at the top?

2009-10-08 Thread Romain Guy
1. Does this still work if the list is empty? The docs don't specify. Yes. 2. Is this better than just resetting the adapter? Much much much much much more efficient. On Oct 9, 11:27 am, Romain Guy romain...@google.com wrote: setSelection(0) On Thu, Oct 8, 2009 at 8:14 PM, westmeadboy

[android-beginners] Re: Skipping the long load time by having the emulator on all the time

2009-10-07 Thread Romain Guy
the program into it every time I compile, so I wouldn't have to wait for the boot up time of the emulator? All tips and tricks are definitely welcome. Thank you. - Mika -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I

[android-beginners] Re: Adding Undo feature in FingerPaint app bundled with APIdemos.

2009-10-07 Thread Romain Guy
. How do I undo my drawings on canvas? Please help. Thanks. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I

[android-beginners] Re: CheckBox with Background attribute renders incorrectly?

2009-10-05 Thread Romain Guy
, boolean isChecked)   {     if (isChecked)   m_checkBox.setText(Checkbox is checked);     else   m_checkBox.setText(Checkbox is unchecked);   } } -- Romain Guy Android framework engineer romain...@android.com Note: please

[android-beginners] Re: Why is Google launching Micello on the iPhone?

2009-09-30 Thread Romain Guy
This is not an app from Google. On Wed, Sep 30, 2009 at 4:50 PM, cellurl gpscru...@gmail.com wrote: Why is Google launching Micello on the iPhone? http://news.slashdot.org/story/09/09/30/2052258/Google-Wants-to-Map-Indoors-Too -- Romain Guy Android framework engineer romain

[android-beginners] Re: Doc and Samples typos and suggestions?

2009-09-29 Thread Romain Guy
these onto the Google Android doc team? Graham -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see

[android-beginners] Re: Focus android widget.

2009-09-25 Thread Romain Guy
No change needed, make the widget focusable/clickable. On Sep 25, 2009 12:05 AM, Manjunatha M man...@gmail.com wrote: Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I

[android-beginners] Re: Setting a view to be sqare without hardcoding dimensions

2009-09-24 Thread Romain Guy
Create a custom View and implement onMeasure to achieve what you want. On Sep 24, 2009 11:03 AM, Daniel daniel.corm...@gmail.com wrote: I'm trying to create a layout using XML where there is a view that is a square that fills the width of the activity in portrait mode without setting any values

[android-beginners] Re: Gallery View performance

2009-09-24 Thread Romain Guy
The fix will probably not hppen for Eclair, sorry :( On Sep 23, 2009 11:47 PM, Justin Anderson janderson@gmail.com wrote: Ok, thanks! -- There are only 10 types of people in the world... Those who know binary and those who

[android-beginners] Re: Android 1.6 SDK is here!

2009-09-16 Thread Romain Guy
://android-developers.blogspot.com/2009/09/android-16-sdk-is-here... Enjoy! -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private

[android-beginners] Re: Gallery Child Count Problem

2009-09-14 Thread Romain Guy
this problem and/or found a solution to this? Thanks in advance, Justin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public

[android-beginners] Re: Gallery Child Count Problem

2009-09-14 Thread Romain Guy
?  If that is the case, what can I do to get the view I want? No, it means the View at index 0 shows the data of the item at position 14 in your adapter. You can use getFirstVisiblePosition() to convert back and forth between index and positions. -- Romain Guy Android framework engineer romain...@android.com

[android-beginners] Re: Gallery Child Count Problem

2009-09-14 Thread Romain Guy
help.  It has helped me understand how things work and I now know how to proceed to get the results I want. Thanks, Justin On Mon, Sep 14, 2009 at 1:25 PM, Romain Guy romain...@google.com wrote: You are confusing views and items from the adapter. If I have 20 items, and scroll to the 16th

[android-beginners] Re: Gallery Child Count Problem

2009-09-14 Thread Romain Guy
:13 pm, Romain Guy romain...@google.com wrote: pointToPosition() does exactly what it was meant to do: it converts a point to a position, that is an index inside your adapter. And it would be a terrible API on the Adapter itself. To get the index of a view using pointToPosition() just subtract

[android-beginners] Re: How to debug crash on rotate

2009-09-12 Thread Romain Guy
would I begin to debug what is happening? What should I look for? How do I gather a trace? It seems the crash comes at the onSuspend event. Thanks for any ideas. -Mike -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I

[android-beginners] Re: unsubscribe from this group

2009-08-29 Thread Romain Guy
: Will anybody COMPETENT in this group PLEASE DO unsubscribe me from THIS group. This is really becoming very annoying. -- Bästa hälsningar Veniamin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide

[android-beginners] Re: How to set a TextView to look like the home screen icon text

2009-08-26 Thread Romain Guy
set in the manifest on the application appears under the icon with a gray background.  Does anyone know how to style a TextView or some other View Widget to look like the text showing under an application icon?  I would like to know. Thanks and regards, Beth -- Romain Guy Android

[android-beginners] Re: How do I split up or separate large XML layout files

2009-08-24 Thread Romain Guy
           android:layout_height=fill_parent           Tab1.xml           Tab2.xml           Tab3.xml        /FrameLayout    /LinearLayout /TabHost -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide

[android-beginners] Re: Attn Google: How about throwing a beta release of Android 2.0 SDK?

2009-08-21 Thread Romain Guy
a beta version of Android 2.0 SDK for developers?  Don't the folks at The Weather Channel already have it? It would be nice if developers have the option of working on 1.5 or 2.0. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions

[android-beginners] Re: OnKey API

2009-08-16 Thread Romain Guy
primaryCode, int[] keyCodes) ; of KeyboardView.OnKeyboardActionListener class. What does the Keycodes means? Is it ASCII code or Unicode. please help. Android Contributor Manjunath. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions

[android-beginners] Re: OnKey API

2009-08-16 Thread Romain Guy
, Aug 17, 2009 at 8:51 AM, Romain Guy romain...@google.com wrote: Hi, It's neither, the keycode is the code of the key as defined in the KeyEvent class. For instance keyCode == KeyEvent.KEYCODE_ENTER means the pressed key was the enter key. On Sun, Aug 16, 2009 at 8:06 PM, manjunath

[android-beginners] Re: Getting ListView position in touch mode

2009-08-13 Thread Romain Guy
variable if that is the case? Thanks, Greg Hedin -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can

[android-beginners] Re: RelativeView

2009-08-10 Thread Romain Guy
. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide

[android-beginners] Re: Why XML to define layouts/components?

2009-08-07 Thread Romain Guy
to the group charter and FAQ as they currently go into 404. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can

[android-beginners] Re: Why XML to define layouts and components?

2009-08-06 Thread Romain Guy
in a variable :) Which also leads me to wonder how come Android uses the old type- unsafe int enum pattern Because enums are very costly. and also, why method chaining isn't used to greater effect. That's a very vague statement. Where should it be used more? -- Romain Guy Android framework

[android-beginners] Re: Why XML to define layouts and components?

2009-08-06 Thread Romain Guy
Effective Java recommendation). Surely that could be abstracted out at the Dalvik level, giving programmers better type- safety while remaining super efficient?! Surely, but not at the moment and not in the near future. We work with constraints and this is one of them. -- Romain Guy Android

[android-beginners] Re: Port AbsoluteLayout to any other Layout to draw at x,y position

2009-08-01 Thread Romain Guy
It won't be undeprecated. Also the Home sample in the SDK shows how to write custom layouts. On Aug 1, 2009 6:48 PM, monsoon steve...@unimelb.edu.au wrote: Until such a tutorial is available, though, I would just stick with AbsoluteLayout for now. I once wrote a custom layout manager for Swing,

Re: Automatic Updates - iphone vastly superior (Was Re: [android-beginners] Re: Availability of Developer Phone.)

2009-07-25 Thread Romain Guy
. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

Re: Automatic Updates - iphone vastly superior (Was Re: [android-beginners] Re: Availability of Developer Phone.)

2009-07-25 Thread Romain Guy
for updates. I guess the carrier is just pushing people onto their plans or maybe the just don't understand well. Shawn -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All

[android-beginners] Re: Mutate Drawable

2009-07-23 Thread Romain Guy
               android:src=@drawable/bluerect                android:layout_marginTop=265.0px                android:layout_marginLeft=50.0px                / /RelativeLayout -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions

[android-beginners] Re: Mutate Drawable

2009-07-23 Thread Romain Guy
transparency. I've thrown in a bunch of log statements to prove that the code is actually getting to the setAlpha commands but when I run it in the emulator it just shows the rectangles as constantly opaque. Any thoughts? On Jul 23, 11:55 am, Romain Guy romain...@google.com wrote: mutate

[android-beginners] Re: Mutate Drawable

2009-07-23 Thread Romain Guy
clicks. The transparency is also supposed to change during the OnSeekBarChanged--OnProgressChanged method. On Jul 23, 2:18 pm, Romain Guy romain...@google.com wrote: I don't see you do anything with rect1 and rect2?? On Thu, Jul 23, 2009 at 2:14 PM, Erinerin.rosenb...@artificialmuscle.com

[android-beginners] Re: Mutate Drawable

2009-07-23 Thread Romain Guy
, but how do I go about doing that? Thanks and sorry for the stupid/very basic questions. On Jul 23, 2:30 pm, Romain Guy romain...@google.com wrote: Yes you do change their alpha but I don't see these drawables attached to any view or even being drawn manually. On Thu, Jul 23, 2009 at 2:27

[android-beginners] Re: RadioButton setTextColor doesn't work during runtime

2009-07-23 Thread Romain Guy
-- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

Re: 答复: [android-beginners] fillpolygon for Canvas?

2009-07-21 Thread Romain Guy
for any help:) [不包含全部原始邮件] -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: Is it possible to override Android's green and red buttons?

2009-07-20 Thread Romain Guy
No you cannot. On Jul 20, 2009 12:52 PM, szantaii szant...@gmail.com wrote: Hi, My question is that is it possible to override the physical green and red buttons on Android which by default are used to accept and end calls. For example, in my own activity those buttons won't serve as accept

[android-beginners] Re: AsyncTask Misbehaviours

2009-07-10 Thread Romain Guy
You are supposed to be passing in strings to execute(), and you're not. With varargs you can pass no value if you wish. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All

[android-beginners] Re: Android emu on Mac OS X 10.5.7

2009-07-10 Thread Romain Guy
me ? thanks. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: ListView: Default highlight the item

2009-07-07 Thread Romain Guy
without any user action. How can i do that ? I tried listview.setSelection(0) method but it is not actually highlighting that first item. Can someone help me on this ? -PD -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me

[android-beginners] Re: Adding a view to a viewgroup

2009-07-07 Thread Romain Guy
);                 canvas.drawCircle(this.getLeft(), this.getTop(), this.r, mPaint);         } }- Hide quoted text - - Show quoted text - -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private

[android-beginners] Re: GUI test tool/framework for Android?

2009-07-07 Thread Romain Guy
Updates, $35/Year -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: GUI test tool/framework for Android?

2009-07-07 Thread Romain Guy
It was pre-1.0, we were tired, we were busy... so I don't know :) On Tue, Jul 7, 2009 at 3:53 PM, Mark Murphymmur...@commonsware.com wrote: Romain Guy wrote: There's a TouchUtils class to simulate taps, drags, etc. Wow, I missed that. Thanks! Out of curiosity, any ideas why the touch ones

[android-beginners] Re: Widgets User input.

2009-07-07 Thread Romain Guy
_Android Programming Tutorials_ Version 1.0 In Print! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can

[android-beginners] Re: XML Layout Language

2009-07-02 Thread Romain Guy
EditText and Button), with details available for most of them. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me

[android-beginners] Re: Using AsyncTask

2009-07-01 Thread Romain Guy
Need Android talent? Ask on HADO!http://wiki.andmob.org/hado -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I

[android-beginners] Re: onCreateContextMenu ListView Confusion

2009-06-29 Thread Romain Guy
You do not have to use ListActivity to use ListView. On Mon, Jun 29, 2009 at 10:48 AM, Sikussikusra...@gmail.com wrote: theDigitalAngel: When you do ListView, you must extend ListActivity. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private

[android-beginners] Re: Sense UI

2009-06-24 Thread Romain Guy
on the developme G1? thanks. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: choicemode and list refresh

2009-06-18 Thread Romain Guy
a reason why this should happen and I don't find it so good for performance especially if dealing with big list. It's normal and actually pretty well optimized. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time

[android-beginners] Re: Layout component width measure returns zero from onCreate

2009-06-18 Thread Romain Guy
axis. How do I get those numbers? What exactly do the attributes look like in XML? Thanks and regards, Beth On Jun 17, 10:40 pm, Romain Guy romain...@google.com wrote: That's my point, don't try to compute the center position, just let the animation framework do it for you by declaring your

[android-beginners] Re: Layout component width measure returns zero from onCreate

2009-06-17 Thread Romain Guy
view so it is the same as the portrait orientation. What is the right way? On Jun 11, 6:08 pm, Romain Guy romain...@google.com wrote: You cannot do that from onCreate(), you have to wait for the first layout to happen. Besides, you don't need to hard code values in animation since you can

[android-beginners] Re: ListAdapter getView working in a weird way.

2009-06-16 Thread Romain Guy
is the new one. But what happened with the order? If I keep adding item the view seems to appear in different position without any specific rule. Any idea? Thanks Andrea -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I

[android-beginners] Re: Is referencing resources across resource files dependent on the filename?

2009-06-12 Thread Romain Guy
at R.java under the gen folder I can see the layout2 id. Pointers to further information gladly appreciated; I have browsed the web but was unable to find any further help on this. Many thanks, Nigel Eke -- http://nigel-eke.com/ -- Romain Guy Android framework engineer romain

[android-beginners] Re: Layout component width measure returns zero from onCreate

2009-06-11 Thread Romain Guy
executing from onCreate?  Is there something in the window's drawing sequence that I need to workaround? Any tips or suggestions are most welcome. Regards, Beth -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time

[android-beginners] Re: onListItemClick() does not work if I extend ArrayAdapter

2009-06-08 Thread Romain Guy
)); Then the onListItemClick Works ! So what is the problem with onListItemClick and extending ArrayAdapter ?? Thanks -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions

[android-beginners] Re: Image quality

2009-06-01 Thread Romain Guy
?) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time

[android-beginners] Re: Getting a reference to the View corresponding to the id passed to setContentView()

2009-06-01 Thread Romain Guy
It's the appropriate way to do it. On Jun 1, 2009 11:37 AM, westmeadboy westmead...@yahoo.co.uk wrote: I have one main.xml layout (top level is a LinearLayout) resource and I inflate this in the usual way within Activity.onCreate(): setContentView(R.layout.main); Now, I want to get a

[android-beginners] Re: EditText not honoring width attribute

2009-05-24 Thread Romain Guy
Unfortunately The layout is honored such that all of the EditText fields expand so that all of them are as big as the largest 1. That is exactly the purpose of TableLayout. If you do not want this behavior, do not use TableLayout. -- Romain Guy Android framework engineer romain

[android-beginners] Re: An important thing to know about live folders..

2009-05-23 Thread Romain Guy
do occasionally. Pardon my irony. Hope this saves you an hour, a day, a ... -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums

[android-beginners] Re: gridview column size

2009-05-23 Thread Romain Guy
to fit the data and larger columns expand as necessary.  Any ideas would be helpful. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public

[android-beginners] Re: Java Swing/AWT class on Android

2009-05-18 Thread Romain Guy
package in Android (Dalvik VM)? Has anybody tried this out? Regards, Vaidya -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums

[android-beginners] Re: A lot of graphics in drawable-folder

2009-05-16 Thread Romain Guy
thedrawablefolder :-) On 8 Maj, 17:18, Romain Guy romain...@google.com wrote: There is no other way at the moment. For what it's worth, the framework's drawables folders contains about 700 files :) On Fri, May 8, 2009 at 7:05 AM, kaloer mkal...@gmail.com wrote: Hi, I have plenty of image files

[android-beginners] Re: Layout gravity - bug in portrait mode?

2009-05-12 Thread Romain Guy
       /LinearLayout /ScrollView -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: setVisibility crashes (on some objects)

2009-05-11 Thread Romain Guy
comment out the txtFilenam INVISIBLE line, the emulator crashes with a Sorry. The application has stopped unexpectedly... and Eclipse show a lost connection. Eclipse is ver 3.4.2. and I believe the Android SDK is current (downloaded a week or so ago). Any ideas??? Thanks... -- Romain Guy

[android-beginners] Re: Layout gravity - bug in portrait mode?

2009-05-09 Thread Romain Guy
fill_parent means be as big as your parent, not take the remaining space. On May 9, 2009 12:11 PM, Anna PS annapowellsm...@googlemail.com wrote: OK - I know what's causing the problem, but I don't know how to fix it. :-/ If the PNG image in the ImageView is less than 320 pixels wide (the width

[android-beginners] Re: A lot of graphics in drawable-folder

2009-05-08 Thread Romain Guy
it very unmanageable. But is there a better to organize the graphics, like folders, groups or such things? Or is it a good idea to not use the drawable resource, but instead create a xml file in the application directory for each skin with the image-links? -- Romain Guy Android framework

[android-beginners] Re: How to get last added TextView of a ListView after ArrayAdapter.add()

2009-05-05 Thread Romain Guy
the last textview in order to change its drawable left property, but of course I cannot do it there. Is there any way to force the UI refresh, so the getChildCount() returns me what i need? Any alternative solutions? Thank you in advance! -- Romain Guy Android framework engineer romain

[android-beginners] Re: AnimationDrawable not starting

2009-05-03 Thread Romain Guy
. ~thanks -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: Where are the new Widgets in Android 1.5?

2009-05-01 Thread Romain Guy
-- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: ScrollView to support

2009-04-30 Thread Romain Guy
support horizontal or vertical scrollbar, but i want to support horizontal and vertical scroolbar together. Does any sample code can help it. Thanks a lot. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time

[android-beginners] Re: ListView Activity, fill space

2009-04-28 Thread Romain Guy
   | |-| |       ListItem      | |       ListItem      | |       ListItem      | |   [free space]    | |   [free space]    | |   [free space]    | |-| |         Button      | |-| Any suggestions please? -- Romain Guy Android framework

[android-beginners] Re: Cupcake version 1.5 to firmware update on phone

2009-04-25 Thread Romain Guy
. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. -- Romain Guy Android framework engineer romain...@android.com Note: please

[android-beginners] Re: error inflating xml layout file

2009-04-24 Thread Romain Guy
://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions

[android-beginners] Re: error inflating xml layout file

2009-04-24 Thread Romain Guy
And if it's a top-level class, the static is indeed unnecessary. But the class= attribute in XML should not have a $ anywhere in hte value. On Fri, Apr 24, 2009 at 5:11 AM, Romain Guy romain...@google.com wrote: It HAS to be a static class to be internal and publicly accessible. The problem

[android-beginners] Re: how to hook into resize events?

2009-04-01 Thread Romain Guy
setOnSizeChangedListener where I can update my various TextViews? Or is there another established pattern for this? cheers -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All

[android-beginners] Re: ListView and TextView in a LinearLayout - issue

2009-03-31 Thread Romain Guy
       android:layout_width=fill_parent        android:layout_height=wrap_content        / /LinearLayout -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted

[android-beginners] Re: How to show Scrollbar on Left side of screen

2009-03-28 Thread Romain Guy
code that I need to enhance? Yes you need to modify the framework, and you can discuss the best approach on android-framework. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All

[android-beginners] Re: How to draw a broken line in Android?

2009-03-26 Thread Romain Guy
printing. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: need help in getting screen coordinates of a view

2009-03-22 Thread Romain Guy
urgent.Please help. Thanks Kavitha -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer

[android-beginners] Re: Is there a Color Picker widget in Android?

2009-03-19 Thread Romain Guy
No, there's no such widget by default. You can find one in the ApiDemos though. On Thu, Mar 19, 2009 at 2:01 AM, Oceanedge newsforhar...@gmail.com wrote: Hi, Is there a Color Picker widget developer can call in Android? Thanks! -- Romain Guy Android framework engineer romain

[android-beginners] Re: How to set EditText to be read-only?

2009-03-16 Thread Romain Guy
setEnabled(false). You may want a simple TextView inside too. On Sun, Mar 15, 2009 at 11:13 PM, frizzo rg...@vbrad.com wrote: I can't seem to find a method that does that.  Is there a way to do it? Thanks. -- Romain Guy Android framework engineer romain...@android.com Note: please

[android-beginners] Re: How do I set the focus to a widget?

2009-03-16 Thread Romain Guy
View.requestFocus() On Sun, Mar 15, 2009 at 11:14 PM, frizzo rg...@vbrad.com wrote: I am trying to set the focus to a EditText widget, but I don't see any way to do it.  What am I missing? Thanks. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send

[android-beginners] Re: How to set EditText to be read-only?

2009-03-16 Thread Romain Guy
needed when certain conditions are met. Thanks. On Mar 15, 11:14 pm, Romain Guy romain...@google.com wrote: setEnabled(false). You may want a simple TextView inside too. On Sun, Mar 15, 2009 at 11:13 PM, frizzo rg...@vbrad.com wrote: I can't seem to find a method that does

[android-beginners] Re: Layout Problem Listview in Scrollview

2009-03-12 Thread Romain Guy
Thanks for Help Chris -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: Layout Problem Listview in Scrollview

2009-03-12 Thread Romain Guy
at the first page :) so i did not the same. thanks chris On Mar 12, 7:48 pm, Romain Guy romain...@google.com wrote: Do NOT put a ListView inside a ScrollView. ListView already handles scrolling, you're only going to run into trouble. On Thu, Mar 12, 2009 at 4:37 AM, guruk ilovesi...@gmail.com

[android-beginners] Re: Different UI based on orientation

2009-03-11 Thread Romain Guy
should disappear when the keyboard is opened, since the keyboard will be used for that. How can this be done in the code? Do I need 2 different XML files for the layout and somehow swap between the two? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send

[android-beginners] Re: Question regarding linearlayout

2009-03-11 Thread Romain Guy
. Anyboday have suggestion? Thank you! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see

[android-beginners] Re: while loop in main thread blocks listener updates?

2009-03-04 Thread Romain Guy
mylocationmanager is also running in the main thread, he cant't retrieve his location updates. Does somebody know how to deal with this? I think I have to make use of threads somewhere, but I don't know where exactly. Thanks in advance! kind regards, Denzel -- Romain Guy Android

[android-beginners] Re: How-To Remove An App Icon from Home Page?

2009-02-26 Thread Romain Guy
How do you move an Icon from one of the three to another? You don't, IIUC.  They will fill up when you have enough icons on your home page. You do. Long click the icon, drag it to the edge of the screen, wait for a couple of seconds and it will scroll to the next screen. -- Romain Guy

[android-beginners] Re: using an API not in the SDK

2009-02-22 Thread Romain Guy
=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should

[android-beginners] Re: setting a listview height when items are below it

2009-02-17 Thread Romain Guy
android:text=@string/ui_contact_list_close_str / /RelativeLayout /RelativeLayout -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted

[android-beginners] Re: How to reorder a ListView

2009-02-16 Thread Romain Guy
, position 4 to position 1 of the list. Is this possible? Thanks. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I

[android-beginners] Re: Unable to check correct row when using CheckedTextView

2009-02-16 Thread Romain Guy
-- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-02-16 Thread Romain Guy
a lot of complains... Have you installed a custom build? If so OTA wont get to you, you will have to manually install an upgraded version of the custom build JesusFreke's new version has already hit, check it out. -- Romain Guy Android framework engineer romain...@android.com Note

[android-beginners] Re: My fix for white on white multi choice items - Re: WTF! My dialog multichoice items have white text on white list background!

2009-02-16 Thread Romain Guy
to pass an id as a drawable. I used android.R.color.background_light. Oh yea, and any labels (TextViews) inside the activity will have to manually bet set to a darker color (as they are gray in the black theme, which doesn't show up well). Hope this helps someone! -- Romain Guy Android

[android-beginners] Re: Unable to check correct row when using CheckedTextView

2009-02-15 Thread Romain Guy
) { super.onListItemClick(l, v, position, id); CheckedTextView cbox = (CheckedTextView)v.findViewById(R.id.title); if(cbox.isChecked()) cbox.setChecked(false); else cbox.setChecked(true); v.refreshDrawableState(); } -- Romain Guy

[android-beginners] Re: Problems w/ Custom List Selector

2009-02-13 Thread Romain Guy
with this? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them

[android-beginners] Re: The Widget used for the Main Menu in android Home Screen

2009-02-05 Thread Romain Guy
to be used in the SDK. Could anyone provide me details on this? - Steve -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I

[android-beginners] Re: How to align a widget to the bottom of the screen in a FrameLayout?

2009-02-05 Thread Romain Guy
, property values like wrap_content, fill_parent, center_vertical, center_horizontal, etc... I feel like these are keys to Android and not thoroughly grokking them is an impediment to development. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send

  1   2   >