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

Reply via email to