티스토리 뷰
반응형
데이터가 조회되는 부분만 스크롤을 넣으면 되므로
해당 리니어레이아웃 위에 스크롤뷰를 삽입
<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>
반응형
'IT > Android' 카테고리의 다른 글
안드로이드 스튜디오 뒤로가기 두번 클릭 시 메시지 띄우면서 앱 종료하기 (0) | 2017.11.27 |
---|---|
안드로이드 스튜디오 EditText에 숫자만 입력 받기 (0) | 2017.11.24 |
안드로이드 스튜디오 액션바 없애기 (0) | 2017.11.23 |
안드로이드 DB SQLite 다운로드 주소 (0) | 2017.11.22 |
안드로이드 스튜디오 핸드폰 연결 (0) | 2017.10.23 |
댓글