我想這個代碼:如何在每個佈局頁面中使用標題?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" >
<TextView android:id="@+id/logo" style="@style/logo"
android:layout_alignParentTop="true"
android:text="@string/logo" tools:context=".MainActivity" />
在每一個佈局的開始。我怎麼做,我不需要將其添加到每個佈局頁面?就像例如在PHP中,我會使用<?=include("header.php");?>
(只是一個例子,實際上這是不好的做法,這裏沒關係)。謝謝。
@hey請參閱我的編輯。 – hasanghaforian 2012-07-21 07:46:10