augustine
augustine

Reputation: 1022

android:change tab style and height in android?


I am using a tab ,In which tab buttons add melodramatically,My requirement is to reduce the tab button height and give custom style for tab button.I am using android 1.5.My Code gives below

    tabHost.addTab(tabHost.newTabSpec(LIST1_TAB_TAG).setIndicator(LIST1_TAB_TAG).setContent(new TabContentFactory() {
        public View createTabContent(String arg0) {
            return listView1;
        }

    }));

    tabHost.addTab(tabHost.newTabSpec(LIST2_TAB_TAG).setIndicator(LIST2_TAB_TAG).setContent(new TabContentFactory() {
        public View createTabContent(String arg0) {
            return listView2;
        }
    }));


please Help
Regards Augustine

Upvotes: 0

Views: 3936

Answers (1)

Andro Selva
Andro Selva

Reputation: 54322

If you are looking for custom tabs, this might help.

Creating tabs programatically

Creating tabs through xml

Upvotes: 1

Related Questions