首页 > 其他分享 >每日总结2023-04-14

每日总结2023-04-14

时间:2023-04-14 22:11:06浏览次数:34  
标签:界面 14 04 每日 2023 按钮

今天对Android界面进行了优化,对与以前的代码略有改动

这是主界面,包括listView查看每日信息,补货按钮,more按钮:更多信息

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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="@mipmap/qw"
    android:orientation="vertical"
    tools:context=".www_user.mall_Activity">

    <TextView
        android:id="@+id/mel_tv_1"
        android:layout_width="wrap_content"
        android:layout_marginTop="20dp"
        android:layout_height="40dp"
        android:layout_marginLeft="30dp"
        android:gravity="center"
        android:text="用户名   :"
        android:textColor="@color/black"
        android:textSize="20dp" />

    <TextView
        android:id="@+id/mel_tv_2"
        android:layout_marginTop="20dp"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_marginLeft="10dp"
        android:layout_toRightOf="@id/mel_tv_1"
        android:gravity="center"
        android:text="用户名" />

    <ListView
        android:id="@+id/mel_lv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginTop="60dp"
        android:divider="@null"
        android:dividerHeight="6dp"
        android:padding="10dp"
        android:scrollbars="none" />

    <ImageButton
        android:id="@+id/mel_btn_more"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="20dp"
        android:layout_marginTop="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginBottom="20dp"
        android:background="@drawable/mel_more"
        android:contentDescription="@string/app_name"
        android:src="@mipmap/more" />

    <Button
        android:id="@+id/mel_bu"
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:layout_alignBottom="@id/mel_btn_more"
        android:layout_toLeftOf="@id/mel_btn_more"
        android:background="@drawable/button_1"
        android:onClick="bu"
        android:text="补货" />


</RelativeLayout>

 

标签:界面,14,04,每日,2023,按钮
From: https://www.cnblogs.com/JJTyyds/p/17320100.html

相关文章

  • 2023年4月14号
    今天上午5节课,下午进行web实验。通过本次实验,我学会了有关session的常用方法,制作了登录,对于了解cookie的知识完成设置账号与密码的有效时间。然后我选择的是进行三首诗的分享,处于游客时只能对诗的名字进行浏览,进行登录后就能对诗句进行观看,然后账号和密码一样就能进行登录,并且跳转......
  • docker_day04:Dockerfile docker私有仓库 dockercompose介绍 dockercompose部署 一件部
    目录回顾Dokerfile常用和不常用命令dockerfile构建一个djagno项目公司中,使用Docker开发的工作流程docker私有仓库镜像传到官方仓库镜像分层私有仓库搭建dockercompose介绍dockercompose部署flask+redis项目新建flask项目app.py编写Dockerfile--->>>用于构建flask项目的镜像编写......
  • 4_14
    题目:如果整数x满足:对于每个数位d*,这个数位恰好在x中出现d次。那么整数 x就是一个数值平衡数。给你一个整数n,请你返回严格大于n的最小数值平衡数。思路:求出x中每个数位出现的次数,与数位本身比较publicclassSolution4_11{publicstaticbooleanf(intn){......
  • 每日总结-23.4.14
    <%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"&g......
  • 2023-4-14自增前后缀区别
    #include<bits/stdc++.h>usingnamespacestd;intmain(){ inta=39; intb=39; cout<<a<<endl<<b<<endl; a++; ++b; cout<<"oneyearlater...."<<endl; cout<<"a="<<a<<endl<<"......
  • 4.14号今日总结
    字典另一个非常有用的Python内建数据类型是字典。序列是以连续的整数为索引,与此不同的是,字典以关键字为索引,关键字可以是任意不可变类型,通常用字符串或数值。理解字典的最佳方式是把它看做无序的键=>值对集合。在同一个字典之内,关键字必须是互不相同。一对大括号创建一个空......
  • 4.14总结
    今日学习ATM项目packagecom.fzyun;importjava.util.ArrayList;importjava.util.Random;importjava.util.Scanner;publicclassATMSystem{publicstaticvoidmain(String[]args){//1.定义一个账户类//2.定义一个集合容器,负责以后存储全部的......
  • 4.14每日总结
    所谓SQL注入,就是通过把SQL命令插入到Web表单递交或输入域名或页面请求的查询字符串,最终达到欺骗服务器执行恶意的SQL命令。我们永远不要信任用户的输入,我们必须认定用户输入的数据都是不安全的,我们都需要对用户输入的数据进行过滤处理。以下实例中,输入的用户名必须为字母、数字......
  • 代码随想录算法训练营Day01 | LeetCode704 二分查找、Leetcode27 移除元素
    今日学习的视频和文章代码随想录数组基础复习基础知识代码随想录二分查找代码随想录移除元素LeetCode704二分查找题目链接:704.二分查找-力扣(Leetcode)以前学二分查找的时候,真的一直搞不清楚怎么操作左边界和有边界,以及循环的终止条件是什么,总是自己慢慢调试出来,......
  • SQL_20230414
    SQL136每类试卷得分前3名找到每类试卷得分的前3名,如果两人最大分数相同,选择最小分数大者,如果还相同,选择uid大者。examination_info表idexam_idtagdifficultydurationrelease_timeexam_record表iduidexam_idstart_timesubmit_timescore解题思路首先......