<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/tab_bg_selector"
android:gravity="center"
android:orientation="vertical" >
<TextView android:id="@+id/tv_tab_label"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="test Tab"
android:textColor="@drawable/tab_text_selector" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="test height"/>
</LinearLayout>
whatever number child views in LinearLayout, tab indicator only use the first child
and height in LinearLayout don't work, why?
and width, height in TextView don't work too, just work with specific height, ex: 60dip
How's TabSpec.setIndicator work?
padding work with LinearLayout, chung' to? la` tab indicator khong co ignore parent layout
Không có nhận xét nào:
Đăng nhận xét