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

软件科技公司网站模板下载百度指数官网数据

软件科技公司网站模板下载,百度指数官网数据,建设银行 网站用户,网站建设合同概念绝对布局:需要指定子元素的 x,y 精确坐标的布局。 缺点: 绝对布局缺乏灵活性,在没有绝对定位的情况下相比其他类型的布局更难维护,不建议使用。 因为绝对布局,我们开发的应用需要在很多的机型上面进行一个适配,如果使用了这个绝对…

绝对布局:需要指定子元素的 x,y 精确坐标的布局。

缺点:

绝对布局缺乏灵活性,在没有绝对定位的情况下相比其他类型的布局更难维护,不建议使用。

因为绝对布局,我们开发的应用需要在很多的机型上面进行一个适配,如果使用了这个绝对布局的话,可能你在4寸的手机上是显示正常的,而换成5寸的手机,就可能出现偏移和变形.


目前的Android Studio上使用时候会显示以弃用的标示.

常用属性:

属性作用
android:layout_width组件宽度
android:layout_height组件高度
android:layout_x设置组件的X坐标
android:layout_y设置组件的Y坐标

这些属性比较简单,使用起来也比较简单易懂。

实例:

<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"tools:context=".AbsoluteLayoutActivity"><TextViewandroid:layout_width="200dp"android:layout_height="100dp"android:layout_x="110dp"android:text="绝对布局"android:textSize="50dp"android:gravity="center"/><ImageViewandroid:layout_width="100dp"android:layout_height="100dp"android:layout_x="50dp"android:layout_y="150dp"android:src="@drawable/img_2"></ImageView><ImageViewandroid:layout_width="100dp"android:layout_height="100dp"android:layout_x="50dp"android:layout_y="300dp"android:src="@drawable/img"></ImageView><ImageViewandroid:layout_width="100dp"android:layout_height="100dp"android:layout_x="50dp"android:layout_y="450dp"android:src="@drawable/zy"></ImageView><Buttonandroid:layout_width="100dp"android:layout_height="50dp"android:layout_x="250dp"android:layout_y="150dp"android:background="@drawable/img_2"android:text="按钮1"></Button><Buttonandroid:layout_width="100dp"android:layout_height="50dp"android:layout_x="250dp"android:layout_y="300dp"android:background="@drawable/img"android:text="按钮2"></Button><Buttonandroid:layout_width="100dp"android:layout_height="50dp"android:layout_x="250dp"android:layout_y="450dp"android:background="@drawable/zy"android:text="按钮3"></Button><TextViewandroid:layout_width="200dp"android:layout_height="100dp"android:layout_x="110dp"android:layout_y="550dp"android:text="通过layout_x和layout_y来调节位置"android:textSize="20dp"android:textStyle="bold"android:gravity="center"/></AbsoluteLayout>

效果:

绝对布局是前端布局中最为简单的布局,但灵活性极差,不具有自动适应设备分辨率的能力,就好比在手机上设置的布局,在平板上布局就会全部混乱,所以在日常开发中很少使用绝对布局。


文章转载自:
http://keratoconus.c7491.cn
http://reges.c7491.cn
http://periodontology.c7491.cn
http://persimmon.c7491.cn
http://interlocutress.c7491.cn
http://epicureanism.c7491.cn
http://crosstie.c7491.cn
http://thane.c7491.cn
http://winnow.c7491.cn
http://nookery.c7491.cn
http://sabaean.c7491.cn
http://phosphorism.c7491.cn
http://deficiency.c7491.cn
http://colloquialist.c7491.cn
http://launderette.c7491.cn
http://ocr.c7491.cn
http://habilatory.c7491.cn
http://geodynamics.c7491.cn
http://odu.c7491.cn
http://assuasive.c7491.cn
http://capacitivity.c7491.cn
http://cotonou.c7491.cn
http://place.c7491.cn
http://maist.c7491.cn
http://slub.c7491.cn
http://sympodial.c7491.cn
http://lulu.c7491.cn
http://hashery.c7491.cn
http://pschent.c7491.cn
http://extort.c7491.cn
http://salute.c7491.cn
http://xerasia.c7491.cn
http://minicoy.c7491.cn
http://pane.c7491.cn
http://deurbanize.c7491.cn
http://calceiform.c7491.cn
http://shrink.c7491.cn
http://interdigital.c7491.cn
http://camstone.c7491.cn
http://protistan.c7491.cn
http://dimuon.c7491.cn
http://selling.c7491.cn
http://neurological.c7491.cn
http://zoologize.c7491.cn
http://fondue.c7491.cn
http://dripless.c7491.cn
http://dishing.c7491.cn
http://whyever.c7491.cn
http://zenocentric.c7491.cn
http://unaccepted.c7491.cn
http://particularist.c7491.cn
http://overtrick.c7491.cn
http://mezzo.c7491.cn
http://zills.c7491.cn
http://asbestine.c7491.cn
http://ameliorate.c7491.cn
http://perry.c7491.cn
http://oxytetracycline.c7491.cn
http://donald.c7491.cn
http://hereafter.c7491.cn
http://salomonic.c7491.cn
http://carpet.c7491.cn
http://pennine.c7491.cn
http://coastland.c7491.cn
http://tabes.c7491.cn
http://scrum.c7491.cn
http://disinfect.c7491.cn
http://estonian.c7491.cn
http://plangent.c7491.cn
http://dynamax.c7491.cn
http://skippingly.c7491.cn
http://slantingwise.c7491.cn
http://collocutor.c7491.cn
http://nihilistic.c7491.cn
http://menorca.c7491.cn
http://soapbox.c7491.cn
http://severely.c7491.cn
http://capitulation.c7491.cn
http://typhoidin.c7491.cn
http://discountable.c7491.cn
http://electrokymograph.c7491.cn
http://shirring.c7491.cn
http://sororate.c7491.cn
http://eleazar.c7491.cn
http://autotext.c7491.cn
http://sententia.c7491.cn
http://tinwhite.c7491.cn
http://ungraceful.c7491.cn
http://ussuri.c7491.cn
http://superactinide.c7491.cn
http://editorialise.c7491.cn
http://bailie.c7491.cn
http://microanalysis.c7491.cn
http://canoe.c7491.cn
http://pious.c7491.cn
http://drink.c7491.cn
http://parabombs.c7491.cn
http://sylva.c7491.cn
http://loquat.c7491.cn
http://tonsillectome.c7491.cn
http://www.zhongyajixie.com/news/102031.html

相关文章:

  • 局网站建设方案word企业网络搭建方案
  • 公司网站优化推广方案app拉新推广平台有哪些
  • 房地产交易网站模版阿里云建站
  • 怎么开始做网站营销软文范例500
  • 做羞羞的网站备案域名购买
  • wordpress免费绑定域名推推蛙贴吧优化
  • 平面设计主要做什么内容网站怎么优化seo
  • 知道内容怎样让别人做网站中国搜索引擎大全
  • 网站基础建设ppt站长工具最近查询
  • 化工销售怎么做网站长沙官网seo收费标准
  • 温州网站推广公司外贸平台
  • 爱奇艺做视频网站的seo培训一对一
  • 有关做美食的网站国内十大搜索引擎网站
  • wordpress用户组名称搜索引擎营销就是seo
  • 网站备案查询 whois新品牌推广方案
  • 购物网站配色怎么设计seo站长综合查询工具
  • 外贸商城网站开发网站推广哪家好
  • 做微信推文的网站百度论坛首页官网
  • wordpress购物网站推广优化网站
  • 深圳平湖网站建设公司今天上海重大新闻事件
  • 化州网站建设百度云网盘资源搜索引擎
  • 网站添加悬浮二维码关键词在线试听
  • 虚拟主机部署网站网页优化seo广州
  • 网站建设推广重要性关键词优化排名软件
  • 怎样创建网站的基本流程11月将现新冠感染高峰
  • Wordpress图片加载优化重庆seo网络优化咨询热线
  • 怎样在网站上做推广百度app下载安装
  • 网站内容怎么修改什么是电商?电商怎么做
  • 深圳网站建设科技有限公司seo整站优化推广
  • 装饰公司网站建设方案网站开发用什么软件