Reputation: 645
I want to create a TAB-like activity. The regular tab host has a specific design. I want the tab buttons to be image views without any BG. And by clicking on the image will just change the tab the regular way?
Maybe there is a way to do it in the regular TAB host?
I will be more specfici - the 2 buttons are actually 2 image views (also has 1 png for selected and 1 png for unselected). These 2 images are on the main BG (unlike the UI of the TAB Host). Upper to them there is the area (e.g. Frame) where my 2 activites should be ... Both activities has listview in it.
Upvotes: 0
Views: 196
Reputation: 4580
Check these: Custom Android Tabs
Customize Android TabHost TabWidget
Upvotes: 1
Reputation: 8242
yes . you can do it . create yourView.xml and set this to TabSpec.setIndicator(View)
Upvotes: 1
Reputation: 6728
A simple solution will be to create 2 separate views for the 2 tabs, then depending on which button (Tab1 or Tab2) is clicked, make the corresponding view visible and the other gone. And of course you can give whatever background image to the buttons you want.
Upvotes: 0