文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > TableLayout manager
侵权投诉

TableLayout manager

TableLayout is a layout manager that partitions a container into a set of rows and columns. The intersection of a row and a column is called a cell, like in a spreadsheet. Components added to the container are placed in cells. As the container is resized, the cells are also resized. Consequentially, the components inside those cells are resized.

Introduction

TableLayout is a layout manager that partitions a container into a set of rows and columns. The intersection of a row and a column is called a cell, like in a spreadsheet. Components added to the container are placed in cells. As the container is resized, the cells are also resized. Consequentially, the components inside those cells are resized. Column and Row Sizes

Absolute and Scalable Space

The total width of the container is called the total width. The sum of the widths of all columns allocated an absolute pixel size is called the absolute width. The total width minus the absolute width is called the scalable width.

double size[][] =

{{100, 0.50, 0.20, TableLayout.FILL, 200, TableLayout.FILL}, {TableLayout.FILL}; Let's say the container is 500 pixels wide. The column widths will be

Column 0 100 pixels

Column 1 100 pixels

Column 2 40 pixels

Column 3 30 pixels

Column 4 200 pixels

Column 5 30 pixels

The total width is 500 pixels. The absolute width is 300 pixels. The scalable width is 200 pixels. The scalable columns add up to 70% leaving 30% to be divided between two fill columns each getting 15%.

Cells

Adding Components

Components can be added to a single cell or a rectangular set of cells.

第1页

你可能喜欢

热门文档

相关文档

  • TableLayout

    public void layout() { LayoutManager layoutMgr = this.layoutMgr; if (layoutMgr != null) { layoutMgr.layoutContainer(this); } } 由 layout()方法可以...

  • 13.TableLayout

    TableLayout manager 暂无评价 5页 10财富值 TableLayout_selfaudit 3页 免费 TableLayout(Android入门) 5页 1财富值 12、从头学Android之布局之... 3页 1...

  • Android学习笔记总结初学者必看

    或者直接在菜单 "Window" -> "Android AVD Manager" 中配置模拟器 9、浏览模拟 SD 卡中的内容 调试程序,在 DDMS 中选择 "File Explorer" ,在其中的 sdcard...

  • Android架构详解

    2. Application Framework 提供应用程序开发框架及其管理模式,包括 1)Activity Manager: Activity Manager 维护应用的生命周期,并提供一致的导航机制。 2)Window ...

  • 界面布局与常见界面元素

    (2013版) 发送消息的示例代码 //获取通知管理器 NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); int ...

  • Android开发步骤

    (NotificationManager) getSystemService(NOTIFICATION_SERVICE); // 指定单击通知后所打开的详细的通知页面(单击通知后打开 NotificationView) PendingIntent contentIntent =...

  • 2014_最新_Android面试题带答案

    (核心应用程序) 第一层:Linux 操作系统和驱动(Linux kernel) 第二层:各种库和 Android 运行环境(Android Runtime) 第三层:java 框架(有 activity manager,...

  • Android学习笔记总结初学者必看

    或者直接在菜单 "Window" -> "Android AVD Manager" 中配置模拟器 9、浏览模拟 SD 卡中的内容 调试程序,在 DDMS 中选择 "File Explorer" ,在其中的 sdcard...

  • Android开发步骤

    或者直接在菜单 "Window" -> "Android AVD Manager" 中配置模拟器 9、浏览模拟 SD 卡中的内容调试程序,在 DDMS 中选择 "File Explorer" ,在其中的 sdcard ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email