3 개의 탭이있는 작업 모음이 있습니다. 다음과 같이 보입니다. | 전체 | 전화 | 네트워크 | 나는 그들에게 같은 너비가 있기를 바란다. 내가 어떻게 해?ActionBar 탭 무게/너비
0
A
답변
2
으로 동일한 폭
<?xml version="1.0" encoding="utf-8"?>
<TabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="none">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</HorizontalScrollView>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
</TabHost>
다음 설정 탭 호스트 행으로 정렬. 탭. 이게 내가 한 일이야. 내보기에는 ActionBar.Tag에서 사용하는 기본 제공 레이아웃과 비슷한 레이아웃에서 사용자 정의보기가로드되고 필요에 따라 여백, 크기 및 내용을 설정합니다.
0
그들 모두는 사용자가 액션 바에서 setCustomView() 메소드를 사용하여 임의의 도면에 태그를 설정할 수
TabHost tabHost;
TabHost.TabSpec spec;
tabHost=getTabHost()
Intent intent;
intent=new Intent().setClass(this, BirthDayTab.class);
spec=tabHost.newTabSpec("artists").setIndicator("BirthDay",res.getDrawable(R.drawable.ic_tab_artists)).setContent(intent);
tabHost.addTab(spec);
+2
번호를 찾고있다 정확한 솔루션입니다. ** ActionBar Tabs ** –
-1
https://groups.google.com/forum/#!topic/actionbarsherlock/4oT9KwhB0O8 이것은 내가 일 동안 당신은 일반 탭에 대해 얘기
관련 문제
- 1. ActionBar 조각이있는 회전 탭
- 2. ActionBar 탭 너비
- 3. Android ActionBar 탭 - ListFragment 문제
- 4. ActionBar 아래쪽 맞춤 탭 아이콘
- 5. FragmentActivity가 포함 된 ActionBar 탭
- 6. 안드로이드 ActionBar 탭 및 단편
- 7. Android : ActionBar 탭 높이 결정
- 8. Honeycomb 용 Android ActionBar 탭 스타일
- 9. 스타일 방법 ActionBar, 선택된 탭의 탭 배경
- 10. ActionBar 탭 - 고정 및 스크롤 가능?
- 11. ActionBar 탭 - 세부 조각으로 목록 조각 바꾸기
- 12. 각각의 상단에 조각을 보여주는 ActionBar 탐색 탭
- 13. 하나의 ActionBar 탭 내부에서만 조각 사이의 트랜잭션
- 14. xml이 포함 된 ActionBar 탭 배경
- 15. ActionBar 옵션
- 16. Android : Sherlock ActionBar
- 17. ICS와 Honeycomb ActionBar 호환하기
- 18. 이해하기 쉬움 조각/탭 + ActionBar + 스 와이프 (ICS)
- 19. ActionBar 및 뷰 페이지를 사용하여 탭 탐색 구현
- 20. 탭 내의 조각에서 onCreateOptionsMenu를 어떻게 사용할 수 있습니까? (Sherlock ActionBar)
- 21. ActionBar Sherlock, 작업 표시 줄 탭 및 단편
- 22. Android ActionBar Sherlock - 탭 사이의 구분선을 모두 제거하십시오.
- 23. ActionBar Orientation
- 24. ActionBar refresh
- 25. ActionBar 오류
- 26. ActionBar 동작
- 27. Android FragmentTransaction, ActionBar Tabs 및 Multiple Fragments
- 28. Android 액션 바 탭
- 29. ActionBar 분할 자 스타일링
- 30. 최고의 ActionBar 호환성 라이브러리
나는 그것에 대해 이야기 할 것입니다. 감사. –
그것이 작동 했나요, Uriel 씨? – habitats