Re: [android-developers] Re: Spinner selection dialog without spinner
On Wed, Jun 23, 2010 at 12:40 PM, maik maik.wi...@googlemail.com wrote: Where do I get the source code you mentioned? I used Google Code Search: http://www.google.com/codesearch Include the package:android clause in there, and it will restrict your search to Android-related code. Otherwise, it's pretty much the standard Google search syntax, from what I can tell. You can download all the source here: http://source.android.com But it's rather big. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Spinner selection dialog without spinner
On Tue, Jun 22, 2010 at 4:23 PM, maik maik.wi...@googlemail.com wrote: I now read all my database values into an array and use ArrayAdapter to fill the AlertDialog. That's not a good idea. You waste a fair bit of memory and CPU time this way. The problem is, the list shows the list entries with white text on a white background (only while clicking an entry which makes the background orange reveals the text of the entry). What is my error here? Try the setSingleChoiceItems() version that takes a Cursor. This simultaneously lets you use a built-in layout that works and avoids copying the data into the ArrayAdapter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Spinner selection dialog without spinner
On Tue, Jun 22, 2010 at 4:56 PM, maik maik.wi...@googlemail.com wrote: What is the predefined layout android.R.layout.simple_list_item_single_choice good for if it uses the same color for text and background? That's for ListView. ListView is not AlertDialog. AlertDialog uses android.R.layout.select_dialog_multichoice for its rows (after spending a few minutes hunting through the source code for the answer). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en