当前位置:网站首页>Adapt to the pits in Huawei models
Adapt to the pits in Huawei models
2022-06-21 08:36:00 【WCanTouch】
First of all, let me roast about the compatibility of Huawei machines Bad , If the full score is 10 If you divide up , At most 3 branch .
1. The most common Huawei models are listview Click no response ;
This is because if item.xml includes button perhaps checkbox Other controls , By default list Of item You lose focus , It's not responding item Events , The most common solution is to tem.xml In the layout file of descendantFocusability attribute .
beforeDescendants:viewgroup Takes precedence over its subclass controls to get focus
afterDescendants:viewgroup Get focus only when its subclass control doesn't need to get focus
blocksDescendants:viewgroup Will override the subclass control and get the focus directly
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:descendantFocusability="blocksDescendants"><!-- Add this property -->
<checkBox>...
<Button>...
</LinearLayout>If you encounter other problems later, continue to add ... To be continued
边栏推荐
- Diary (C language summary)
- Linux环境下MySQL的安装过程
- Markdown rule for writing articles
- Give two strings S and T, and judge whether T is the word formed after rearrangement of S
- Post process basic notes (important items)
- Eureka's timedsupersortask class (periodic task with automatic interval adjustment)
- Mono fourni avec l'unit é 5 peut également supporter C # 6
- doc常用语法,更新中……
- Gql+nodejs+mysql database
- 基于Retrotfit2.1+Material Design+ijkplayer开发的一个APP
猜你喜欢

Abstractqueuedsynchronizer (AQS) source code detailed analysis - semaphore source code analysis

Showctf starter file contains series

怎么搭建深度学习框架?

Linux Installation of Damon database /dm8 (with client tool installation full version)

Qsort sort string

26. Hikvision camera configuration and preliminary test

Tidb3.0- 4.0 memory control / modification log saving days / maximum index length

Linux安装达梦数据库/DM8(附带客户端工具安装完整版)

leetcode:19. 删除链表的倒数第 N 个结点

5分钟搞懂MySQL - 行转列
随机推荐
Unity development related blog collection
Unity 5 自帶的Mono也可以支持C# 6
Base de données de sauvegarde DumpLiNg
What should I do if a white page appears during MySQL installation
doc常用语法,更新中……
Retrofit扩展阅读
Abstractqueuedsynchronizer (AQS) source code detailed analysis - lock competitive resource analysis
tidb4.0.0遇见的问题、报错总结(tiup部署)
26. Hikvision camera configuration and preliminary test
5 minutes to understand MySQL - row to column
C # implement callback
Doc common syntax, updating
Markdown rule for writing articles
Topic34——31. 下一个排列
STL教程2-MyArray框架实现
日記(C語言總結)
Client construction and Optimization Practice
leetcode:打印两个有序链表的公共部分
This article takes you to interpret the advertising advantages of tiktok
Reading method (three times reading method)