Android基础——英文复习资料

news/2024/5/9 21:02:45/文章来源:https://blog.csdn.net/jsl123x/article/details/132406081

一.填空题

1.An Android project must be bulit before it is run,compiling the java source code(.java flises)into Java bytetcode(.class files)and the into .dex files

2.In Android an activity stores the code for a screen of an app,              a layout stores the XML that defines the users interface of an app

3.In an activity,to save values,you can override the onPause method,to restore values you have saved,you can override the onResume method.

4.A simple way to trace the execution of an app is to insert logcat logging statesments at key points in the code,another way to trace code execution is to user toasts,which are messs that are briefly displayed on the user interface.

5.The View class is the superclass for all widgets.A table layout displays widgets in rows and columns.A spinner,also known as a drop-down list,allows the user to select an item from a list .

6.For a seekbar,the OnStartTrackingTouch method is executed when the user begins to change the value of the seekbar.The OnProgresssChanged method is executed when the user changes the value of the seekbar.The OnStopTrackingTouch is executed when the user finishes changing the value of the seekbar.

7.A style is a collection of properties that specify formatting for widget.A theme is a collection of styles that apply to an entire activity or app.

8.An intent provides a description of an operation to be performed.They are commonly used with the startActivity method to start activities.

9.You can use a fragment to define part of the user interface for an activity.

10.By default,an Android app uses a single thread,called the UI thread.The AsyncTask class provides an easy way toperform a background task without having to manually manipulate threads.

11.A service performs tasks in the background,does not provide a user interface ,and continues to run even if the user switches to another app is running.A notification provides a way for a service to display a message even when another app is running.

12.Every broadcast has an action string that uniquely identifies the action.A broadcast receiver is an application component that listens for a broadcast and executes code when it receives that broadcast.

13.You can use the SimpleAdopter class to display data in a ListView widget.

14.Four techniques to implement a listener are use the current class as the listener,used a named as the listener,use an anonymous class as the listener, and use an anonymous inner class as the listener.

15.Android system architecture,known as the Android stack,consists of four layers:Linux ,native libraries,the application framework,and Android apps.

二.选择题

 

 三.综合大题

 

四.代码大题

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.luyixian.cn/news_show_348489.aspx

如若内容造成侵权/违法违规/事实不符,请联系dt猫网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

PostMan 测试项目是否支持跨域

使用PostMan可以方便快速的进行跨域测试。 只需要在请求头中手动添加一个Origin的标头,声明需要跨域跨到的域(IP:端口)就行,其余参数PostMan会自动生成。添加此标头后,请求会被做为一条跨域的请求来进行处…

【快速解决方案】浏览器的安全策略不允许通过 file:// 协议直接加载外部文件(最省事的方法)

目录 问题摘要 解决办法 检验结果 问题摘要 Failed to load resource: net::ERR_FILE_NOT_FOUND🌈 Cute Code Editor 🌈.html:162 Fetch API cannot load file:///D:/%E6%A1%8C%E9%9D%A2/%E4%B8%83%E5%A4%95%E5%BF%AB%E4%B9%90/index.txt. URL scheme …

网银快捷支付接口怎么申请?

快速支付是一种方便的支付方式,允许用户在不重复输入卡号、密码等详细信息的情况下,使用预绑定的银行卡或支付账户进行快速支付。 在快速支付中,用户可以选择在商家网站、移动应用或支付平台上使用快速支付选项,并选择绑定的银行…

数据结构之——(手撕)顺序表

本章会介绍的知识点如下图: 1: 顺序表的概念:顺序表是用一段物理地址连续的存储单元依次存储数据的线性结构,通常我们使用数组来表示,对数组进行增删查改。 顺序表的结构:逻辑结构与物理结构都是内存中一块…

《vue3实战》在created生命周期中运用slice()方法结合element plus组件实现电影评价系统的分页

目录 前言 电影评价系统的分页是什么?它具体的作用体现在哪些方面? 一、slice的含义、语法和作用以及created的作用 slice是什么?slice有什么语法?slice的作用体现在哪些方面? created生命周期的作用:…

【C语言学习】指针变量

一、运算符& 1.&运算符可以获得变量的地址,它的操作数必须是变量 int i; printf("%x",&i);2.地址的大小是否与int相同取决于编译器 int i; printf("%p",&i);//%p以32进制输出i的地址二、指针变量 指针变量是保存地址的变量…

precision指标的average参数

同样适用于recall、F1 分类任务种类 先说一下分类任务分几种,分类任务主要分为二分类、多分类和多标签这三种。 现在假设我们有一个样本,叫s 二分类是最常见的,将s分给A或B这两类。 多分类是将s分给A或B或C或更多的类别。 多标签是有A、B、…

VSCode如何为远程安装预设(固定)扩展

背景 在使用VSCode进行远程开发时(python开发之远程开发工具选择_CodingInCV的博客-CSDN博客),特别是远程的机器经常变化时(如机器来源于动态分配),每次连接新的远程时,都不得不手动安装一些开…

【网络基础实战之路】VLAN技术在两个网段中的实际应用详解

系列文章传送门: 【网络基础实战之路】设计网络划分的实战详解 【网络基础实战之路】一文弄懂TCP的三次握手与四次断开 【网络基础实战之路】基于MGRE多点协议的实战详解 【网络基础实战之路】基于OSPF协议建立两个MGRE网络的实验详解 【网络基础实战之路】基于…

laravel aws s3

由于公司有境外项目,服务器、文件存储都是用的亚马逊,真真地是没有用过,在此记录一下自己的s3研究结果 Laravel - aws - s3 第一步创建用户,生成秘钥: 第二步创建存储桶: 1、创建存储桶时,以下…

html动态爱心代码【一】(附源码)

前言 七夕马上就要到了,为了帮助大家高效表白,下面再给大家带来了实用的HTML浪漫表白代码(附源码)背景音乐,可用于520,情人节,生日,表白等场景,可直接使用。 效果演示 文案修改 var loverNam…

对于个人来说,ChatGPT有什么用,缺点有哪些?

ChatGPT聊天机器人风靡全球,但也有一些人它认为模糊了原创性的界限,扼杀了创造力,还有些人害怕被机器人取代,由此失去生计和职业发展前景。 但更多的人更愿意积极拥抱ChatGPT,除了内容本身,最主要的是相比…

Power apps:做个简单的扫码应用

Power apps的扫码应用只能客户端使用 一、创建一个窗口"扫码APP”,插入媒体工具“条形码读卡器” 二、如果需要在扫码时做一个动作,可以设置它的属性,比如跳转窗口之类的 三、添加一个文本标签,实现在扫码后标签显示条形码&#xff08…

《Go 语言第一课》课程学习笔记(十)

复合数据类型 同构复合类型:从定长数组到变长切片 由多个同构类型(相同类型)或异构类型(不同类型)的元素的值组合而成,这类数据类型在 Go 语言中被称为复合类型。 数组有哪些基本特性? Go 语…

C语言和JavaScript中的默认排序行为对比

前言 今天在js里使用sort时遇见了一个不理解的现象 即使用sort默认排序后 9 从排序前的第一位被排到了最后一位.一开始我对js sort的理解和c一样,然后通过查阅后发现并不是这样. 正文 排序是一项常见而重要的操作。不同的编程语言提供了不同的排序函数&#xf…

【Unity3D】程序纹理简单应用

1 几何纹理应用 本文所有案例的完整资源详见→Unity3D程序纹理简单应用。 1.1 边框 1)边框子图 Border.shadersubgraph 说明:Any 节点用于判断输入向量中是否存在一个分量非零,Branch 节点根据输入的真假走不同的分支,详见→Shad…

威班8月份PMP模拟考试实录(附大D老师考前寄语)

威班8月份模拟考试于2023年8月12日在深圳市福田区兴华大厦成功举办,这次考试依旧是通过线上线下同步的方式,在深圳周边的学员直接到达现场做卷考试,全国各地不能到达现场的其他学员已提前收到考试所需要的文件,与现场学员同时参加…

python解析小说

前言 在信息爆炸的时代,网络上充斥着大量的小说资源,让人们能够随时随地尽享阅读的乐趣。然而,有些小说网站要求用户付费才能获取完整的内容,这给许多人带来了困扰,尤其是像我这类对金钱概念模糊的人。不过&#xff0…

基于学习交流社区的自动化测试实现

一 项目介绍 项目名称 项目名称: 学习交流社区 项目介绍 项目介绍: 学习交流社区是一个基于Spring的前后端分离的在线论坛系统。使用了MySQL数据库来存储相关信息,项目完成后使用Xshell将其部署到云服务器上。 前端页面: 前端共由…

【LeetCode】151. 反转字符串中的单词 - 双指针

目录标题 2023-8-22 09:53:10原始优化 151. 反转字符串中的单词 2023-8-22 09:53:10 也是想到了快慢指针的思想。 原始 class Solution {public String reverseWords(String s) {int length s.length();Integer pre null;Integer last null;StringBuilder stringBuilde…