首页 > 其他分享 >每日总结2023/3/7

每日总结2023/3/7

时间:2023-03-07 19:25:15浏览次数:30  
标签:总结 滚动 每日 视图 content 2023 wrap match

今天学习了滚动视图

HorizontalScrollView  是水平方向的滚动视图,宽wrap_content,高match_content

ScrollView       是垂直方向的滚动视图,宽match_content,高wrap_content

 

 

 水平方向实例

    <HorizontalScrollView
        android:layout_width="wrap_content"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent">

            <View
                android:id="@+id/iv_ba"
                android:layout_width="wrap_content"
                android:layout_height="300dp"
                android:background="@mipmap/ba" />

            <View
                android:layout_width="wrap_content"
                android:layout_height="300dp"
                android:background="@mipmap/se" />
        </LinearLayout>

    </HorizontalScrollView>

 

 

 

 

垂直方向实例

 

    <ScrollView
        android:id="@+id/Sv_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <View
                android:layout_width="match_parent"
                android:layout_height="300dp"
                android:background="@mipmap/ba" />

            <View
                android:layout_width="match_parent"
                android:layout_height="300dp"
                android:background="@mipmap/ow" />

            <View
                android:layout_width="match_parent"
                android:layout_height="300dp"
                android:background="@mipmap/se"/>
        </LinearLayout>

    </ScrollView>

 

标签:总结,滚动,每日,视图,content,2023,wrap,match
From: https://www.cnblogs.com/JJTyyds/p/17189266.html

相关文章

  • 每日总结-23.3.7
    如何在后台获取前台按钮的结果,和如何获取前台文本输入框的结果和提示框。on_user=findViewById(R.id.on_user);on_password=findViewById(R.id.on_password);......
  • 3.7每日总结12
    今天用了一个半小时的时间边学习边做后台数据注册的内容,其中学习了如何在后台获取前台按钮的结果,和如何获取前台文本输入框的结果和提示框。详细代码如下 ......
  • 【2023-03-07】循环渐进
    20:00爱,不是寻找一个完美的人,而是学会用完美的眼光,欣赏那个并不完美的人。                             ......
  • 比特操作总结
    异或^相同的数异或操作得0任意数和0异不变化136.SingleNumber(异或具备交换律)左移<<,右移>>移动会补0190.ReverseBits且&n&(n-1)去掉最低为的1191.N......
  • 2023.3比赛记录
    要退役了......
  • SpringCloud-全面详解(学习总结---从入门到深化)
    微服务架构进化论 单体应用阶段(夫妻摊位)在互联网发展的初期,用户数量少,一般网站的流量也很少,但硬件成本较高。因此,一般的企业会将所有的功能都集成在一起开发一个单体......
  • 多线程设计模式-全面详解(学习总结---从入门到深化)
    目录​​SingleThreadExecution设计模式​​​​机场过安检​​​​ 非线程安全​​​​ 问题分析​​​​首字母相同却未通过检查​​​​为何出现首字母不相同的情况......
  • 日报周报月报工作总结生成器「智能文案生成器」
    ​在职场上,尤其是互联网公司里,“写周报”是一件麻烦的事情。理想的工作环境下,写周报能让工作内容透明化,并有助于总结工作经验和办事方法。但现实情况往往没那么理想。......
  • 每日一题10_动态规划
    题目:70.爬楼梯思路:转移方程:斐波那契数列代码:classSolution{publicintclimbStairs(intn){//a[n]=a[n-1]+a[n-2],a1=1,a2=2;关键retur......
  • Word2Vec总结
    最近一段时间,我写了好几篇关于Word2vec的文章,从理论部分到具体实践,现总结如下:理论部分轻松理解skip-gram模型轻松理解CBOW模型上述两篇博文从理论角度,讲述了Word2Vec......