facebook twitter hatena line email

Android/UIScrollView

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

スクロールのレイアウト

<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true">
            <LinearLayout
                android:id="@+id/hogeLayout"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_gravity="center_horizontal"
                android:gravity="center_horizontal"
                android:orientation="vertical">hoge</LinearLayout>
</ScrllView>

android:fillViewport="true"をつけるとLinearLayoutの大きさに従って広がるっぽい。