Can you not save references to your image views when you are creating
them?

On May 13, 3:34 pm, gaurav gupta <[email protected]> wrote:
> hi justin
>  i want to just change my textview and imageview with gallery.
> my imageview showing the current position of gallery . like if gallery's
> currenit position is 2 , the 2nd imageview will be  yellow,now it is gray
> its just like a indicator in footer that will show the postion of gallery's
> selected image.
>
> On Sat, May 14, 2011 at 12:58 AM, Justin Anderson 
> <[email protected]>wrote:
>
>
>
>
>
>
>
> > I'm not entirely sure what you are trying to accomplish...
>
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developer
> >http://sites.google.com/site/magouyareware
>
> > On Fri, May 13, 2011 at 1:23 PM, gaurav gupta 
> > <[email protected]>wrote:
>
> >> HI ,
> >> i have a new issue , my using small dots to show the current image
> >> position of a gallery.
> >> these images are creating in runtime using this code
>
> >> for (*int* i=0;i<tracks.size();i++)
>
> >> {
>
> >> LinearLayout imgview_layout=(LinearLayout)findViewById(R.id.*sub_layout*
> >> );
>
> >> ImageView imageview=*new* ImageView(HotelViewScreen.*this*);
>
> >> imageview.setImageResource(R.drawable.*gray_dot*);
>
> >> imageview.setPadding(5, 2, 5, 2);
>
> >> imgview_layout.addView(imageview);
>
> >>  }
>
> >> Now i need that i have to change this imageview's Src everytime when
> >> gallery's Selected item will change.
>
> >> should i set id for every imageview??
>
> >> Suggest me.
>
> >> Thnks
>
> >> On Sat, May 14, 2011 at 12:42 AM, gaurav gupta <[email protected]
> >> > wrote:
>
> >>> Thanks Justin
> >>> Its works ,
> >>> :)
>
> >>> On Sat, May 14, 2011 at 12:32 AM, Justin Anderson <[email protected]
> >>> > wrote:
>
> >>>> The way I did it in AppSwipe! was with a RelativeLayout that contains a
> >>>> Gallery and a TextView.  I used an OnItemSelectedListener to change the 
> >>>> text
> >>>> displayed in the text view.
>
> >>>>http://developer.android.com/reference/android/widget/AdapterView.OnI...
>
> >>>> It is pretty straightforward once you get the design figured out...
>
> >>>> Thanks,
> >>>> Justin Anderson
> >>>> MagouyaWare Developer
> >>>>http://sites.google.com/site/magouyaware
>
> >>>> On Fri, May 13, 2011 at 12:56 PM, gaurav gupta <
> >>>> [email protected]> wrote:
>
> >>>>> Hti guys
> >>>>> m making a gallery that contain 10 images , each images have a
> >>>>> different name . i want that if i scroll the gallery , selected or 
> >>>>> focused
> >>>>> image's name should be appear.
> >>>>> Name  should change on onFoucs or OnItemSelected.
> >>>>> Suggest me.
> >>>>> Thanks in advance.
>
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "Android Developers" 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-developers?hl=en
>
> >>>>  --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Android Developers" 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-developers?hl=en
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" 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-developers?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" 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-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to