马小跳_电商合成项目(下)

布局

  1. activity_main`
    <androidx.viewpager.widget.ViewPager
    android:id="@+id/viewPager"
    android:layout_width=“match_parent”
    android:layout_height=“0dp”
    android:layout_weight=“1”>
    </androidx.viewpager.widget.ViewPager>

    <com.google.android.material.tabs.TabLayout
    android:id="@+id/tabLayout"
    android:layout_width=“match_parent”
    android:layout_height=“wrap_content” />`

  2. activity_show`

    <androidx.recyclerview.widget.RecyclerView
    android:id="@+id/recyclerView"
    android:layout_width=“match_parent”
    android:layout_height=“match_parent”></androidx.recyclerview.widget.RecyclerView>`

  3. fragment_home`
    <com.bawei.month_demo_02.view.MySearchView
    android:id="@+id/mySearchView"
    android:layout_width=“match_parent”
    android:layout_height=“wrap_content”
    app:_hint=“请输入…”
    app:_leftImage="@mipmap/ic_launcher"
    app:_midSize=“8sp” />

    <com.bawei.month_demo_02.view.MyFlowView
    android:id="@+id/myFlowView"
    app:_tagSize=“15sp”
    app:_tagSpace=“20dp”
    android:layout_width=“match_parent”
    android:layout_height=“match_parent”/>`

  4. fragment_my`
    < Button
    android:id="@+id/btnChangeColor"
    android:text=“改变颜色”
    android:layout_width=“match_parent”
    android:layout_height=“wrap_content” />

    < Button
    android:id="@+id/btnJs"
    android:text=“js弹框”
    android:layout_width=“match_parent”
    android:layout_height=“wrap_content” />

    < WebView
    android:id="@+id/webView"
    android:layout_width=“match_parent”
    android:layout_height=“match_parent”>`

  5. item_layout`

    < ImageView
    android:id="@+id/imag"
    android:layout_gravity=“center”
    android:layout_margin=“10dp”
    android:layout_width=“100dp”
    android:layout_height=“100dp” />
    < TextView
    android:id="@+id/text_name"
    android:layout_width=“match_parent”
    android:layout_height=“wrap_content” />
    < TextView
    android:id="@+id/text_price"
    android:layout_width=“match_parent”
    android:layout_height=“wrap_content” />`

  6. layout_my_search_view`
    < ImageView
    android:id="@+id/ivLeft"
    android:layout_marginLeft=“130dp”
    android:layout_marginTop=“5dp”
    android:layout_width=“wrap_content”
    android:layout_height=“wrap_content” />

    < EditText
    android:id="@+id/etContent"
    android:layout_width=“200dp”
    android:layout_marginTop=“10dp”
    android:layout_height=“wrap_content” />

    < TextView
    android:id="@+id/tvRight"
    android:text=“搜索”
    android:textSize=“16sp”
    android:layout_marginTop=“10dp”
    android:gravity=“center_vertical”
    android:layout_width=“wrap_content”
    android:layout_height=“wrap_content” />`

另附:

  1. attr`
    < resources>
    < declare-styleable name=“MySearchView”>
    < attr name="_leftImage" format=“reference”>
    < attr name="_midColor" format=“color”>
    < attr name="_midSize" format=“dimension”>
    < attr name="_hint" format=“string”>
    < attr name="_hintColor" format=“color”>
    < attr name="_rightColor" format=“color”>
    < attr name="_rightBgColor" format=“color”>
    < /declare-styleable>

    < declare-styleable name=“MyFlowView”>
    < attr name="_tagColor" format=“color”>
    < attr name="_tagSize" format=“dimension”>
    < attr name="_tagSpace" format=“dimension”>
    < /declare-styleable>
    < /resources>`

依赖

implementation ‘com.youth.banner:banner:1.4.9’
implementation ‘com.github.bumptech.glide:glide:4.9.0’
annotationProcessor ‘com.github.bumptech.glide:compiler:4.9.0’
implementation ‘com.google.code.gson:gson:2.6.2’
implementation ‘com.mcxiaoke.volley:library:1.0.19’
implementation ‘com.android.support:design:28.0.0’
implementation ‘com.android.support:recyclerview-v7:28.0.0’
implementation ‘com.jcodecraeer:xrecyclerview:1.3.2’
implementation ‘com.android.support:design:28.0.0’

别忘了网络权限和app注册

________________________________________(完)

资源下载链接为: https://pan.quark.cn/s/502b0f9d0e26 计算机体系结构是计算机科学与技术领域极为关键的课程,它聚焦于硬件与软件的交互以及计算系统设计优化的诸多方面。国防科技大学作为国内顶尖工科院校,其计算机体系结构课程备受瞩目。本课件汇集了该课程的核心内容,致力于助力学生深入探究计算机工作原理。 课件内容主要涵盖以下要点:其一,计算机基本组成,像处理器(CPU)、内存、输入/输出设备等,它们是计算机硬件系统基石,明晰其功能与工作模式对理解计算机整体运行极为关键。其二,指令集体系结构,涵盖不同指令类型,如数据处理、控制转移指令等的执行方式,以及 RISC 和 CISC 架构的差异与优劣。其三,处理器设计,深入微架构设计,如流水线、超标量、多核等技术,这些是现代处理器提升性能的核心手段。其四,存储层次结构,从高速缓存到主内存再到外部存储器,探究存储层次缘由、工作原理及数据访问速度优化方法。其五,总线和 I/O 系统,学习总线协议,了解数据、地址、控制信号在组件间传输方式,以及 I/O 设备分类与交互方式,如中断、DMA 等。其六,虚拟化技术,讲解如何利用虚拟化技术使多个操作系统在同硬件平台并行运行,涉及虚拟机、容器等概念。其七,计算机网络与通信,虽非计算机体系结构主体,但会涉及计算机间通信方式,像 TCP/IP 协议栈、网络接口卡工作原理等。其八,计算机安全与可靠性,探讨硬件层面安全问题,如物理攻击、恶意硬件等及相应防御举措。其九,计算机体系优化,分析性能评估指标,如时钟周期、吞吐量、延迟等,学习架构优化提升系统性能方法。其十,课程习题与题库,通过实际题目训练巩固理论知识,加深对计算机体系结构理解。 国防科大该课程不仅理论扎实,还可能含实践环节,让学生借助实验模拟或真实硬件操作深化理解。课件习题集为学习者提供丰富练习机会,助力掌握课程内容。共享
内容概要:本文档详细介绍了基于单片机和C语言设计的10位数字密码锁项目项目旨在提供一种高效、安全且智能化的门禁解决方案。硬件部分包括单片机(如STM32系列)、按键矩阵、液晶显示屏、蜂鸣器和电动锁等模块;软件部分涵盖输入处理、密码验证、状态管理和硬件控制四大模块。项目通过密码输入、验证、反馈等模块的设计,确保系统在复杂环境下稳定工作,防止未经授权的人员进入受保护区域。此外,系统还加入了防暴力破解、错误输入限制、密码加密等多项安全措施,并支持多用户管理、数据记录与审计等功能。文档还详细描述了硬件电路设计、代码实现、GUI设计等内容,并讨论了项目在智能家居、商业场所、高端酒店等多个领域的应用前景。 适合人群:具备一定单片机开发和C语言编程基础的研发人员,特别是从事嵌入式系统开发、智能硬件设计的专业人士。 使用场景及目标:①理解单片机与C语言在密码锁设计中的应用;②掌握按键矩阵、液晶显示、电动锁控制等硬件模块的设计方法;③学习密码验证、状态管理等软件模块的实现;④探索密码锁在智能家居、商业场所等领域的实际应用。 其他说明:项目不仅提供了详细的硬件电路设计和代码实现,还强调了系统的安全性、稳定性和用户体验。通过合理的设计和优化,确保密码锁在不同环境下的高效运行。未来,项目还可以扩展到支持生物识别、远程控制等智能化功能,进一步提升安全性和便捷性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值