大家好,我为我的应用制作了自定义标题栏。我想知道这是否只是标题栏的代码不多。我问的原因是我想要一个小组活动,但我不喜欢 tab-host,因为我尝试过但我不喜欢它。所以我喜欢标题栏而不是标签主机
<?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="match_parent"
android:background="@drawable/pt5"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/frameLayout1"
android:layout_width="match_parent"
android:layout_height="50dp" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/tilte2">
<Button
android:id="@+id/button1"
android:layout_width="108dp"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@null" android:drawableBottom="@drawable/info_btn"/>
<Button
android:id="@+id/button3"
android:layout_width="105dp"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="@null" android:drawableBottom="@drawable/car_key"/>
<Button
android:id="@+id/button2"
android:layout_width="105dp"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/button3"
android:background="@null" />
</RelativeLayout>
</FrameLayout>
谢谢你