One Step for A Little Progress

안드로이드 탭뷰(TabView) 탭 크기 조정 본문

Develop/Android

안드로이드 탭뷰(TabView) 탭 크기 조정

whistler.n 2012. 3. 28. 11:33

xml상에서 조절할수도 있지만, xml 상에서 잘안되어서 액티비티 내에서 실행함.


for(int tab=0; tab < mTabHost.getTabWidget().getChildCount(); tab++) { mTabHost.getTabWidget().getChildAt(tab).getLayoutParams().height = 50;


탭을 추가해준 곳에 위 코드를 넣어준다.

탭의 위젯을 가져와서 크기를 조정해준다.

Comments