たまにリストにするような不定数ではないけど、同じようなView構成が続く画面レイアウトがあります。例えばこんなやつ こんなときはまず繰り返す部分のみのxmlファイルを作ります。 child.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id= "@+id/title" android:layout_width="fill_parent" android:layout_
![同じ構成のレイアウトを別ファイルにしてincludeで使う](https://cdn-ak-scissors.b.st-hatena.com/image/square/028a7e7036d92635c8bbd0c9c718ccd6173f8a65/height=288;version=1;width=512/http%3A%2F%2F2.bp.blogspot.com%2F-k_vk8kJEv7Y%2FUgnGJJxoORI%2FAAAAAAAAALQ%2FzvY95wWdpaM%2Fw1200-h630-p-k-no-nu%2Fdevice-2013-07-12-1848s.png)