티스토리 뷰

반응형

데이터가 조회되는 부분만 스크롤을 넣으면 되므로

해당 리니어레이아웃 위에 스크롤뷰를 삽입

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

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/hakbun"
android:layout_weight="1"
android:layout_margin="10dp"
android:textSize="20dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/name"
android:layout_weight="1"
android:layout_margin="10dp"
android:textSize="20dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/address"
android:layout_weight="1"
android:layout_margin="10dp"
android:textSize="20dp"/>

</LinearLayout>
</ScrollView>


반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함