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>
  • 相关阅读:
    sublime there are no packages for installation
    linux 安装php扩展mbstring
    生成器表达式和列表推导式
    send()和next()
    迭代器生成器
    装饰器
    函数随笔
    Django进阶
    数据结构与算法入门
    MySQL必会
  • 原文地址:https://www.cnblogs.com/weijj/p/3972994.html
Copyright © 2011-2022 走看看