首页 > 其他分享 >3.15

3.15

时间:2024-03-21 17:35:05浏览次数:19  
标签:学到 第九天 3.15 50 按钮 1h

  第九天
所花时间 1h
代码量 50行
博客量 1篇
学到的知识 按钮图片的插入

 

 

 

 

 

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="#FFFFFF"
    tools:context=".stud">

    <TextView
        android:id="@+id/timeTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="24sp"
        android:textStyle="bold"
        android:textColor="#808080"
        tools:ignore="MissingConstraints" />

    <ImageView
        android:id="@+id/addButton"
        android:layout_width="33dp"
        android:layout_height="19dp"
        android:layout_margin="16dp"
        android:layout_marginTop="16dp"
        android:layout_marginEnd="44dp"
        android:contentDescription="Add"
        android:src="@drawable/ic_add"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/addHint"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="点击加号进行添加待办"
        android:textColor="#000000"
        android:textSize="8sp"
        app:layout_constraintEnd_toEndOf="@id/addButton"
        app:layout_constraintHorizontal_bias="0.659"
        app:layout_constraintStart_toStartOf="@id/addButton"
        app:layout_constraintTop_toBottomOf="@id/addButton" />

    <View
        android:id="@+id/backgroundView"
        android:layout_width="match_parent"
        android:layout_height="20dp"
        android:background="#87CEFA"
        app:layout_constraintTop_toBottomOf="@id/addHint"
        tools:layout_editor_absoluteX="-16dp" />


    <Button
        android:id="@+id/studyLogButton"
        android:layout_width="406dp"
        android:layout_height="44dp"
        android:layout_marginTop="4dp"
        android:background="@drawable/button_background"
        android:text="进行打卡/添加今日学习记录"
        android:textColor="#000000"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.4"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/backgroundView" />

    <Button
        android:id="@+id/viewTodoButton"
        android:layout_width="406dp"
        android:layout_height="44dp"
        android:layout_marginTop="4dp"
        android:background="@drawable/ic_back"
        android:text="查看今日待办"
        android:textColor="#000000"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.4"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/studyLogButton" />

    <Button
        android:id="@+id/statisticsButton"
        android:layout_width="406dp"
        android:layout_height="44dp"
        android:layout_marginTop="4dp"
        android:background="@drawable/button"
        android:text="统计本月打卡数"
        android:textColor="#000000"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.4"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/viewTodoButton" />

</androidx.constraintlayout.widget.ConstraintLayout>

 

标签:学到,第九天,3.15,50,按钮,1h
From: https://www.cnblogs.com/dmx-03/p/18087872

相关文章

  • 3.15毕设
    前面的HelloWorld,只做了一个查询的Demo,这里尝试另外四种常见的操作。  前面所写的增删改查是存在问题的。主要问题就是冗余代码过多,模板化代码过多。例如,开发一个serDao,可能是下面这样: 引入Mapper,UserDao就基本上用不到了,因为框架已经帮我们做好了 ......
  • 3.15pht做题笔记
    3.15pht做题笔记C考虑先枚举学生\(j\),再枚举问题\(x\),接着枚举该问题回答相同的同学\(i\)根据鸽巢原理,每个同学有效枚举的次数肯定不会超过\(O(nk)\),所以总复杂度是\(O(n^2k)\)D先想确定\(k\)之后怎么做,从\(1\)到\(n\)枚举\(a_1\)的位置,每次只会交换两组......
  • q1-投资理财-2024.3.15
    q1-投资理财-2024.3.15​ 兴趣使然,在20岁接触到了股票,虽然没怎么赚钱并且一直都在赔钱,不过在家没有别的盈利能力,股票和期货成为搞钱的内容,期货我想碰的是鸡蛋期货,一般都是12月可能有小幅度上涨,整体一直下跌到2月份,有时候234月都是下跌的,一直到5月份会到底然后上涨到7月8月份,有的......
  • 日记 2024.3.15:2024 年 syzx 春季训练 1
    日记2024.3.15:2024年syzx春季训练1A找出在\(1,2\)周围一圈的点,挑出最远点\(u,v\)(找不到说明\(d_{1,2}=1\)),判一下\(d_{u,v}\)与\(d_{u,2}\)的关系以区分\(\pm1\)。这样比较好看。B普通冒泡\(n(n-1)/2\)次,这题\(n^2\),说明每做一次操作可以浪费一次操作。......
  • 2024.3.9 - 3.15
    SatLGR-176(Div.2)A.区间和问题,一眼盯真:前缀和。B.bfs,顺便记一下转移方向。C.最小化最大值,二分答案,用点DS实时维护逆序对即可,笔者用了线段树。D.区间DP,预处理一下\(a_i^{a_j}\)的值,然后记\(f_{l,r,0/1}\)表示到达了\([l,r]\)区间,并且最后一步是取了头部/尾部到达该......
  • centos7 k8s 三节点 全二进制部署 1.23.15
    主机名IP地址Pod网段Service网段master192.168.1.60172.16.0.0/1210.96.0.0/16node01192.168.1.70172.16.0.0/1210.96.0.0/16node02192.168.1.80172.16.0.0/1210.96.0.0/16[root@master~]#cat/etc/redhat-releaseCentOSLinuxrelease7.9.2......
  • 基于CentOS7系统Docker19.03.15离线安装
    一、离线安装(1)去官网下载docker安装二进制包,选择适合自己的版本。这里下载的是docker-19.03.15.tgz,下载地址:https://download.docker.com/linux/static/stable/x86_64/(2)将安装包上传至安装机器(3)解压tar-xfdocker-19.03.15.tgz(4)将解压后的文件移至/usr/bin/......
  • 2023.15 人工智能训练师
    AI在消灭一些职业岗位的同时,也会带来一些新的岗位,人工智能训练师就是其中之一。2020年,「人工智能训练师」正式成为新职业并纳入国家职业分类目录,是指「使用智能训练软件,在人工智能产品实际使用过程中进行数据库管理、算法参数设置、人机交互设计、性能测试跟踪及其他辅助作......
  • 3.15 3.16study
    #include<stdio.h>/*intmain(){//数组内容交换intarr1[]={1,3,5,7,9};intarr2[]={2,4,6,8,0};inttmp=0;inti=0;intsz=sizeof(arr1)/sizeo......
  • 3.15
    在昨天的基础上,今日的进展主要是尝试了多种查询的方法,如何通过一个表过渡到另一个表并且能实现路线最优解,经过最少站台或转线最少从而到达目的地但在实际的运行过程中,出......