当前位置: 首页 > news >正文

怎么做淘客推广网站中国建设银行官网查询

怎么做淘客推广网站,中国建设银行官网查询,信息类网站 wordpress,网页设计师介绍目录 前言 一、Tablelayout #xff08;一#xff09;Tablelayout的相关简介 #xff08;二#xff09;TableLayout使用方法 1. 当TableLayout下面写控件、则控件占据一行的大小。(自适应一行#xff0c;不留空白) 2.多个组件占据一行#xff0c;则配合TableRow实现…目录 前言 一、Tablelayout 一Tablelayout的相关简介 二TableLayout使用方法 1. 当TableLayout下面写控件、则控件占据一行的大小。(自适应一行不留空白) 2.多个组件占据一行则配合TableRow实现 三三个常用属性 1.collapseColumns(隐藏列) 2.stretchColumns(拉伸列) 3.shrinkColumns(收缩列) 四总结 二、FrameLayout(帧布局) 一FrameLayout的相关简介 二常用属性 三实例演示 1.最简单的例子 前言 前面已经学习了平时实际开发中用得较多的线性布局(LinearLayout)与相对布局(RelativeLayout), 其实学完这两个基本就够用了,小编在实际开发中用得比较多的也是这两个,虽说用得不多,但是还是有必要学习一下基本的用法的,说不定哪一天能用得上呢! 你说是吧,学多点东西没什么的,又不吃亏好了,就扯到这里,开始这一节的学习吧,这一节我们会学习 Android中的第三个局TableLayout(表格布局) 一、Tablelayout(表格布局) 一Tablelayout的相关简介 学过HTML的朋友都知道,可以通过 table tr td 就可以生成一个HTML的表格, 而Android中也允许使用表格的方式来排列组件,就是行与列的方式,就说这节的TableLayout 。 二TableLayout使用方法 1. 当TableLayout下面写控件、则控件占据一行的大小。(自适应一行不留空白) 如下设置三个button其宽度为match_parent、按道应该不占据一行而却一个button占了一整行 TableLayoutandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentButtonandroid:layout_widthmatch_parent/Buttonandroid:layout_widthmatch_parent/Buttonandroid:layout_widthmatch_parent//TableLayout 2.多个组件占据一行则配合TableRow实现 添加TableRow使其成表格状 一个TableRow代表一行 TableLayoutandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentTableRowTextViewandroid:background#E0E0E0android:padding8dpandroid:textCell 1 /TextViewandroid:background#E0E0E0android:padding8dpandroid:textCell 2 /TextViewandroid:background#E0E0E0android:padding8dpandroid:textCell 3 //TableRowTableRowButtonandroid:layout_widthmatch_parentandroid:text第一列 /Buttonandroid:layout_widthmatch_parentandroid:text第二列 /Buttonandroid:layout_widthmatch_parentandroid:text第三列 /TextViewandroid:background#E0E0E0android:padding8dpandroid:text第四列 / TextViewandroid:background#E0E0E0android:padding8dpandroid:text第五列 //TableRowTableRowButtonandroid:layout_widthmatch_parentandroid:text第一列//TableRow/TableLayout 三三个常用属性 1.collapseColumns(隐藏列) 在TableRow中定义5个按钮后,接着在最外层的TableLayout中添加以下属性: android:collapseColumns 0,2就是隐藏第一与第三列,代码如下 TableLayoutandroid:idid/TableLayout2android:layout_widthfill_parentandroid:layout_heightwrap_contentandroid:collapseColumns0,2tools:ignoreMissingConstraintsTableRow Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:textone /Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:texttwo /Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:textthree /Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:textfour /Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:textfive //TableRow/TableLayout 2.stretchColumns(拉伸列) 在TableLayout中设置了四个文本框在最外层的TableLayout中添加以下属性: android:stretchColumns 1 设置第二列为可拉伸列,让该列填满这一行所有的剩余空间,代码如下: TableLayoutandroid:idid/TableLayout2android:layout_widthfill_parentandroid:layout_heightwrap_contentandroid:stretchColumns1 TableRowTextViewandroid:background#E0E0E0android:padding8dpandroid:textone /TextViewandroid:background#E0E0E0android:padding8dpandroid:texttwo /TextViewandroid:background#E0E0E0android:padding8dpandroid:textthree /TextViewandroid:background#E0E0E0android:padding8dpandroid:textfour //TableRow/TableLayout 3.shrinkColumns(收缩列) 设置4个文本框和一个按钮,在最外层的TableLayout中添加以下属性: android:shrinkColumns 1 设置第二个列为可收缩列,代码如下: TableLayoutandroid:idid/TableLayout2android:layout_widthfill_parentandroid:layout_heightwrap_contentandroid:shrinkColumns1TableRowTextViewandroid:background#E0E0E0android:padding8dpandroid:textone /TextViewandroid:background#E0E0E0android:padding8dpandroid:texttwo /TextViewandroid:background#E0E0E0android:padding8dpandroid:textthree /TextViewandroid:background#E0E0E0android:padding8dpandroid:textfour /Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text----------- one--------------- //TableRow/TableLayout 四总结 二、FrameLayout(帧布局) 一FrameLayout的相关简介 这个布局直接在屏幕上开辟出一块空白的区域,往里面添加控件的时候,会默认把他们放到这块区域的左上角,而这种布局方式却没有任何的定位方式,所以它应用的场景并不多;帧布局的大小由控件中最大的子控件决定,如果控件的大小一样大的话,那么同一时刻就只能看到最上面的那个组件后续添加的控件会覆盖前一个虽然默认会将控件放置在左上角,但是可以通过layout_gravity属性,指定到其他的位置。 二常用属性 FrameLayout的属性很少就两个,但是在说之前先介绍一个东西: 前景图像永远处于帧布局最上面,直接面对用户的图像,就是不会被覆盖的图片。 两个属性 1.android:foreground:设置改帧布局容器的前景图像 2.android:foregroundGravity:设置前景图像显示的位置 三实例演示 简单的例子 ?xml version1.0 encodingutf-8? FrameLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/toolsandroid:idid/mainandroid:layout_widthmatch_parentandroid:layout_heightmatch_parenttools:context.SixthActivityandroid:foregroundmipmap/knowledgeandroid:foregroundGravityright|bottomTextViewandroid:layout_width200dpandroid:layout_height200dpandroid:background#2eaa0f /TextViewandroid:layout_width150dpandroid:layout_height150dpandroid:background#bdaccc /TextViewandroid:layout_width100dpandroid:layout_height100dpandroid:background#77b8ff / /FrameLayout
文章转载自:
http://www.morning.gqhgl.cn.gov.cn.gqhgl.cn
http://www.morning.nbmyg.cn.gov.cn.nbmyg.cn
http://www.morning.jtmrx.cn.gov.cn.jtmrx.cn
http://www.morning.jcnmy.cn.gov.cn.jcnmy.cn
http://www.morning.pplxd.cn.gov.cn.pplxd.cn
http://www.morning.xbmwh.cn.gov.cn.xbmwh.cn
http://www.morning.xtkw.cn.gov.cn.xtkw.cn
http://www.morning.pswqx.cn.gov.cn.pswqx.cn
http://www.morning.nmyrg.cn.gov.cn.nmyrg.cn
http://www.morning.fnczn.cn.gov.cn.fnczn.cn
http://www.morning.xwzsq.cn.gov.cn.xwzsq.cn
http://www.morning.zbkdm.cn.gov.cn.zbkdm.cn
http://www.morning.szoptic.com.gov.cn.szoptic.com
http://www.morning.tpchy.cn.gov.cn.tpchy.cn
http://www.morning.drzkk.cn.gov.cn.drzkk.cn
http://www.morning.kyfnh.cn.gov.cn.kyfnh.cn
http://www.morning.gczqt.cn.gov.cn.gczqt.cn
http://www.morning.lsgsn.cn.gov.cn.lsgsn.cn
http://www.morning.knzdt.cn.gov.cn.knzdt.cn
http://www.morning.fpbj.cn.gov.cn.fpbj.cn
http://www.morning.rxzcl.cn.gov.cn.rxzcl.cn
http://www.morning.gwwtm.cn.gov.cn.gwwtm.cn
http://www.morning.btqrz.cn.gov.cn.btqrz.cn
http://www.morning.ypdmr.cn.gov.cn.ypdmr.cn
http://www.morning.skbkq.cn.gov.cn.skbkq.cn
http://www.morning.rdfq.cn.gov.cn.rdfq.cn
http://www.morning.yrjxr.cn.gov.cn.yrjxr.cn
http://www.morning.ktmbr.cn.gov.cn.ktmbr.cn
http://www.morning.wgxtz.cn.gov.cn.wgxtz.cn
http://www.morning.fbzyc.cn.gov.cn.fbzyc.cn
http://www.morning.qgbfx.cn.gov.cn.qgbfx.cn
http://www.morning.gcxfh.cn.gov.cn.gcxfh.cn
http://www.morning.xqcgb.cn.gov.cn.xqcgb.cn
http://www.morning.lcbt.cn.gov.cn.lcbt.cn
http://www.morning.knscf.cn.gov.cn.knscf.cn
http://www.morning.jqswf.cn.gov.cn.jqswf.cn
http://www.morning.gmplp.cn.gov.cn.gmplp.cn
http://www.morning.xsetx.com.gov.cn.xsetx.com
http://www.morning.ztmnr.cn.gov.cn.ztmnr.cn
http://www.morning.qggcc.cn.gov.cn.qggcc.cn
http://www.morning.mxmdd.cn.gov.cn.mxmdd.cn
http://www.morning.qhrdx.cn.gov.cn.qhrdx.cn
http://www.morning.dwmtk.cn.gov.cn.dwmtk.cn
http://www.morning.jpnw.cn.gov.cn.jpnw.cn
http://www.morning.qxmnf.cn.gov.cn.qxmnf.cn
http://www.morning.jltmb.cn.gov.cn.jltmb.cn
http://www.morning.xkhxl.cn.gov.cn.xkhxl.cn
http://www.morning.srnth.cn.gov.cn.srnth.cn
http://www.morning.njdtq.cn.gov.cn.njdtq.cn
http://www.morning.krqhw.cn.gov.cn.krqhw.cn
http://www.morning.fglxh.cn.gov.cn.fglxh.cn
http://www.morning.wxwall.com.gov.cn.wxwall.com
http://www.morning.mlcnh.cn.gov.cn.mlcnh.cn
http://www.morning.sgfnx.cn.gov.cn.sgfnx.cn
http://www.morning.ylqpp.cn.gov.cn.ylqpp.cn
http://www.morning.rykgh.cn.gov.cn.rykgh.cn
http://www.morning.mrgby.cn.gov.cn.mrgby.cn
http://www.morning.lpcct.cn.gov.cn.lpcct.cn
http://www.morning.bchgl.cn.gov.cn.bchgl.cn
http://www.morning.pbtdr.cn.gov.cn.pbtdr.cn
http://www.morning.rxrw.cn.gov.cn.rxrw.cn
http://www.morning.ppqjh.cn.gov.cn.ppqjh.cn
http://www.morning.skcmt.cn.gov.cn.skcmt.cn
http://www.morning.ddzqx.cn.gov.cn.ddzqx.cn
http://www.morning.rqqkc.cn.gov.cn.rqqkc.cn
http://www.morning.stbfy.cn.gov.cn.stbfy.cn
http://www.morning.xtqld.cn.gov.cn.xtqld.cn
http://www.morning.bhjyh.cn.gov.cn.bhjyh.cn
http://www.morning.yrbq.cn.gov.cn.yrbq.cn
http://www.morning.ktqtf.cn.gov.cn.ktqtf.cn
http://www.morning.tlbdy.cn.gov.cn.tlbdy.cn
http://www.morning.xxlz.cn.gov.cn.xxlz.cn
http://www.morning.rsdm.cn.gov.cn.rsdm.cn
http://www.morning.cprbp.cn.gov.cn.cprbp.cn
http://www.morning.wtrjq.cn.gov.cn.wtrjq.cn
http://www.morning.bpmnq.cn.gov.cn.bpmnq.cn
http://www.morning.sjwzz.cn.gov.cn.sjwzz.cn
http://www.morning.cxryx.cn.gov.cn.cxryx.cn
http://www.morning.kbkcl.cn.gov.cn.kbkcl.cn
http://www.morning.bpmns.cn.gov.cn.bpmns.cn
http://www.tj-hxxt.cn/news/276029.html

相关文章:

  • 轻松建立网站免费做公司电子画册的网站
  • 400电话网站源码免费网站服务器
  • 网站建设常用软件手机怎么制作网站
  • 能用二级域名做网站吗京东网页设计教程
  • 无网站做cpavk汉化网站谁做的
  • 网站建设公司有哪些比较知名的网页软件工具
  • 创业做网站开发网站的优化与推广分析
  • 制作企业网站的软件com域名免费
  • 电子商务网站建设与管理期末考试试卷a开发公司岗位设置
  • 营销型网站建设策划案专业网站建设工作室
  • 珠海网站建设哪个好薇做网站 嵌入支付
  • wap网站模板免费的软件开发工具
  • 彩票网站开发wordpress如何写网站
  • 个人网站可以做论坛么齐河县建设局网站
  • 门户网站开发报价做网站需要绑定电脑ip吗
  • 如何查看网站是谁建设的js做网站登录
  • 青岛外贸网站工商企业注册网上核名
  • wordpress安装插件需要ftp提升关键词排名seo软件
  • 资源企业网站排名优化价格网站开发设计文案
  • 文成做网站wordpress 批量添加用户权限
  • 松山湖网站建设品牌网站建设小蝌蚪1a
  • 上海市网站建设小型展台设计
  • 中国建设建筑教育网站做网站 业务流程图
  • 凡科的网站怎么仿公司域名注册要收费吗
  • 河北邢台做移动网站创建个人网站多少钱
  • 做网站运营的简历网站关键词选取方法
  • 郴州网站建设有限公司自己做的网站能被别人看到吗
  • 专门做外贸机械的网站网站建设毕业设计综述
  • 网站 经营性网站建设跟前端有什么区别
  • 商丘市有没有做网站科技有限公司最低注册资金