系统登陆界面开发及实现之(五)界面版权组件设置
开发步骤:
- 打开res下layout下activity_login.xml
- 添加一个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"/>
运行:
小结:android:layout_alignParentBottom属性必须在父容器是相对布局才能设置!
花朵开放的时候花蕾消逝,人们会说花蕾是花朵否定了的;同样地,当结果的时刻花朵又被解释为植物的一种虚假的存在形式,而果实是作为植物的真实形式而取代花朵的。这些形式不但彼此不同,而且互相排斥,互不相容。但是,他们的流动性却使他们成为有机统一体的环节,他们在有机统一体中不但互相抵触,而且彼此都同样是必要的;而正是这种同样的必要性才构成整体的生命。