[android-developers] Re: Custom View using XML layout EditTexts: SavedState conflict

2009-09-28 Thread Ben Roberts
. If it's by ID I have some ideas of how to fix this. I started a thread on anddev (http://www.anddev.org/viewtopic.php? p=27310) and I'll post my workaround there when I write it. Ben On Sun, Sep 27, 2009 at 10:02 PM, Ben Roberts divestocl...@gmail.com wrote: I'm trying to figure out how

[android-developers] Custom View using XML layout EditTexts: SavedState conflict

2009-09-27 Thread Ben Roberts
I'm trying to figure out how to properly make a custom view consisting of a LinearLayout and some children, one of which is a EditText. To make this simple, I've pared down the code to the simplest possible case. res/layout/bughunt.xml is a basic definition of a custom view; it's just a layout

[android-developers] Re: Spinner position incorrect after Activity resumes

2009-06-04 Thread Ben Roberts
, does anyone know of an open source app that uses a Spinner on a layout from which another Activity can be launched? On Jun 1, 9:17 pm, Ben Roberts divestocl...@gmail.com wrote: I'm quoting an old message from last year because it's EXACTLY the problem I'm having: Hi all, I have a spinner

[android-developers] Adapting the Music app's TouchInterceptor

2009-06-01 Thread Ben Roberts
I'm trying to write an app which will present a list of items to the user that can be reordered, so I want to use the same code that's used in the Music app to reorder items in a playlist. This is controlled via com.android.music.TouchInterceptor, which extends ListView. I copied this file into

[android-developers] Re: Adapting the Music app's TouchInterceptor

2009-06-01 Thread Ben Roberts
Never mind I figured it out. I had to override the builtin layout with my own layout which assigned a TouchInterceptor as the ListView for the ListActivity. On May 30, 3:48 pm, Ben Roberts divestocl...@gmail.com wrote: I'm trying to write an app which will present a list of items to the user

[android-developers] Spinner position incorrect after Activity resumes

2009-06-01 Thread Ben Roberts
I'm quoting an old message from last year because it's EXACTLY the problem I'm having: Hi all, I have a spinner in a dialog. Calling spinner.setSelection(int) correctly sets the spinner just after opening the app. If I reopen the dialog after making another spinner.setSelection(int) call,