| [サイトマップへ] |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:layout_width="[fill_parent または wrap_content]"
android:layout_height="[fill_parent または wrap_content]"
android:text="@string/sample_label" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="sample_label">[文字列]</string>
</resources>
Buttonオブジェクトの layout_height、layout_width 属性の値を
と変えて,レイアウトの違いを見てみる.