What about situations where you need the id of a dynamically created
view for use in LayoutParams? Say I want to position a new view to
the right of a previously created view in a relative layout? How do
you get a hold of those views if you have only used setTag() or
nothing at all? Thanks.
-
On Mon, Aug 30, 2010 at 12:11 PM, Anil anil.r...@gmail.com wrote:
Because it could potentially clash with the automatically generated
ids. (Unless I am missing something).
Resource IDs are always = 0x0100.
--
Dianne Hackborn
Android framework engineer
hack...@android.com
Note: please
Is there a way to make a ListView mutually exclusive like a RadioGroup
so that selecting one item deselects the others?
IMHO, if you are concerned about the number of radio buttons, you
should be using a ListView.
--
Mark Murphy (a Commons
On Mon, Aug 30, 2010 at 11:47 AM, Bret Foreman bret.fore...@gmail.com wrote:
Is there a way to make a ListView mutually exclusive like a RadioGroup
so that selecting one item deselects the others?
android:choiceMode=single and a row layout that is a CheckedTextView works.
--
Mark Murphy (a
Because it could potentially clash with the automatically generated
ids. (Unless I am missing something).
On Aug 30, 10:45 am, Mark Murphy mmur...@commonsware.com wrote:
Why not radioButtonId++?
--
You received this message because you are subscribed to the Google
Groups Android Developers
ok, I did not know that.
On Aug 30, 10:54 am, Kostya Vasilyev kmans...@gmail.com wrote:
It's also not quite correct that a radio button is only identified by
its viewId.
Using View.setTag (two versions), you can associate your own data item
(s) with a view.
However, I agree with Mark
Yes,
Look into the ListView with setChoiceMode(CHOICE_MODE_SINGLE)
-Mike DG
On Aug 30, 11:47 am, Bret Foreman bret.fore...@gmail.com wrote:
Is there a way to make a ListView mutually exclusive like a RadioGroup
so that selecting one item deselects the others?
IMHO, if you are
7 matches
Mail list logo