• 运用表格布局管理器制作一个简单的微信登录界面


      前几天学习了android开发的几种常见的布局管理器,今天就试着做了一个小练习,运用表格布局管理器制作了一个微信登录界面。

    <?xml version="1.0" encoding="utf-8"?>
    <TableLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">
    <TableRow>
    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="账 号 :"
    android:textSize="30dp"
    android:layout_marginLeft="25dp"
    />
    <EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="20dp"
    android:hint="QQ号/微信号/Email"
    />

    </TableRow>
    <TableRow>
    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="密 码 :"
    android:textSize="30dp"
    android:layout_marginLeft="25dp"
    />
    <EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingBottom="20dp"
    android:hint="6到12位字符或数字"
    />
    </TableRow>
    <TableRow>
    <TextView />
    <Button
    android:background="#FF009688"
    android:paddingTop="10dp"
    android:text="登 录"
    android:textColor="#FFFFFF" />
    </TableRow>
    <TableRow>
    <TextView />
    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="登录遇到问题"
    android:textSize="15dp"
    android:paddingTop="20dp"
    />
    </TableRow>

    </TableLayout>

      

  • 相关阅读:
    Linux系统中压缩与解压缩
    Linux系统中的信息查找命令
    Paraview处理fluent计算结果
    insert_stream 中的 insert_every报错
    LIGGGHTS出现错误提示ERROR: Volume expectancy too small
    影响CFD计算量的因素分析及在OpenFOAM中的参数调整
    常见物理量的单位在OpenFOAM中的形式
    LIGGGHTS运行命令
    汇编系列10-内存
    汇编系列9-通用寄存器
  • 原文地址:https://www.cnblogs.com/zwx655/p/12266113.html
Copyright © 2020-2023  润新知