Android基础——英文复习资料

一.填空题

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.hqwc.cn/news/84506.html

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

相关文章

政务大厅人员睡岗离岗玩手机识别算法

人员睡岗离岗玩手机识别算法通过pythonyolo系列网络框架算法模型,人员睡岗离岗玩手机识别算法利用图像识别和行为分析,识别出睡岗、离岗和玩手机等不符合规定的行为,并发出告警信号以提醒相关人员。Python是一种由Guido van Rossum开发的通用…

pytorch里面的nn.AdaptiveAvgPool2d

今天遇到nn.AdaptiveAvgPool2d((None, 1)) AdaptiveAvgPool2d函数详细解释: 2D自适应平均池化(2D adaptive average pooling)是一种对输入信号进行二维平均池化的操作,输入信号由多个输入平面(input planes&#xff0…

SpringBoot+mybatis+pgsql多个数据源配置

一、配置文件 jdk环境:1.8 配置了双数据源springbootdruidpgsql,application.properties配置修改如下: #当前入库主数据库 spring.primary.datasource.typecom.alibaba.druid.pool.DruidDataSource spring.primary.datasource.driver-class…

Vue2向Vue3过度核心技术插槽

目录 1 插槽-默认插槽1.作用2.需求3.问题4.插槽的基本语法5.代码示例6.总结 2 插槽-后备内容(默认值)1.问题2.插槽的后备内容3.语法4.效果5.代码示例 3 插槽-具名插槽1.需求2.具名插槽语法3.v-slot的简写4.总结 4 作用域插槽1.插槽分类2.作用3.场景4.使用…

解除用户账户控制提醒

解决用户账户控制提醒 1. 前言2. 解决用户账户控制提醒2.1 控制面板2.2 注册表2.3 UAC服务 结束语 1. 前言 当我们使用电脑时,有时进行安装应用或者打开应用时,总会弹出一个提示框,要选择点击是否允许程序运行; 系统经常弹出用户…

Django学习笔记-AcApp端授权AcWing一键登录

笔记内容转载自 AcWing 的 Django 框架课讲义,课程链接:AcWing Django 框架课。 AcApp 端使用 AcWing 一键授权登录的流程与之前网页端的流程一样,只有申请授权码这一步有一点细微的差别: 我们在打开 AcApp 应用之后会自动向 AcW…

LabVIEW开发灭火器机器人

LabVIEW开发灭火器机器人 如今,自主机器人在行业中有着巨大的需求。这是因为它们根据不同情况的适应性。由于消防员很难进入高风险区域,自主机器人出现了。该机器人具有自行检测火灾的能力,并通过自己的决定穿越路径。 由于消防安全是主要问…

Docker(md版)

Docker 一、Docker二、更换apt源三、docker搭建四、停启管理五、配置加速器5.1、方法一5.2、方法二 六、使用docker运行漏洞靶场1、拉取tomcat8镜像2、拉取成功3、开启服务4、查看kali的IP地址5、访问靶场6、关闭漏洞靶场 七、vulapps靶场搭建 一、Docker Docker是一个开源的应…

mongodb聚合排序的一个巨坑

现象: mongodb cpu动不动要100%,如下图 分析原因: 查看慢日志发现,很多条这样的查询,一直未执行行完成,占用大量的CPU [{$match: {"tags.taskId": "64dae0a9deb52d2f9a1bd71e",grnty: …

mall:redis项目源码解析

文章目录 一、mall开源项目1.1 来源1.2 项目转移1.3 项目克隆 二、Redis 非关系型数据库2.1 Redis简介2.2 分布式后端项目的使用流程2.3 分布式后端项目的使用场景2.4 常见的缓存问题 三、源码解析3.1 集成与配置3.1.1 导入依赖3.1.2 添加配置3.1.3 全局跨域配置 3.2 Redis测试…

jemter连接数据json断言

文章目录 一、jmeter连接数据库1、加载JDBC驱动2、连接数据3、SQL Query的Query Type使用方法:4、Variable Name使用方法:5、Result variable name使用方法: 二、Json响应断言1、添加 》 断言 》 JSON断言2、JSON断言界面参数说明&#xff1a…

4.14 HTTPS 中 TLS 和 TCP 能同时握手吗?

目录 实现HTTPS中TLS和TCP同时握手的前提: 什么是TCP Fast Open? TLS v1.3 TCP Fast Open TLSv1.3 HTTPS都是基于TCP传输协议实现的,得先建立完可靠得TCP连接才能做TLS握手的事情。 实现HTTPS中TLS和TCP同时握手的前提: 1、…