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是水平滚动条

  • 相关阅读:
    filter
    验证
    HTML5 canvas 内部元素事件响应
    canvas 椭圆
    计算2点角度
    复制pdf文字出来是乱码的一种可能的解决方案
    LaTeX Pdf to Word
    论文题录导入导出的困惑
    公式测试
    [LaTex]Visio文件转EPS文件[转]
  • 原文地址:https://www.cnblogs.com/Yvettey-me/p/3970012.html
Copyright © 2011-2022 走看看