开发者

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_T开发者_如何学运维AG).setContent(new TabContentFactory() {
        public View createTabContent(String arg0) {
            return listView2;
        }
    }));

please Help

Regards Augustine


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

Creating tabs programatically

Creating tabs through xml

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜