标签:android
<pre name="code" class="html"><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/horizontalScrollView"
android:layout_gravity="center_horizontal" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
>
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/userhead"
/>
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/userhead"
/>
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/userhead"
/>
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/userhead"
/>
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
<br style="font-family: Simsun; font-size: 14px; line-height: 24px;" /><span style="font-family: Simsun; font-size: 14px; line-height: 24px;">fadingEdge属性用来设置拉滚动条时 ,边框渐变的放向。none(边框颜色不变),horizontal(水平方向颜色变淡),vertical(垂直方向颜色变淡)。</span><span style="font-family: Simsun; font-size: 14px; line-height: 24px; background-color: rgb(240, 240, 240);"> </span><br style="font-family: Simsun; font-size: 14px; line-height: 24px;" /><span style="font-family: Simsun; font-size: 14px; line-height: 24px;">fadingEdgeLength用来设置边框渐变的长度。</span><span style="font-family: Simsun; font-size: 14px; line-height: 24px; background-color: rgb(240, 240, 240);"> </span>
Android学习——HorizontalScollview水平滚动控件
标签:android
原文地址:http://blog.csdn.net/c656285856/article/details/44035171