基于安卓开发的QQ登陆页面,实现登陆注册内容(一)
QQ登陆注册
首先对于QQ登陆注册而言,先控制好布局,和对控件的使用;
页面效果如下:
部分代码:
<TextView
android:layout_width="match_parent"
android:layout_height="67dp"
android:layout_marginTop="50dp"
android:gravity="center"
android:text="用户登录"
android:textColor="@color/colorPrimary"
android:textSize="35dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView
android:id="@+id/txtname"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:text="账号:"
android:textColor="@color/colorPrimary"
android:textSize="25sp"
android:gravity="center"
/>
<EditText
android:id="@+id/edtname"
android:layout_width="200dp