アプリケーションでいくつかのアクティビティを実行したいのですが、各アクティビティにリニア レイアウトを設定し、見出しとして画像を表示したいと考えています。基本的に、すべてのレイアウトを次のように開始したいと思います。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/Grey"
>
<ImageView android:id="@+id/imageHeader" android:src="@drawable/tf_header" android:layout_height="wrap_content" android:layout_width="fill_parent"
android:background="@color/Black" android:scaleType="fitXY"></ImageView>
レイアウトごとにこのコードを繰り返さないようにすることはできますか? それを避けるためにテーマやスタイルを使用できますか? 返信ありがとうございます。