1.先看图,是否是你想要的

 


2.布局文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:andro
></ListView>

</LinearLayout>

descendantFocusability属性的值有三种:
beforeDescendants:viewgroup会优先其子类控件而获取到焦点

      afterDescendants:viewgroup只有当其子类控件不需要获取焦点时才获取焦点

      blocksDescendants:viewgroup会覆盖子类控件而直接获得焦点

子控件设置:android:focusable="false"
---------------------
作者:富贵编程之路
来源:CSDN
原文:https://blog.csdn.net/zcf520android/article/details/51471018
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案