Thanks john and all of you  for your continuous support. I want to add
some check boxes in screen and when user press menu or button then i
want to retrieve its status. So i think now you can understand what i
want and you can tell me how can i achieve this.

On Aug 12, 12:44 am, "John P." <johnny.d.p...@gmail.com> wrote:
> If I understand you correctly, you've progromatically added a checkbox
> to a view.  In this case, you already have a handle to the object and
> don't need to invoke findViewById().  If you didn't keep the handle
> (say in a loop), then you can retrieve them again by going through
> your listView -- either your own private or if you're using
> ListActivity, invoke getListView().
>
> Personally, if you wanted to keep track of the status of multiple
> checkboxes, instead of going through the list everytime I'd keep a
> separate list of booleans, or just a linked list of true's.
>
> On Aug 11, 3:29 pm, Honest <honestsucc...@gmail.com> wrote:
>
>
>
> > Thanks i saw that example but now only one question in my mind. Can i
> > get the status of that checkbox letter ? if yes how. I am not finding
> > any assosiated ID with it so can some one tell me how can i do it ?
>
> > On Aug 12, 12:09 am, "John P." <johnny.d.p...@gmail.com> wrote:
>
> > > This basically involves writing UI code programatically. 
> > > Seehttp://developer.android.com/guide/samples/ApiDemos/src/com/example/a...
> > > for an example of adding multiple TextView and Button to a ScrollView
> > > in a for loop.
>
> > > On Aug 11, 2:12 pm, Honest <honestsucc...@gmail.com> wrote:
>
> > > > Thanks pskink for you reply. But can you tell me how can i use
> > > > ListView or ScroolView. My basic requirement is that i want to display
> > > > more then one String and user should be able to select multiple item
> > > > from them. Please advice me and if possible give me code snippt. I am
> > > > doing this silly things from last two days. Sometimes easy things take
> > > > time.
>
> > > > On Aug 11, 10:58 pm, skink <psk...@gmail.com> wrote:
>
> > > > > On Aug 11, 4:54 pm, Jack Ha <jack...@t-mobile.com> wrote:
>
> > > > > > You can create an empty LinearLayout and call its addView() function
> > > > > > to add the checkboxes dynamically in your code.
>
> > > > > if Honest doesn't know how many check boxes to add chanses are there
> > > > > may be too many to fit them all in physical screen.
>
> > > > > so maybe the better idea is to use ScrollView or ListView
>
> > > > > pskink
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to