activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="ifContentScrolls"
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Hello World!"></TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="Last Text"></TextView>
</LinearLayout>
</ScrollView>
</LinearLayout>
[안드로이드 with 인크레파스] 3강_스크롤뷰
#안드로이드, #스튜디오, #앱, #어플, #만들기, #스크롤뷰, #스크롤, #뷰, #scroll, #view, #ScrollView, #인크레파스, #increpas, #정용훈
'■코딩' 카테고리의 다른 글
안드로이드 스튜디오 -로그인 창 (Login) (0) | 2020.03.10 |
---|---|
안드로이드 스튜디오ㅡ 인텐트(Intent)와 번들(Bundle) (0) | 2020.03.03 |
왜 안돼는 거야 ??? (0) | 2020.03.02 |