Notice
Recent Posts
Recent Comments
Link
관리 메뉴

설.현.아빠

여러가지 뷰들이 나열되어 있을때 TextView만 스크롤하기. 본문

안드로이드/ScrollView

여러가지 뷰들이 나열되어 있을때 TextView만 스크롤하기.

설.현.아빠 2011. 2. 11. 11:31



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
  
 <LinearLayout
     android:orientation="horizontal"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     >
     <Button
      android:id="@+id/prev"
      android:layout_height="wrap_content" 
   android:layout_width="wrap_content"
   android:text="이전"
   android:focusable="false"
   />
     <Button
      android:id="@+id/next"
      android:layout_height="wrap_content"  
   android:layout_width="wrap_content"
   android:text="다음"
   android:focusable="false"
   />
  </LinearLayout>
    <ScrollView  
  android:id="@+id/ScrollView01"
  android:layout_height="fill_parent"  
  android:layout_width="fill_parent"
  >
  <TextView
  android:id="@+id/textviewer"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:bufferType="spannable"
     android:linksClickable="false"
     android:nextFocusLeft="@id/textviewer"
     android:nextFocusRight="@id/textviewer"
     android:nextFocusUp="@id/textviewer"
     android:nextFocusDown="@id/textviewer"
     android:textColorLink="#FF0000"
     android:keepScreenOn="true"
     />
     </ScrollView> 
</LinearLayout>


Comments