How to chanage the ScrollView's scroll interval?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

How to chanage the ScrollView's scroll interval?

Postby haitian » Tue Jan 22, 2008 12:52 pm

How to chanage the ScrollView's scrol interval, when click the
Down/Up button?

The ScrollView' xml is below:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  2.  
  3.    android:layout_width="fill_parent"
  4.  
  5.    android:layout_height="wrap_content"
  6.  
  7.    id="@+id/scrollview">
  8.  
  9.  
  10.  
  11.  
  12.  
  13.     <LinearLayout id="@+id/linearlayout"
  14.  
  15.        android:orientation="vertical"
  16.  
  17.        android:layout_width="fill_parent"
  18.  
  19.        android:layout_height="wrap_content">
  20.  
  21.  
  22.  
  23.  
  24.  
  25.         <TextView id="@+id/text"
  26.  
  27.            android:layout_width="fill_parent"
  28.  
  29.            android:layout_height="wrap_content"
  30.  
  31.            android:text="@string/sc_text2"/>
  32.  
  33.     </LinearLayout>
  34.  
  35. </ScrollView>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


The TextView has 30 rows character. If I click down button, the
ScrollView will scroll it with default interval value(may be it's 8
rows).
How I can chanage the interval value, such as one row.
haitian
Freshman
Freshman
 
Posts: 4
Joined: Tue Jan 22, 2008 9:33 am

Top

Return to General

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest