0
你好人我爲我的應用程序做了一個自定義標題欄。我想知道這是不是隻是一個標題欄的代碼。我問的原因是我想要一個團體活動,但我不喜歡tab主機,因爲我嘗試了它,而我不喜歡它。所以我喜歡一個標題欄,而不是製表主機自定義標題欄與多個活動鏈接
<?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>
謝謝
我lkie我做了什麼。但我喜歡這個收音機組的外觀謝謝dharmendra – Ravon 2012-03-28 20:07:28
你是歡迎:) – Dharmendra 2012-03-29 04:06:15