zoukankan      html  css  js  c++  java
  • 登录

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@mipmap/ic_launcher"
        android:layout_marginTop="150dp"
        android:layout_centerHorizontal="true"/>
    
    <EditText
        android:layout_width="200dp"
        android:layout_height="wrap_content"
        android:text="请输入用户名:"
        android:layout_marginTop="250dp"
        android:layout_centerHorizontal="true"/>
    
    <EditText
        android:layout_width="200dp"
        android:layout_height="wrap_content"
        android:text="请输入用户名:"
        android:layout_marginTop="300dp"
        android:layout_centerHorizontal="true"/>
    <Button
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="350dp"
        android:text="登录"
        android:onClick="click"/>
    </RelativeLayout>
    
    <?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:background="#F5F4F4"
    android:orientation="vertical"
    tools:context=".MainActivity">
    
    <TextView
    android:id="@+id/textView"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:background="#00BCD4"
    android:enabled="true"
    android:gravity="center"
    android:text="注册界面"
    android:textColor="#FF5722"
    android:textSize="30sp" />
    
    <TableLayout
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:gravity="center">
    
    <TableRow
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center">
    
    <TextView
    android:id="@+id/name"
    android:layout_width="wrap_content"
    android:layout_height="30dp"
    android:enabled="true"
    android:text="用户名:"
    android:textSize="20sp"
    android:textStyle="bold" />
    
    <EditText
    android:id="@+id/etname"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:ems="10"
    android:inputType="textPersonName" />
    </TableRow>
    
    <TableRow
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center">
    
    <TextView
    android:id="@+id/password"
    android:layout_width="wrap_content"
    android:layout_height="30dp"
    android:enabled="true"
    android:text="密码:"
    android:textSize="20sp"
    android:textStyle="bold" />
    
    <EditText
    android:id="@+id/etpass"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:ems="10"
    android:inputType="numberPassword" />
    
    </TableRow>
    </TableLayout>
  • 相关阅读:
    运维安全、架构、日志管理等要安装的东西,一直在更新,欢迎大家评论
    http协议的发展史
    uni-app实现通话录音实时上传、后端php-安卓手机
    uni-app H5 plus.io 获取手机指定路径目录下所有文件
    Laravel框架部署过程中的步骤:安装 composer、切换镜像、安装laravel、创建项目
    vue 强制修改el-input样式
    ide激活码,可激活goland、phpstorm、webstorm、Pycharm
    PHP转Go函数库
    Uni-app父组件如何调用子组件的方法 | 父页面如何调用子页面的方法
    Uni-app子组件如何调用父组件的方法 | 子页面如何调用父页面的方法
  • 原文地址:https://www.cnblogs.com/Lucky-M/p/14001357.html
Copyright © 2011-2022 走看看