[안드로이드] 스크롤뷰

2019. 1. 11. 00:15

ScrollView 태그 사용하면 내부 뷰의 사이즈가 넘칠 경우 스크롤이 가능하다.

ScrollView --> LinearLayout --> View 순으로 위계 정해지는듯.



귀찮아서 스샷은 패스.


<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="500dp"
android:text="이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n이건긴글입니다매우긴글\n"
/>
</LinearLayout>
</ScrollView>
</TableRow>


+ Recent posts