运用表格布局管理器制作一个简单的微信登录界面

  前几天学习了android开发的几种常见的布局管理器,今天就试着做了一个小练习,运用表格布局管理器制作了一个微信登录界面。

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账 号 :"
android:textSize="30dp"
android:layout_marginLeft="25dp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="20dp"
android:hint="QQ号/微信号/Email"
/>

</TableRow>
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密 码 :"
android:textSize="30dp"
android:layout_marginLeft="25dp"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="20dp"
android:hint="6到12位字符或数字"
/>
</TableRow>
<TableRow>
<TextView />
<Button
android:background="#FF009688"
android:paddingTop="10dp"
android:text="登 录"
android:textColor="#FFFFFF" />
</TableRow>
<TableRow>
<TextView />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="登录遇到问题"
android:textSize="15dp"
android:paddingTop="20dp"
/>
</TableRow>

</TableLayout>

  

原文地址:https://www.cnblogs.com/zwx655/p/12266113.html