当前位置:网站首页>EditText监听焦点
EditText监听焦点
2022-06-28 23:56:00 【xiyangyang8110】
numEdt.setOnFocusChangeListener(new android.view.View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
Log.e("Edit", "焦点状态:" + hasFocus);
if (hasFocus) {
//获取焦点
numDeleteIv.setVisibility(View.VISIBLE);
} else {
//失去焦点
//处理我们的实际计算需求
numDeleteIv.setVisibility(View.GONE);
}
}
});
边栏推荐
- 再次上榜!知道创宇入选2022中国网安产业竞争力50强
- The secondary market is full of bad news. How should the market go next? One article will show you the general trend
- Puma joins hands with 10ktf shop to launch its Web3 cooperation project with the largest scale so far
- PHP函数file_get_contents与操作系统的内存映射
- Is it safe to open a stock account on the Internet?
- 好用免费的PPT模板
- Edge extraction based on Halcon learning [2] circles Hdev routine
- Learning fuzzy from SQL injection to bypass the latest safe dog WAF
- IO playback function of FIO
- Typescript -- Section 5: classes
猜你喜欢

The second session of question swiping and clock out activity -- solving the switching problem with recursion as the background (III)

Online yaml to JSON tool

PHP uses endroid/qrcode QR code to generate, and Gd library generates sharing posters

How many locks are added to an update statement? Take you to understand the underlying principles

Stm32f407------- external interrupt

What are some tips to improve your interview success rate?

这样学习二叉树

Stm32f407 ------- GPIO input experiment

Windows10 phpstudy installing redis extension

Sword finger offer 12 Path in matrix
随机推荐
Association line exploration, how to connect the two nodes of the flow chart
TypeScript -- 第六节 泛型
再次上榜!知道创宇入选2022中国网安产业竞争力50强
Ahai's advice
ctfshow XSS
fio的IO重放功能
Rongyun communication solution solves the pain points of enterprise communication
Typescript -- Section 3: Interface
Quartz explanation and use
Mobile heterogeneous computing technology - GPU OpenCL programming (basic)
PHP 使用endroid/qrcode 二维码生成, GD库生成分享海报
SQL note 2 [MySQL]
Advice to friends
【OpenCV】—线性滤波:方框滤波、均值滤波、高斯滤波
Windows10 phpstudy installing redis extension
The second session of question swiping and clock out activity -- solving the switching problem with recursion as the background (III)
Edge extraction based on Halcon learning [2] circles Hdev routine
百度知道爬虫,根据问题id,线索id,评论id获取评论下面的对话
stm32F407-------时钟系统(SystemInit时钟初始化、Systick滴答定时器)
【狀態機設計】Moore、Mealy狀態機、三段式、二段式、一段式狀態機書寫規範