当前位置:网站首页>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);
}
}
});
边栏推荐
- Leetcode 178 Score ranking (June 27, 2022)
- 【软件分析】软件分析、设计与建模迭代式详解
- pymysql. Error get error code and specific error information
- Don't ask me how to do UI automation test again
- Along with the notes: methods simulating array like classes
- Machine learning 4-dimension reduction technology
- Thinking about lever
- 剑指 Offer 12. 矩阵中的路径
- stm32F407-------寄存器地址名称映射分析
- 这样学习二叉树
猜你喜欢

"Five considerations" for safe use of the Internet

stm32F407-------LCD

stm32F407-------跑马灯、蜂鸣器

Notes: three ways to define setters and Getters

Machine learning 6-decision tree

10. Standard i/o redirection and pipeline

stm32F407-------RTC实时时钟

Trois questions PWN

Don't ask me how to do UI automation test again

Quartz explanation and use
随机推荐
图片64base转码与解码
Notes: three ways to define setters and Getters
Yes, use local_ setup. Bash or setup bash
What are some tips to improve your interview success rate?
stm32F407-------寄存器地址名称映射分析
Matlab learning notes (6) upsample function and downsample function of MATLAB
stm32F407-------LCD
What pitfalls should be avoided in the job interview for the operation post in 2022?
小白创业做电商,选对商城系统很重要!
【SSM】报错 Access denied for user ‘WYF‘@‘localhost‘ (using password: YES) 数据的用户名变成了电脑的用户名
随笔记:模拟类数组(array-like)的方法
Stm32f407----- capacitive touch button
股票开户在网上开通安全吗?
What are the virtual machine software? What are their respective roles?
pymysql. Error get error code and specific error information
Scrapy uses xlwt to implement the exporter that exports data in Excel format
Online yaml to JSON tool
MNIST handwritten numeral recognition demo based on pytorch framework
Blue Bridge Cup top ten common heaven level skill - breath of water The type of one recursion
Typescript -- Section 2: variable declaration