开发者

android:change tab style and height in android?

开发者 https://www.devze.com 2023-03-13 01:15 出处:网络
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

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

精彩评论

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