Android Custom UI: Making a Vintage Thermometer

RK3576-Android15-Android16-免root 方案-客户免root方案实现su 相关操作 最近自己在做开机动画相关需求时候,涉及到一个权限问题。对于App 测和adb 命令侧一定要su 情况下才能够进行相关操作。有的时候甚至需要才能操作。这里暂不分析为什么这么改,有兴趣自行分析这个拿来直接用,对开发调试 释放权限,针对客户友好开发非常好。 阅读详情

原文网址


Android Custom UI: Making a Vintage Thermometer

Hi everyone. Today I would like to show how to design a simple yet cool-looking custom UI element for Android. Since an analog clock is already part of the standard UI, I came up with an vintage thermometer as an example.

The final result looks like this:

Here’s the list of nice features this custom view has:

  • A gradient metallic rim and a textured face
  • The logo changes its color depending on the temperature (as you can see in the screenshots)
  • A circle-bent title below the logo
  • A 3D hand with a shadow
  • The hand moves in a physically realistic fashion
  • And, of course, it shows the real temperature – based on the phone temperature sensor (if your phone has one)

Also, the thermometer view tries to be a good Android UI citizen:

  • Scales well to any size
  • Supports screen orientation changes and layout changes
  • Optimizes its drawing procedures, doesn’t eat CPU when the hand is not moving
  • Saves and restores its state gracefully when the activity is paused, re-created etc.
  • Reusable – not bound to any external code

If you’d like to know how to develop views of this kind, read on. It’s so easy and fun to do that you will be surprised.

Also, you can grab the code at the bottom of the article as usual. I suggest you do it right now since we will refer to it a lot in the following sections.

(In this article I won’t focus on code too much, because I want to highlight the sequence of steps you need to take to implement this custom view rather than code specifics. However, I will paste in the most interesting snippets.)

OK, time to start coding!

Step 1: Creating an Empty Custom View

I assume you are familiar with the built-in Android views such as TextView, ImageView and so on. We are going to develop our own custom view basically the same way that Android developers created the built-in components.

If you decide to build your own custom view from scratch, you unsurprisingly have to derive from a class called View. The first thing you need to do is to override the onMeasure() method. The onMeasure() takes two View.MeasureSpec instances, one for width and one for height, and is required to return the desired size of the view based on restrictions given in the MeasureSpec’s. It’s an interesting method and you should read the corresponding reference docs before you try to override it.

Back to our thermometer. What we want to achieve in onMeasure() is that we want to keep our custom view square, i.e. keep the width equal to the height — regardless of what the MeasureSpec restrictions are. You can read the code in Thermometer.onMeasure() to see how it is done.

Here’s an illustration of how the thermometer scales to different sizes:

After you override onMeasure() correctly, you have created the simplest view possible – a spacer that does not display anything, just takes some layout space. Now let’s draw something.

By the way, I called my view class Thermometer, without the word view in the name, inspired by the standard AnalogClock.

Step 2: Drawing the Parts

The most interesting callback in the View class is onDraw(). We get a Canvas instance as a parameter. The Canvas is the Android interface to 2D graphics, used to draw everything you see on the screen except stuff that is drawn using OpenGL (usually 3D games and stuff). There is a handful of auxiliary classes that help you define colors, brushes, gradients and so on in the same android.graphics package.

In today’s 3D world, I really love to do some old-school 2D graphics from time to time.
For this example, I was inspired by vintage Coca-Cola thermometers, such as this one.

I won’t describe all the code in details here so watch the steps and read the code to see how I draw the entire thermometer:

Scaling

We use the scale() method in Canvas to change the 2D coordinate space from width x height to 1.0 x 1.0 regardless of the current custom view size. This allows us to draw stuff based on float coordinates ranging from 0.0 to 1.0 (remember, width and height are kept equal by onMeasure() – that simplifies scaling a bit). Here’s a snippet from onDraw():

?
1
2
3
float scale = ( float ) getWidth();
canvas.save(Canvas.MATRIX_SAVE_FLAG);
canvas.scale(scale, scale);

Apparently, if we want to scale from width to 1.0, scale should be set to width.
We use the Canvas.save() method together with the Canvas.restore() to restore the canvas to the initial state before we exit the onDraw() method (although we are not explicitly required to do so by the API).

The Rim

Method: drawRim(), see the initDrawingTools() method for tool definitions.

The first thing we draw is the metallic rim. We use a Paint with a LinearGradient shader to achieve the metallic look. Then we just draw a dark circle outline around the filled circle to make the entire drawing look better on different backgrounds.

Note how the gradient direction is not vertical but a bit skewed. I think the result looks more realistic like that. In general, you should play along with your 2D graphics for a while before the result looks good to you.

The Face

Method: drawFace(), see the initDrawingTools() method for tool definitions.

Now let’s draw the face. We will use a Bitmap based texture for it. Generally, textures can become a problem for scaled 2D graphics because they look bad both when scaled too large and when scaled too small. In this case, however, we would not be able to achieve the worn scratched look without a good texture. The only other Bitmap we will use will be the logo.

In order to fill a primitive with a bitmap texture, use the BitmapShader class. It works fine. Don’t forget to call thesetFilterBitmap() method in your Paint instance with true to make the bitmap scale smoothly.

What we also draw here is the inner circular shadow that makes the rim look kind of 3D (closer to the camera than the face). We use a RadialGradient to do that. It’s cool that we can make a gradient with different alpha values for each color like in this case, so that we can make the beginning of the gradient more transparent than the end.

The Scale

Method: drawScale(), see the initDrawingTools() method for tool definitions.

To draw the scale, we need to use more canvas transformations. Knowing how many scale nicks we have, we know how many degrees we have per nick. Then we use Canvas.rotate() to draw each nick and the number where necessary.

Note how we use Paint.setTextScaleX() to make the font a bit narrower. In my opinion, this makes the font look a bit more vintage.

In the end, we call Canvas.restore(), and the canvas is back to its un-rotated state.

(Sorry, non-US guys, the scale is in Fahrenheit. I’m not from the US either, so it was a good exercise for me when I tested the thermometer. :) )

The Title

Method: drawTitle(), see the initDrawingTools() method for tool definitions.

The title is the bent orange text “mindtherobot.com” at the bottom of the thermometer face.

In order to draw it, I used a very powerful method: Canvas.drawTextOnPath(). You can do many cool text effects with it sincePath can be any shape, including arcs, polygons, circles and so on. In our case we use an arc.

Remember, you can use Paint.setTextAlign() to align the text in the middle of the path like in this example.

The Logo

Method: drawLogo(), see the initDrawingTools() method for tool definitions.

The logo is just a bitmap I took from this blog’s header. However, I used a LightingColorFilter to re-color the bitmap depending on the temperature.

The logo is green at 40F, it turns red when the temperature is above 40F and blue when it is below. This looks especially cool when the hand is moving.

The Hand

Method: drawHand(), see the initDrawingTools() method for tool definitions.

A hand is just a Path that we fill with a solid color and rotate using canvas transformations.

The interesting part is the shadow. We draw it using Paint.setShadowLayer() to draw it. It is called a “temporary API” in the docs, however for now it works so I will use it.

The problem is that the shadow rotates together with the path. In the real world, it should have the same offset regardless of the hand angle since the light source is not moving. We could fix it by anti-rotating the shadow using sine and cosine functions but I leave this as an exercise to the most pedantic of you. Since the arrow is not moving a lot and the shadow is pretty subtle, I don’t see much of a problem in that right now.

Also, please note that the hand is not drawn when we don’t know the temperature (perhaps the sensor did not give us an update yet).

So this is how we draw all parts of the thermometer. It is important to try to achieve the desired look first, and only then start optimizing the drawing procedures. By the way, optimization is our next step.

Step 3: Optimization

Once we have an idea of how our view will change depending on parameters, we can notice that some parts are static and some are moving. I suggest drawing the parts that do not move onto a Bitmap and draw them all together using a simple Canvas.drawBitmap() call in onDraw(). This way we trade some memory for performance.

In our case, the parts that do not move are the rim, the face, the scale and the title. The logo changes depending on the temperature, and so does the hand – so we need to redraw them every time.

Thus we add the following code to onSizeChanged():

?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
// free the old bitmap
if (background != null ) {
   background.recycle();
}
 
background = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);
Canvas backgroundCanvas = new Canvas(background);
float scale = ( float ) getWidth();
backgroundCanvas.scale(scale, scale);
 
drawRim(backgroundCanvas);
drawFace(backgroundCanvas);
drawScale(backgroundCanvas);
drawTitle(backgroundCanvas);

As you can see, we can use our drawXXX() method with any Canvas, and here we substitute the “real” Canvas provided to us in onDraw() with a Canvas that draws to our buffer Bitmap (background).

Then, in onDraw() we do the following:

?
1
canvas.drawBitmap(background, 0 , 0 , backgroundPaint);

And only after that we draw the moving parts:

?
1
2
drawLogo(canvas);
drawHand(canvas);

This is the simple optimization that should save some CPU cycles, especially when the hand is moving. Now let’s see what makes it move?

Step 4: Mechanics

Motion effects look most real when they are backed by real-world physical calculations. In our case, the hand has the following mechanical properties:

  1. handPosition – the current position of the hand (in degrees)
  2. handTarget – the target position of the hand (in degrees). If the position is not equal to the target, we need to move the hand.
  3. handVelocity – how many degrees the hand moves per second, can be positive or negative
  4. handAcceleration – how many degrees per second are added to the velocity per second. You might need to recall 7th grade physics if you don’t quite understand.
  5. lastHandMoveTime – the previous moment when we moved the hand. Needed for frame-rate independent animation. (Ask me in a comment if you don’t know what I mean here.)

And remember, you can’t use == to compare floats because of precision issues, unless you’re comparing to zero. Use Math.abs() of their difference (abs(a – b) < 0.001).

Step 5: State Saving & Getting the Temperature

Have a look at the onSaveInstanceState() and onRestoreInstanceState() methods. If you don’t do what is done there, you will lose all the state (in our case, the hand mechanics parameters) whenever the view is recreated. It can be recreated in various situations, for example when the screen orientation changes, so you should be ready for that. Also, please note how we save and restore the super state. It is required to do so.

I do not plan to describe how exactly to use the temperature sensor because I plan to write another post about sensors in general. Just wanted to add that on my Motorola Droid temperature updates arrive at a very slow rate, perhaps once or twice a minute, so sometimes you need to be patient when you wait for the hand to appear and to move.

Conclusion

We just created a cool looking, animated custom view from scratch. I hope you enjoyed this article. Feel free to ask questions, point to bugs and just show your feelings in the comments.

And one final note: don’t screw up the phone when testing the thermometer. Don’t put it into the fridge for too long. :)


RK3576-Android16-实现开机动画自定义-动态替换bootanimation.zip 开机动画本身分三个不分:uboot 、 kernel 、 Android 三个部分开机动画。我们这里只讲Android层的开机动画,开机动画本身打包到镜像里面去,现在需求就是可以动态替换开机动画实现开机动画自定义、客户可控的功能。平台是RK3576 Android16 方案这里核心是其它根据个人需求,无关紧要代码在Android16 平台上,动态替换开机动画的一次尝试折腾了固化的只读分区,暂未成功,但是自己的方案data 分区也是一个尝试,可以完美解决实际需求。 阅读详情

相关推荐

AndroidCustomUI

Android自定义UI

腾讯开源的Android UI框架——QMUI Android

各位同学,早上好,我是你们的老朋友D_clock爱吃葱花,前些天忙着发版本,最近也在看各种各样的新知识,有好多东西想写啊啊啊啊啊。嗯,先冷静捋一下,卖个关子。扯回正题,今天继续为大家推荐一个Github上的开源框架——QMUI Android,出品自腾讯广州研发部QMUI团队。https://github.com/QMUI如果是做Web开发的同学,应该会很熟悉QMUI所开源的QMUI Web框架,

技术视界 4万+

告别概念晕眩:用TC3xx SMU和TLF35584的配置实例,搞懂ASIL D功能安全落地

本文通过英飞凌TC3xx系列MCU的SMU模块与TLF35584电源管理芯片的协同配置实例,详细解析了如何实现符合ASIL D功能安全标准的刹车辅助ECU。文章涵盖SMU报警源配置、响应动作类型、TLF35584的安全状态管理,以及构建完整安全闭环的实践方法,帮助工程师将抽象的安全概念落地为具体设计方案。

weixin_30647065的博客 444

说说如何自定义 Android 的 UI 控件

所有控件都是直接或间接继承自 View 的,所有布局都是直接或间接继承自 ViewGroup 的。View 是 Android 中一种最基础的 UI 组件,它可以在屏幕上绘制一块矩形区域,并能响应这块区域中的各种事件。而 ViewGroup 则是一种特殊的 View,它可以包含很多的子 View和子 ViewGroup,是一种可用于放置控件和布局的容器。 1 引入布局 我们来创建...

读万卷书,行万里路 1216

【自动驾驶学习笔记——Prescan和Simulink 学习笔记和问题记录(1)】

主要记录一些Prescan/Simulink 联合仿真出现的问题。

ly1336545868的博客 1472

银河麒麟V10 SP1忘记密码?3分钟搞定单用户模式密码重置(附详细截图)

本文详细介绍了银河麒麟V10 SP1操作系统忘记登录密码后的应急恢复方法。核心是通过GRUB引导菜单进入单用户模式,无需密码即可获得root权限,从而快速重置用户密码。文章提供了从捕捉GRUB界面、编辑启动参数到执行密码修改命令的完整步骤图解与常见问题解决方案,帮助用户在几分钟内恢复系统访问。

w3x4y的博客 949

Android自定义控件----初级 实现多个Activity复用同个自定义控件

一步一步详细介绍自定义控件的开发流程。 这边介绍一个最为原始的自定义控件demo------多个activity公用某个自定义控件。 主要步骤如下: 1.编写自定义控件的layout文件; 2.实现自定义控件的动作; 3.在需要添加自定义控件的activity的layout中加入自定义控件。 接下来按步骤一步一步实现。 自定义控件Layout文件 : customui.xml layout中主要...

fuhonghui12345的博客 1108

别再死记硬背了!用Wireshark抓包实战,5分钟搞懂GRE、L2TP、IPsec的区别

本文通过Wireshark抓包实战,详细解析GRE、L2TP和IPsec三大隧道协议的核心差异与应用场景。从报文结构到配置示例,帮助网络工程师快速掌握这些协议的本质,提升VPN部署与故障排查能力。特别适合准备HCIP认证的工程师深化理解。

weixin_30352645的博客 443

然而Android Custom UI

hurry up !

14k iOS dev tips 499

TI单芯片毫米波雷达1642demo代码走读(一)

今天我们来实际看下代码。 首先使用CCS软件导入demo工程,工程有两个,一个是ARM的工程,工程名是mmw_mss_16xx;另一个是DSP的工程,工程名为mmw_dss_16xx。我们将这两个工程的主函数打开,分别位于mss_main.c和dss_main.c文件中。 先看mss的主函数,代码如下。我为每行代码都加了中文注释和自己的理解。 int main (void) { Task_Params taskPara...

1万+

C#上位机通信层封装:西门子S7NetPlus库的优雅使用

支持S7-1200/1500(机架号0,槽号1)、S7-300/400(机架号/槽号需根据实际配置);支持位(Bit)、字节(Byte)、字(Word)、双字(DWord)、浮点数(Float/Double)等数据类型的读写;支持DB块、输入寄存器(I)、输出寄存器(Q)、内存寄存器(M)、定时器(T)、计数器(C)的操作;轻量无依赖,兼容.NET 5+。首先定义核心枚举和常量,统一规范参数类型,避免硬编码。/// 西门子PLC型号(对应不同的机架/槽号默认配置)

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 1096

MySQL 分片集群的备份别堆本地盘:用 Vitess 把备份落进 RustFS

Vitess 把 MySQL 拆成很多分片,一个分片跑在一台 tablet 上。备份要是还落在每台 tablet 自己的本地盘里,分片一多就散成一地,真要恢复的时候还得挨个去找哪台机器存了哪份。更现实的麻烦是本地盘一旦坏掉,那份备份跟着就没了,分片越密,单点越稠。Vitess 自带一套 S3 兼容的备份存储实现,能把每个分片的备份直接写进对象存储。用 RustFS 当这个 S3 后端,所有分片的…

分布式存储与RustFS的博客 912

uniapp [全端兼容] - 实现内网使用天地图离线地图,详解项目加载天地图的离线地图服务器部署与使用教程示例源码,Uniapp如何实现天地图的离线加载部署在内网访问(兼容H5、微信小程序、App)

uniapp天地图如何离线访问,无需网络调用天地图API,天地图离线地图,天地图——内网使用离线地图,uniapp中加载天地图的离线地图,uniAPP实现天地图离线访问,在内网中无法直接使用外网天地图资源怎么办,在uni-app中加载地图 -使用天地图的瓦片数据。UNIAPP天地图离线怎么使用,内网部署天地图,天地图离线瓦片,部分瓦片数据,天地图如何离线,下载天地图离线服务,并用Uniapp+天地图离线部署,天地图私有化部署,实现离线加载天地图,Java+uniapp天地图离线开发,uniapp项目中无网络

🏆 前端领域优质创作者 4919

MySQL 备份恢复(日志管理和备份)

MySQL日志用于排错、性能分析及数据恢复。主要日志包括错误日志(记录启动、关闭及运行错误)、通用查询日志(记录客户端所有操作)。通过配置文件my.cnf可指定日志路径,如log_error = error.log。使用SHOW VARIABLES LIKE 'log_error'查看错误日志位置。通用查询日志需开启general_log = ON并指定文件路径。日志对故障排查和数据恢复至关重要。

Y_P_W的博客 208

【保姆级教程】基于UNet++&MobileNetv2的语义分割模型从训练到RK3588部署:让边缘AI落地效率提升300%

通过SMP库一键构建encoder_name="mobilenet_v2", # 选择MobileNetv2作为骨干encoder_weights="imagenet", # 加载预训练权重加速收敛in_channels=3, # 输入图像通道数(RGB)classes=29, # Cityscapes数据集类别数activation=None # 输出无激活,便于后续损失计算本教程从“模型设计-训练-转换-边缘部署”全链路拆解了。

FJN110的博客 217

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

CRMEB Pro 秒杀库存:高并发下的扣减写法

秒杀二开别只改活动价。三处要一起减,且必须在创单事务里。

weixin_39475803的博客 218

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

Android的APK 集成到 AOSP 源码的方法和流程介绍

1. 目录# 3. device.mk 中添加# 4. 编译编译完成后,APK 就会出现在下,烧录镜像后系统自带该应用。

ZZXTIANMING的博客 272

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

RK3588边缘计算:YOLOv8 使用Android NDK部署_笔记1

RKNN Model Zoo基于 RKNPU SDK 工具链开发, 提供了目前主流算法的部署例程. 例程包含导出RKNN模型, 使用 Python API, CAPI 推理 RKNN 模型的流程.支持RK3562RK3566RK3568RK3576RK3588RV1126B平台。部分支持RV1103RV1106支持RV1109RV1126RK1808平台。1、rknn_model_zoo官网地址。

m0_60657960的博客 200

Android 玩机进阶:刀盾环境 ROOT 工具箱(ADB隐藏/免授权)与 Zygisk / Vector / HMA-OSS 配置教程

本文基于「刀盾环境 App」实拍,详解刷入内核后配置ROOT工具箱(含深度隐藏调试、ADB免弹授权等6大功能)及模块中心六大入口,手把手演示通过Zygisk+Vector+HMA-OSS在线安装与激活全流程,四步完成双模块部署,重启后三界面核验确保生效,助力高效实现系统级定制与风控规避。

专注安卓前沿科技 218

MySQL 基本查询(下)

注意:8.0 的窗口函数在 5.7 中没有直接等价写法,通常要用自连接或用户变量模拟,迁移成本较高,需单独评估。注意:下面所涉及到的SQL代码都是兼容5.7版本,其字符集和校验规则是兼容5.7和8.0的写法。是原子操作,新旧表在一条语句内完成替换,避免“先删后插”中途失败导致数据不一致。CRUD 的操作对象是表,所以先给出完整、可直接执行的建表脚本。聚合,是为了满足 5.7/8.0 默认开启的。案例:删除表中的重复记录,重复数据只保留一份。作用:对查询到的结果进行列值更新。的查询结果直接插入到目标表中。

qq_73640809的博客 225

安卓APK资源混淆加密重签名工具2.1.0更新说明

安卓APK资源混淆加密重签名工具2.1.0版全面强化应用保护,支持代码与资源全方位加固,涵盖DEX加壳、字符串加密、类名混淆、SO/Assets加密、防调试反编译等。新增垃圾代码注入、随机资源干扰、Manifest伪造、DEX垃圾信息等抗AI逆向功能,支持批量处理与自定义签名。优化重命名速度与命名合理性,提升稳定性,修复多处兼容性及崩溃问题,操作简便,无需环境配置,适合开发者高效防护应用安全。

H5开发技术 194

侧载 APK 后台服务起不来排查:Android 14 foregroundServiceType 与前台服务类型权限

有一类闪退很有迷惑性:应用能装、能打开、主界面一切正常,但只要点「开始录音」「后台同步」「开启导航」「投屏」「连接手表」,立刻闪退或者功能静默失效。卸载重装、清缓存、换下载源都没用。看日志才会发现,崩的不是界面代码,而是系统把一次前台服务(Foreground Service,简称 FGS)启动拦下来了。这个问题在侧载 APK 上格外高发,原因有三个:一是侧载包的常常比商店版旧,或者被改包者动过;二是 Android 14 起系统对 FGS 的类型声明与权限做了强校验,改包时删掉一行就会直接崩;

qq362196705的专栏 145

安卓demo-自定义tab indicator

本组件是组合式自定义 view按模式构建子 view根据 tab 数量决定等分(contentContainer 直接挂 FrameLayout)或侧滑(HorizontalScrollView 包裹),每次 setTabList 全量重建;indicator 复用(首次创建后不 new,背景保留避免重建闪白),重建前保存旧 leftMargin 设回避免从 0 闪。等分用 weight / 侧滑固定宽:等分模式 tab 用;侧滑模式 tab 用固定宽,加防文字挤。

mix39的博客 248

文件包含漏洞

这题就是典型原理:PHP 的直接接收用户可控参数,没有过滤file://伪协议,直接读取服务器根下/flag文件。

qq_73552461的博客 167
上一篇: Android Booting (Android 引导过程)
下一篇: How to Cross Compile the Bash shell for Android 1.5 (为Android平台编译Bash shell)
AutoAsm
博客等级 码龄27年 27粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址