当前位置:网站首页>Recyclerview switches the focus up and down through the dpad key. When switching to the control outside the interface, the focus will jump left and right
Recyclerview switches the focus up and down through the dpad key. When switching to the control outside the interface, the focus will jump left and right
2022-07-29 04:38:00 【Presenting a poet】
Reasons for focus jumping
Reasons for random jumping Android The design of native focus jump logic is like this ( Count as bug Well ).
The native logic is to calculate the next focus position according to the screen display position , But there will be problems when switching to the outside of the screen , For example 2 If the column is moved up to the screen, it will jump to 3 Column , The first 1 When the column moves down outside the screensaver , Will jump to the 1 Column .
terms of settlement
Ineffective solutions : rewrite dispatchKeyEvent, If it is at the bottom , When the key event is sent ,view Not yet created . Can't solve the off screen focus control .
Effective solutions :
rewrite requestChildFocus and dispatchKeyEvent.
package com.android.xxx.view;
import android.content.Context;
import <边栏推荐
- 安装spinning up教程里与mujoco对应的gym,报错mjpro150
- Visio draw grid
- 读懂 互联网巨头 【中台之战】 以及 中台 发展思维
- Corresponding order of 18 and 25coco data of openpose and joint points
- 使用容器部署Jenkins
- Google browser opens the web page and out of memory appears
- Mysql:The user specified as a definer (‘root‘@‘%‘) does not exist 的解决办法
- settings.xml
- Shell string segmentation
- 正确的用户拖拽方式
猜你喜欢

Google browser opens the web page and out of memory appears

Introduction and examples of parameters in Jenkins parametric construction

如何避免示波器电流探头损坏

There are objections and puzzles about joinpoint in afterreturning notice (I hope someone will leave a message)

Pytoch distributed training

命令行交互工具(最新版) inquirer 实用教程

Deploy Jenkins using containers

使用容器部署Jenkins

Pycharm reports an error when connecting to the virtual machine database

Definition and implementation of stack and queue (detailed)
随机推荐
Use of torch.optim optimizer in pytorch
Deploy Jenkins using containers
Record the Niua packaging deployment project
VScode配置makefile编译
Back propagation process of manual BP neural network
Tower of Hanoi classic recursion problem (C language implementation)
Don't insist on 66 days. Weight generates random numbers
论pyscript使用感想(实现office预览)
Nail dialog text converted to pictures cannot be copied and pasted on the document
Several simple and difficult OJ problems with sequential force deduction
Auto.js脚本开发环境搭建
Introduction and examples of parameters in Jenkins parametric construction
6.pytest生成allure报告
Understand the Internet giant [the war between China and Taiwan] and the development thinking of China and Taiwan
常见的限流方式
Not for 58 days. Implement prefix tree
Leetcode 686. KMP method of repeatedly superimposing strings (implemented in C language)
img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
Go面向并发的内存模型
Basic grammar of C language