• 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>

  • 相关阅读:
    001-导航条悬浮顶部
    000-导航栏单击事件背景变换
    1-MySQL命令行
    了解CentOS服务器的基本信息
    SecureCRT配色
    SecureCRT中文显示乱码
    Android Studio 1.1 使用介绍及导入 jar 包和第三方依赖库
    Android Json 解析
    不断更新中 书签
    Android 常用的权限
  • 原文地址:https://www.cnblogs.com/1995yu/p/5389870.html
Copyright © 2020-2023  润新知