[木木方文安卓学习笔记八]登陆页面


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns="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"
tools:context="com.example.huoliquankai.mobileoffice.Classes.Main.LoginActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal">
<ImageView
android:id="@+id/logo"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginTop="40dp"
android:src="@mipmap/logo"/>
</LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:paddingLeft="40dp"
    android:paddingRight="40dp"
    android:layout_marginTop="20dp"
    android:orientation="horizontal">
    <TextView
        android:layout_width="60dp"
        android:layout_height="match_parent"
        android:text="@string/account"
        android:gravity="center_vertical"/>
    <EditText
        android:id="@+id/account"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:hint="@string/tip_input_account"
        android:background="@drawable/edit_bg"
        android:gravity="center"/>

</LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:paddingLeft="40dp"
    android:paddingRight="40dp"
    android:layout_marginTop="20dp"
    android:orientation="horizontal">
    <TextView
        android:layout_width="60dp"
        android:layout_height="match_parent"
        android:text="@string/password"
        android:gravity="center_vertical"/>
    <EditText
        android:id="@+id/password"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:hint="@string/tip_input_password"
        android:background="@drawable/edit_bg"
        android:gravity="center"
        android:inputType="textPassword"/>

</LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:gravity="center_horizontal"
    android:paddingLeft="40dp"
    android:paddingRight="40dp"
    android:layout_marginTop="20dp">
    <Button
        android:id="@+id/login_btn"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        android:text="@string/login"
        android:background="@color/colorGreen"/>
</LinearLayout>

</LinearLayout>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容