android: scrollbarStyle

<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:orientation="vertical">  
     <ScrollView     
         android:id="@+id/view1"     
         android:layout_width="100dip"     
         android:layout_height="120dip"     
         android:padding="8dip"     
         android:scrollbarStyle="insideOverlay"     
         android:background="@android:color/white"     
         android:overScrollMode="never">     
         <TextView         
         android:layout_width="match_parent"         
         android:layout_height="wrap_content"         
         android:textColor="#ffffff"         
         android:background="@android:color/darker_gray"         
         android:text="@string/scroll_text" /> 
     </ScrollView>  
 
     <ScrollView     
         android:id="@+id/view2"     
         android:layout_width="100dip"     
         android:layout_height="120dip"     
         android:padding="8dip"     
         android:scrollbarStyle="insideInset"     
         android:background="@android:color/white"     
         android:overScrollMode="never">     
         <TextView         
             android:layout_width="match_parent"         
             android:layout_height="wrap_content"         
             android:textColor="#ffffff"         
             android:background="@android:color/darker_gray"         
             android:text="@string/scroll_text" /> 
     </ScrollView>  
 
     <ScrollView     
         android:id="@+id/view3"     
         android:layout_width="100dip"     
         android:layout_height="120dip"     
         android:padding="8dip"     
         android:scrollbarStyle="outsideOverlay"     
         android:background="@android:color/white"     
         android:overScrollMode="never">     
         <TextView         
             android:layout_width="match_parent"         
             android:layout_height="wrap_content"         
             android:textColor="#ffffff"         
             android:background="@android:color/darker_gray"         
             android:text="@string/scroll_text" /> 
     </ScrollView>  
 
     <ScrollView     
         android:id="@+id/view4"     
         android:layout_width="100dip"     
         android:layout_height="120dip"     
         android:padding="8dip"     
         android:scrollbarStyle="outsideInset"     
         android:background="@android:color/white"     
         android:overScrollMode="never">     
         <TextView         
             android:layout_width="match_parent"         
             android:layout_height="wrap_content"         
             android:textColor="#ffffff"         
             android:background="@android:color/darker_gray"         
             android:text="@string/scroll_text" /> 
     </ScrollView>
 </LinearLayout>

android: scrollbarStyle_第1张图片

你可能感兴趣的:(android: scrollbarStyle)