zoukankan      html  css  js  c++  java
  • 觅踪2

            昨天的页面设计受到了停滞,今天换了一种形式,之前是直接用按键绘制,现在改为代码操纵,自己的进程缓慢了许多,明天将继续加油

    界面代码如下:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity"
        android:orientation="vertical"
        android:layout_gravity="center"
        android:background="@drawable/tim">
    
    
        <TextView
            android:layout_width="match_parent"
            android:layout_height="76dp"
            android:layout_marginTop="25dp"
            android:gravity="center"
            android:text="@string/mizong"
            android:textColor="#000000"
            android:textSize="45sp"
            android:textStyle="bold">
    
        </TextView>
    
        <RelativeLayout
            android:id="@+id/text_1"
            android:layout_height="70dp"
            android:layout_width="match_parent"
            android:layout_marginTop="50dp"
            android:layout_marginLeft="50dp"
            android:layout_marginRight="50dp">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:text="@string/zhanghu"
                android:textSize="35sp"
    
                >
    
            </TextView>>
            <EditText
                android:layout_height="50dp"
                android:layout_width="match_parent"
                android:autofillHints=""
                android:layout_toRightOf="@id/text_1"
                tools:ignore="NotSibling">
    
            </EditText>
    
        </RelativeLayout>>
    
    
    
        <RelativeLayout
            android:id="@+id/text_2"
            android:layout_height="70dp"
            android:layout_width="match_parent"
            android:layout_marginTop="50dp"
            android:layout_marginLeft="50dp"
            android:layout_marginRight="50dp">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:text="@string/password"
                android:textSize="35sp"
                >
    
            </TextView>
            <EditText
                android:layout_height="50dp"
                android:layout_width="match_parent"
                android:autofillHints=""
                android:inputType="textPassword"
                android:layout_toRightOf="@id/text_2"
                tools:ignore="NotSibling">
    
            </EditText>
    
        </RelativeLayout>>
    
        <LinearLayout
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:layout_gravity="center"
            android:layout_marginTop="20dp">
            <Switch
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dp"
                android:text="记住密码"
                android:textSize="25sp"
                android:layout_marginLeft="40dp">
    
            </Switch>
            <Switch
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dp"
                android:text="忘记密码"
                android:textSize="25sp"
                android:layout_marginLeft="70dp"
                >
    
            </Switch>
        </LinearLayout>
            <LinearLayout
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_gravity="center"
                android:layout_marginTop="10dp">
            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="100dp"
                android:text="@string/denglu">
    
            </Button>
    
            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="100dp"
                android:text="@string/zhuce"
                >
            </Button>
        </LinearLayout>
    
    </LinearLayout>
  • 相关阅读:
    Finalize,Dispose,SuppressFinalize
    防火防盗防微软,Firefox发布插件自动检测服务
    Nginx的Rewrite设置及示例
    Linux游戏开发包 ClanLib 2.1.0 发布
    HTTP协议详解(真的很经典)
    Linux on POWER:发行版迁移和二进制兼容性考虑事项
    映射网络驱动器VBS脚本
    [笔记] 使用 opcache 优化生产环境PHP
    2020最新版MySQL数据库面试题(三)
    请注意,面试中有这7个行为肯定会被拒绝!
  • 原文地址:https://www.cnblogs.com/PSLQYZ/p/12757950.html
Copyright © 2011-2022 走看看