zoukankan      html  css  js  c++  java
  • 运用表格布局管理器制作一个简单的微信登录界面

      前几天学习了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>

      

  • 相关阅读:
    信号灯的典型应用
    字符串过滤
    做一些学习的事情一定要坚持下去
    昨天的你造就今天的你,今天的你准备怎么造就明天的你呢?
    vue中计算属性,方法,侦听器
    vue模板语法
    Vue实例的生命周期钩子
    VUE实例
    简单的组件间传值
    前端组件化
  • 原文地址:https://www.cnblogs.com/zwx655/p/12266113.html
Copyright © 2011-2022 走看看