zoukankan      html  css  js  c++  java
  • 安卓学习-界面-ui-ScrollView和HorizontalScrollView

    添加滚动条

    这里添加了两边的滚动条

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
    
        <ScrollView
            android:id="@+id/scrollView1"
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:scrollbarDefaultDelayBeforeFade="100000" >
    
            <HorizontalScrollView
                android:id="@+id/horizontalScrollView1"
                android:layout_width="match_parent"
                android:layout_height="match_parent" 
                android:scrollbarDefaultDelayBeforeFade="100000"
                >
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="horizontal" >
                    <ImageView
                        android:id="@+id/imageView1"
                        android:layout_width="500dp"
                        android:layout_height="400dp"
                        android:src="@drawable/pic" />
    
                </LinearLayout>
            </HorizontalScrollView>
    
        </ScrollView>
    
    </LinearLayout>
  • 相关阅读:
    poj 3422 Kaka's Matrix Travels
    poj 1815 Friendship
    poj 1966 Cable TV Network
    黑暗
    【bzoj2741】[FOTILE模拟赛] L
    整数拆分
    LCIS
    原题的旅行
    【codeforces gym】Increasing Costs
    【noip模拟】D(==)
  • 原文地址:https://www.cnblogs.com/weijj/p/3972994.html
Copyright © 2011-2022 走看看