zoukankan      html  css  js  c++  java
  • SrcollView分页加载数据(布局)

    <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"
        android:orientation="vertical"
        android:id="@+id/ss"
        tools:context=".MainActivity" >

       
        <!-- 第二种方法 -->

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

          <!--
           第一种方法
          <com.baidu.ms.MyScroll
          android:id="@+id/lv"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          ></com.baidu.ms.MyScroll> -->
     
      <ListView
                android:id="@+id/lv"
                android:layout_width="match_parent"
                android:layout_height="100dp"
                >
            </ListView>
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical" >

                <Button
                    android:id="@+id/but1"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮一" />

                <Button
                    android:id="@+id/but2"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮二" />

                <Button
                    android:id="@+id/but3"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮三" />

                <Button
                    android:id="@+id/but4"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮四" />

                <Button
                    android:id="@+id/but5"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮五" />
                <Button
                    android:id="@+id/but5"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮五" />
                <Button
                    android:id="@+id/but5"
                    android:layout_width="match_parent"
                    android:layout_height="50dp"
                    android:text="按钮五" />
            </LinearLayout>
        </LinearLayout>

    </ScrollView>

  • 相关阅读:
    【算法研究】目标检测
    【Java学习笔记】Java中方法和成员变量的访问控制
    DevExpress XtraReports 入门一 创建 Hello World 报表
    整理点dropdownList的应用
    Developer Express 之 XtraReport报表预览控件PrintControl设置
    C#实现winform仿div+css半透明遮罩效果
    动态传递参数到DevExpress.XtraReports的小结 .
    Developer Express 之 XtraReport如何显示设计窗体,打开已设计过的报表
    Developer Express 之 XtraReport如何动态绑定数据
    c#判断右键菜单(ContextMenuStrip)是从哪个控件弹出来的方法
  • 原文地址:https://www.cnblogs.com/1995yu/p/5389870.html
Copyright © 2011-2022 走看看