Hi
I am using the ToggleButton (ON/OFF) in a LinearLayout with a big list
of elements.
The LinearLayout is loaded with SimpleAdapter to a ListView, hum i
think code source is better :
<LinearLayout>
<ListView>
ListView list = (ListView) findViewById(R.id.ListView01);
list.setAdapter(new SimpleAdapter(this, musics, R.layout.list_complex,
new String[] { ITEM_TITLE },
new int[] { R.id.list_complex_title }));
R.layout.list_complex :
<LinearLayout>
<ToggleButton>
</LinearLayout>
When i push OFF a button on the first element, i see
n = 0 => OFF
n = 1...6 => ON
n = 7 => OFF
n = 1...13 => ON
n = 14 => OFF
...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---