zoukankan      html  css  js  c++  java
  • 安卓学习第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是水平滚动条

  • 相关阅读:
    箭头函数和普通函数的this指向问题
    npm源切换
    移动端穿透问题
    let作用域问题
    react服务端渲染(十一)引入样式&&一些优化
    react服务端渲染(十)404&&301页面实现
    react服务端渲染(八)路由改写
    react服务端渲染(九)proxy代理&&多级路由&&数据的脱水和注水
    react-router 使用
    2017.11.01 ExecuteNonQuery、ExecuteScalar、ExecuteDataSet、FillDataSet 流程
  • 原文地址:https://www.cnblogs.com/Yvettey-me/p/3970012.html
Copyright © 2011-2022 走看看