2010년 10월 22일 금요일

tile background 방법

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/MainLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/backrepeat">


/res/drawable/backrepeat.xml 생성한다.


<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/back" 
android:tileMode="repeat" />

2010년 10월 13일 수요일

스크롤 관련

1. 스크롤 버튼 : setFastScrollEnabled(true)
2. 스크롤 할때만 나타나게 하기 : android:fadeScrollbars="true"
3. 스크롤 이미지 변경 
    android:scrollbarThumbVertical="@drawable/..."
    android:scrollbarThumbHorizontal="@drawable/..."
4. 스크롤의 background
    android:scrollbarTrackVertical="@drawable/..."
    android:scrollbarTrackHorizontal="@drawable/..."