<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:background="@drawable/bg2"
|
tools:context=".MainActivity">
|
|
<TextView
|
android:id="@+id/sample_text"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="RK3568"
|
android:textColor="@color/white"
|
android:textSize="25sp"
|
android:gravity="center"
|
android:maxLines="1"
|
android:maxEms="20"
|
android:ellipsize="end"
|
android:layout_marginTop="100dp"
|
/>
|
<EditText
|
android:id="@+id/ed_1"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="50dp"
|
android:gravity="left"
|
android:textSize="15sp"
|
android:textColor="@color/white"
|
android:hint="用户名"
|
android:textColorHint="@color/white"
|
android:maxLines="1"
|
android:padding="10dp"
|
android:background="@drawable/bg_username"
|
android:layout_margin="10dp"
|
/>
|
<EditText
|
android:id="@+id/ed_2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:gravity="left"
|
android:textSize="15sp"
|
android:textColor="@color/white"
|
android:textColorHint="@color/white"
|
android:hint="密码"
|
android:maxLines="1"
|
android:padding="10dp"
|
android:inputType="textPassword"
|
android:background="@drawable/bg_username"
|
android:layout_margin="10dp"
|
/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginTop="20dp">
|
|
<Button
|
android:id="@+id/btn_1"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="登录"
|
android:textColor="@color/black"
|
android:layout_marginLeft="10dp"
|
android:background="@drawable/bt_right"
|
android:theme="@style/MyRadioButton"
|
/>
|
<Button
|
android:id="@+id/btn_2"
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="注册"
|
android:textColor="@color/black"
|
android:layout_marginLeft="5dp"
|
android:layout_marginRight="10dp"
|
android:background="@drawable/bt_left"
|
android:theme="@style/MyRadioButton"
|
/>
|
</LinearLayout>
|
|
</LinearLayout>
|