《匿名》第七课----登陆界面设计

来源:互联网 发布:泰拳和拳击 知乎 编辑:程序博客网 时间:2024/05/17 04:47

值得注意的标签

       android:textAppearance="?android:attr/textAppearanceLarge"        调整字的大小       

在这个里面
<LinearLayout        xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:gravity="center_horizontal"//子布局在父布局的位置    android:orientation="vertical"    android:paddingTop="20dp" >

aty_login.xml

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:gravity="center_horizontal"    android:orientation="vertical"    android:paddingTop="20dp" >    <LinearLayout        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:orientation="horizontal" >        <TextView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:text="@string/phone"            android:textAppearance="?android:attr/textAppearanceLarge" />        <EditText            android:id="@+id/etPhoneNum"            android:layout_width="200dp"            android:layout_height="wrap_content"            android:inputType="phone"            android:singleLine="true" />    </LinearLayout>    <Button        android:id="@+id/btnGetCode"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="@string/get_code"        android:textAppearance="?android:attr/textAppearanceLarge" />    <LinearLayout        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:orientation="horizontal" >        <TextView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:text="@string/code"            android:textAppearance="?android:attr/textAppearanceLarge" />        <EditText            android:id="@+id/etCode"            android:layout_width="200dp"            android:layout_height="wrap_content"            android:inputType="number"            android:singleLine="true" />    </LinearLayout>    <Button        android:id="@+id/btnLogin"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="@string/login"        android:textAppearance="?android:attr/textAppearanceLarge" /></LinearLayout>



0 0