码迷,mamicode.com
首页 > 移动开发 > 详细

Android学习——HorizontalScollview水平滚动控件

时间:2015-03-03 11:42:19      阅读:137      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!