[android-developers] Re: ListView with the CheckBoxPreference look

2009-02-05 Thread Dan Dromereschi
Thanks a lot you both for the help. It works really nice. Dan On Jan 30, 9:34 pm, James Yum j...@google.com wrote: Hi Dan, android.R.layout.simple_list_item_multiple_choice and android.R.layout.simple_list_item_1 actually refer to built-in android layouts, so for example:

[android-developers] Re: ListView with the CheckBoxPreference look

2009-01-30 Thread Dan Dromereschi
Hi James, Sure, the code snippet is below: mList.setItemsCanFocus(false); mList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); mListAdapter = new SimpleAdapter(this, mListValues, android.R.layout.simple_list_item_multiple_choice, new String[] {name, desc}, new int[]

[android-developers] Re: ListView with the CheckBoxPreference look

2009-01-30 Thread Marco Schmitz
maybe this helps you: http://www.jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ greetings, darolla 2009/1/29 Dan Dromereschi dandromeres...@gmail.com: Hello, I am trying to build a ListView that contains items that look exactly like the CheckBoxPreference, an

[android-developers] Re: ListView with the CheckBoxPreference look

2009-01-30 Thread James Yum
Hi Dan, android.R.layout.simple_list_item_multiple_choice and android.R.layout.simple_list_item_1 actually refer to built-in android layouts, so for example: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/layout/simple_list_item_multiple_choice.xml Note

[android-developers] Re: ListView with the CheckBoxPreference look

2009-01-29 Thread James Yum
Hi Dan, Can you post some code? Cheers, James On Thu, Jan 29, 2009 at 6:31 AM, Dan Dromereschi dandromeres...@gmail.comwrote: Hello, I am trying to build a ListView that contains items that look exactly like the CheckBoxPreference, an android.R.id.text1, an android.R.id.text2 and a