设为首页 加入收藏

TOP

Android常用三栏式滑动/滚动视图(View)的设计与实现代码(一)
2014-11-24 11:57:32 来源: 作者: 【 】 浏览:5
Tags:Android 常用 滑动 滚动 View 设计 实现 代码

___________________________


| 头部导航区域 (导航栏) |


|__________________________|


| |


| |


| |


| 视图左右滚动区域 |


| (可以左右拖动滚动) |


| |


| |


__________________________


| |


| 底部设置菜单按钮(菜单栏) |


__________________________




闲话少说,直接上核心代码。


一)main.xml布局文件


< xml version="1.0" encoding="UTF-8" >
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">

android:id="@+id/view_top"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="center">

android:textSize="15pt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>


android:id="@+id/view_bottom"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center">
android:textSize="15pt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>


android:id="@+id/ScrollLayoutID"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_above="@id/view_bottom"
android:layout_below="@id/view_top">

android:layout_width="fill_parent"
android:layout_height="fill_parent">

首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇AndroidManifest.xml 详解 一 译.. 下一篇GCC/G++基本命令简介

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·C/C++ 类模板与模板 (2025-12-27 01:49:52)
·C语言 模板化<templ (2025-12-27 01:49:49)
·C/C++模板类模板与函 (2025-12-27 01:49:46)
·如何理解c语言指针和 (2025-12-27 01:19:11)
·为什么C标准库没有链 (2025-12-27 01:19:08)