zoukankan      html  css  js  c++  java
  • 10 月13 号

    <?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>
  • 相关阅读:
    移动端网页使用flexible.js加入百度联盟广告样式不一致问题解决
    flexible.js移动端适配安卓高分辨不兼容问题
    vue select二级城市联动及第二级默认选中第一个option值
    设置滚动条样式
    windows mongodb最常用命令简单归纳
    vue用阿里云oss上传图片使用分片上传只能上传100kb以内的解决办法
    vue实现文章内容过长点击阅读全文功能
    vue获取dom元素注意问题
    input框取消光标颜色手机端不生效
    基于 Vue.js 的移动端组件库mint-ui实现无限滚动加载更多
  • 原文地址:https://www.cnblogs.com/xuwei123456/p/13869416.html
Copyright © 2011-2022 走看看