About listview nested GridView in Android

problem

In Android development, there is a problem that listview is nested with GridView. You need to click the item of the whole listview to jump. However, when you click the GridView area, you cannot jump to the page. This is because GridView gets the focus. It makes clicking unable to jump.

The solution is:

1. Add

2. Add in the adapter

Conclusion

Well, this problem is so simple to solve. I hope the content of this article can be helpful to friends with this problem.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>