我想这个代码:如何在每个布局页面中使用标题?
<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