设为首页 加入收藏

TOP

Android常用三栏式滑动/滚动视图(View)的设计与实现代码(一)
2014-11-24 11:57:32 来源: 作者: 【 】 浏览:0
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++基本命令简介

评论

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

·在 Redis 中如何查看 (2025-12-26 03:19:03)
·Redis在实际应用中, (2025-12-26 03:19:01)
·Redis配置中`require (2025-12-26 03:18:58)
·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)