Android编程布局控件之AbsoluteLayout用法实例分析

Android编程布局控件之AbsoluteLayout用法实例分析,第1张

概述本文实例讲述了Android编程布局控件之AbsoluteLayout用法。分享给大家供大家参考,具体如下:

本文实例讲述了AndroID编程布局控件之absoluteLayout用法。分享给大家供大家参考,具体如下:

absoluteLayout是绝对布局管理器,指的是指定组件的左上角绝对坐标来指定组件的布局

<?xml version="1.0" enCoding="utf-8"?><absoluteLayout  xmlns:androID="http://schemas.androID.com/apk/res/androID"  androID:orIEntation="vertical" androID:layout_wIDth="fill_parent"  androID:layout_height="fill_parent">  <button androID:layout_wIDth="wrap_content"    androID:layout_height="wrap_content" androID:text="按钮1"    androID:layout_x="0px" androID:layout_y="0px" />  <button androID:layout_wIDth="wrap_content"    androID:layout_height="wrap_content" androID:text="按钮2"    androID:layout_x="20px" androID:layout_y="20px" />  <button androID:layout_wIDth="wrap_content"    androID:layout_height="wrap_content" androID:text="按钮3"    androID:layout_x="40px" androID:layout_y="40px" />  <button androID:layout_wIDth="wrap_content"    androID:layout_height="wrap_content" androID:text="按钮4"    androID:layout_x="60px" androID:layout_y="60px" /></absoluteLayout>

运行效果截图如下:

希望本文所述对大家AndroID程序设计有所帮助。

总结

以上是内存溢出为你收集整理的Android编程布局控件之AbsoluteLayout用法实例分析全部内容,希望文章能够帮你解决Android编程布局控件之AbsoluteLayout用法实例分析所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1141480.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存