第一次Android作业
作业1:安装环境,截图编程界面,截图运行

2

3.
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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" tools:context=".MainActivity" android:background="#FFFFFF" > <EditText android:id="@+id/ed_1" android:layout_width="match_parent" android:layout_height="50dp" android:hint="输入账密码" android:textSize="16dp" android:textColor="#03A9F4" android:layout_margin="10dp" android:background="@drawable/dr_1" android:paddingLeft="10dp" android:layout_centerInParent="true"/> <EditText android:id="@+id/ed_2" android:layout_width="match_parent" android:layout_height="50dp" android:hint="输入账号或手机号" android:textSize="16dp" android:textColor="#03A9F4" android:layout_margin="10dp" android:background="@drawable/dr_1" android:paddingLeft="10dp" android:layout_above="@+id/ed_1"/> <ImageView android:layout_width="90dp" android:layout_height="90dp" android:src="@drawable/qq_1" android:layout_centerInParent="true" android:layout_above="@+id/ed_2"/> <Button android:layout_width="match_parent" android:layout_height="50dp" android:text="登录" android:textColor="#2196F3" android:textSize="20dp" android:layout_below="@+id/ed_1" android:background="@drawable/dr_1" android:layout_margin="10dp" > </Button> </RelativeLayout>


浙公网安备 33010602011771号