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.OnItemSelectedListener.html
>>
>> 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