实现ui效果如下图:
先添加EditText控件添加textEmail编辑框
设置编辑框的大小为10pd:
android:ems=“10”
设置编辑框的height,width均为:
添加textView控件同上
添加Button标签:
点击拖放到合适位置:
在编写合适位置和大小
数值设置为“1”:
android:layout_weight"1"
实现效果如下:
android:text="Button"
利用代码可是Button标签移位至左下角
android:layout_gravity="center_vertical"
具体效果如下:
最终手机页面展示效果为: