walikum As salam! Too late reply but this code is really helpful for me...Thank you so much for your reply.
On Tue, Sep 18, 2012 at 5:20 PM, Badshah khan < sultan.ibra...@xintsolutions.com> wrote: > > Asalam o Alaikum. > > * *hope this is helpful. > > mSwitcher = (ImageSwitcher)findViewById(R.id.imageSwitcher1); > mSwitcher.setFactory(this); > > Gallery g = (Gallery)findViewById(R.id.gallery1); > g.setAdapter(new ImageAdapter(this)); > g.setOnItemSelectedListener(this); > > public void onItemSelected(AdapterView<?> parent, View v, int > position, long id) { > // mSwitcher.setImageResource(mImageIds[position]); > tv.setText(myThemeName[position]);} > private String[] myThemeName = {"Arts and Culture","Beaches and > Parks", > "Boating and Water sports","Culinary", > "Fishing","Family","Nature and > Wildlife", > "Nightlife"}; > > >> >> -- > 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 > -- *Sobia Awan* * Bs(cs)* ** -- 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