首页 > 其他分享 >腾讯公益赛个人冲刺博客2(2024.4.24)

腾讯公益赛个人冲刺博客2(2024.4.24)

时间:2024-05-06 13:23:45浏览次数:14  
标签:24 2024.4 公益 博客 冲刺 腾讯

登录注册页面,问题暂无,明天做帮扶的第一个界面

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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=".Login">

    <!--使用线性布局-->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:background="#F5F5F5">

        <!--Logo-->
        <ImageView
            android:id="@+id/LogoImage"
            android:layout_width="match_parent"
            android:layout_height="120dp"
            android:layout_marginTop="100dp"
            android:src="@drawable/background"/>

        <!--标题-->
        <TextView
            android:id="@+id/TitleText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="25dp"
            android:text="Timing•登录"
            android:gravity="center"
            android:textStyle="italic"
            android:textColor="#808080"
            android:textSize="30dp" />

        <!--嵌套线性布局-->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <!--嵌套线性布局-->
            <LinearLayout
                android:id="@+id/UserNameLayout"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <!--用户名输入-->
                <EditText
                    android:id="@+id/UserNameEdit"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:padding="15dp"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:layout_marginTop="10dp"
                    android:layout_marginBottom="15dp"
                    android:hint="输入用户名"
                    android:textSize="24dp"
                    android:singleLine="true" />

            </LinearLayout>

            <!--嵌套线性布局-->
            <LinearLayout
                android:id="@+id/PassWordLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <!--密码输入-->
                <EditText
                    android:id="@+id/PassWordEdit"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:padding="15dp"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:layout_marginTop="10dp"
                    android:layout_marginBottom="15dp"
                    android:hint="输入用户密码"
                    android:textSize="24dp"
                    android:maxLength="16"
                    android:singleLine="true"
                    android:inputType="textPassword" />

            </LinearLayout>

            <!--嵌套线性布局-->
            <LinearLayout
                android:id="@+id/LayoutButton"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <!--登录按钮-->
                <Button
                    android:id="@+id/LoginButton"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="15dp"
                    android:layout_margin="15dp"
                    android:layout_weight="1"
                    android:textColor="@color/cardview_light_background"
                    android:text="登   录"
                    android:textSize="24dp"
                    android:onClick="login"/>

                <!--注册按钮-->
                <Button
                    android:id="@+id/SignUpButton"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="15dp"
                    android:layout_margin="15dp"
                    android:layout_weight="1"
                    android:textColor="@color/cardview_light_background"
                    android:text="注   册"
                    android:textSize="24dp" />

            </LinearLayout>

        </LinearLayout>

    </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

 

标签:24,2024.4,公益,博客,冲刺,腾讯
From: https://www.cnblogs.com/Sunyiran/p/18174829

相关文章

  • 腾讯公益赛个人冲刺博客3(2024.4.25)
    今天做了帮扶功能的添加界面的雏形,以后可能还需要完善问题:一开始在想用不用网格布局,后来结合着改了一下明天做后端<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android......
  • 腾讯公益赛个人冲刺博客4(2024.4.26)
    今天完善了帮扶程序的后端,实现了后端的增和查询packagecom.example.helppeople;importandroid.annotation.SuppressLint;importandroid.content.Intent;importandroid.os.Bundle;importandroidx.appcompat.app.AppCompatActivity;importcom.example.helppeople.R;......
  • 腾讯公益赛个人冲刺博客5(2024.4.29)
    今天调整了帮扶功能前端页面,略微比之前好看了一些<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:to......
  • 腾讯公益赛冲刺个人博客1(2024.4.23)
    今天确定了组内第一阶段的任务是基本完成sos和帮扶两个核心功能以及登录注册等常规功能完成登录和注册的基本页面以及数据库的设计packagecom.example.helppeople.entity;publicclassStudent{privateStringid;privateStringname;privateStringphon......
  • 2024 年 5 月 5 日 周日 晴 常(245 字)
    正文今天值班,但是睡到9:30才醒。副行长在我睡觉的时候打电话,说他有事待会儿来。我一听这话,肯定就不会来了,果然不出所料(笑。下午16:00早退,反正值班没人管,17:00有点困,便睡了一觉。以为最多睡到18:30,结果睡到了19:30……弄好了灵送的绿植和透明板。研究了一下兰的礼......
  • 【2024-04-30】无关岗位
    20:00在你发怒的时候,要紧闭你的嘴,免得增加你的怒气。                                                 ——苏格拉底昨天约了一位前同事吃饭聊天,在路边喝了杯茶饮,在街......
  • 【一句日历】2024年05月
    【2023年5月1日·星期三】致所有顶天立地却平凡普通的无名的人啊,我敬你一杯酒,敬你的沉默和每一声怒吼,敬你弯着腰上山往高处走,头顶苍穹努力地生活。                                        ......
  • C#.NET体系图文概述—2024最全总结
    C#是一种简单、现代、面向对象和类型安全的编程语言。。.NET是由Microsoft创建的开发平台,平台包含了语言规范、工具、运行,支持开发各种应用,如Web、移动、桌面等。.NET框架有多个实现,如.NETFramework、.NETCore(及后续的.NET5+版本),以及社区版本Mono。除此以外,C#.NET体系还......
  • HTUCTF2024 河南师范大学招新赛
    CRYPTOeasyMath题目中国古代有很多人同名譬如同样叫孙子,有的人会兵法,有的人会数学你能帮我求解出这道题的答案吗?请开启容器后下载对应输出文件难度:简单fromsecretimportflagfromCrypto.Util.numberimport*defs2n(string): returnint(string.encode("utf-8").hex(......
  • 2024 年 5 月 1 日 周三 小雨 冷(384 字)
    正文祖父见到我和见长,第一句话是好久都没看到我们的孙子了。然后第二句话直接把我们俩都干懵了。“你们有没有阿托品啊?”我第一反应是懵,第二反应是想笑。上哪儿给你找这种处方药去……这种M受体阻断剂管得还严,严重有机磷中毒的时候,一掰就是几十支。而且这药不是......