[안드로이드] 스크롤뷰
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>
'안드로이드 스튜디오' 카테고리의 다른 글
[안드로이드] Toast 메시지 + 숫자세기 (0) | 2019.01.13 |
---|---|
[안드로이드] 키입력 처리 (0) | 2019.01.13 |
[안드로이트] 터치 시 화면바뀜 (0) | 2019.01.13 |
[안드로이드] layer-list, shape, gradient (0) | 2019.01.10 |