• 安卓学习第32课——ScrollView


    滚动视图

    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    <HorizontalScrollView 
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
    <LinearLayout 
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
    <TextView 
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:text="滚动视图"
     />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />    
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:text="滚动视图滚动视图滚动视图滚动视图"
        android:textSize="30sp" />    
    </LinearLayout>
    </HorizontalScrollView>
        
    </ScrollView>

    scrollView是垂直滚动条

    HorizontalView是水平滚动条

  • 相关阅读:
    如何使用Delta Lake构建批流一体数据仓库
    今天的应用架构,正处在一个不可测的阶段
    数据湖揭秘—Delta Lake
    游戏行业弹性计算最佳实践
    淘系用户平台技术团队单元测试建设
    阿里云RemoteShuffleService 新功能:AQE 和流控
    你不知道的 HTTPS 压测
    云原生数仓如何破解大规模集群的关联查询性能问题?
    阿里云弹性计算对视觉计算的思考与实践
    Delta Lake基础介绍(商业版)
  • 原文地址:https://www.cnblogs.com/Yvettey-me/p/3970012.html
Copyright © 2020-2023  润新知