When I use views as tabSpec indicator the view is the same when a tab is selected or not.
Is there any way to use different views like when we use different drawable (selector) for the selected tab?
I already tried using the selector but it only allow to change the icon. What I want is the use a custom view and still be able to use different views for the different tab states.
Here is my code:
View profilInd = getLayoutInflater().inflate(R.layout.tabs_profil_layout, null);
Intent profilIntent = new Intent(this, MyProfilActivity.class);
tabHost.addTab(tabHost.newTabSpec("profil").setIndicator(profilInd).setContent(profilIntent));
The tabs_profil_layout layout is a simple LinearLayout with an ImageView and a TextView.