I want to change the content of tab not tab image once I clicked image in
tab content.

Let me explain u clearly :


In MainActivity , I have 3 tabs tab1,tab2,tab3.

tab1 content is Activity1

tab2 content is Activity2

tab3 content is Activity3

In Activity1, I have image called image1 is there .
If I click on image1 , content of tab1 needs to be replaced with another
activity content i.e. Activity4


How can I acheive that one ??

I hope u understand my issue.

--Rajesh



On Tue, Aug 3, 2010 at 7:44 PM, kaundinya <nagaraj.kaundi...@gmail.com>wrote:

> Hi Rajesh,
> Firstly, im new to android, just take a look on the following if it
> help u.
>
> u can assign the icon for the tab using
> "mTabHost.getTabWidget().getChildAt(0).getBackground()"
> where mTabHost is the "TabHost" control from the layout.
>
> for changing the image when clicked, u can use
> "mTabHost.getTabWidget().getChildAt(0).setOnClickListener()"
> and reassign the tab with new icon or text here.
>
> Thanks and regards
> Nagaraj P Rao
>
> On Aug 3, 4:21 pm, Rajesh Pelluru <mail2pell...@gmail.com> wrote:
> > Hi,
> >  In my layout I have three tabs are there Tab1,Tab2,and Tab3.
> >
> > In Tab1 content ,I have a image called image1 and on click of that image
> I
> > need to change the content of tab.
> >
> > If I change content also , my tab needs to be highlighted ...
> >
> >  How can I achieve that one ??
> >
> > --Rajesh
>
>  --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> 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 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