星空网 > 软件开发 > 操作系统

系统登陆界面开发及实现之(五)界面版权组件设置

开发步骤:

  • 打开res下layout下activity_login.
  • 添加一个TextView组件对象并设置其属性

android:layout_width属性 

  • 作用:设置组件的宽

android:layout_height属性 

  • 作用:设置组件的高 
  • 常量参数:warp_content文本自适应,fill_parent容器自适应

android:gravity属性 

  • 作用:设置对齐方式 
  • 常量参数:center_horizontal 水平对齐

android:layout_marginBottom属性 

  • 作用:设置距离底部的距离

android:layout_alignParentBottom属性

  • 作用:设置为父容器底部对齐

 代码:

<TextView  android:layout_width="fill_parent"  android:layout_height="wrap_content"  android:text="Copyright@2015 Socrates Reserved."  android:gravity="center_horizontal"  android:textSize="12sp"  android:textColor="#000000"  android:layout_marginBottom="10dp"  android:layout_alignParentBottom="true"/>

运行:
系统登陆界面开发及实现之(五)界面版权组件设置images/loading.gif' data-original="http://images2015.cnblogs.com/blog/859700/201512/859700-20151222082127874-619357037.jpg" />

 小结:android:layout_alignParentBottom属性必须在父容器是相对布局才能设置!




原标题:系统登陆界面开发及实现之(五)界面版权组件设置

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

菲尔国际物流:https://www.goluckyvip.com/tag/101343.html
国际货运化工品:https://www.goluckyvip.com/tag/101344.html
国际的物流企业:https://www.goluckyvip.com/tag/101345.html
德高国际物流:https://www.goluckyvip.com/tag/101346.html
飞豹国际物流:https://www.goluckyvip.com/tag/101347.html
泛成国际货运:https://www.goluckyvip.com/tag/101348.html
无锡旅游景点竹海 - 无锡的竹海:https://www.vstour.cn/a/363178.html
5月贾汪好玩的地方 贾汪哪有好玩的地方:https://www.vstour.cn/a/363179.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流