Are you hungry? The linkage effect of two listviews on the ordering interface

The picture is the effect picture

It's a hungry ordering interface

1. Click the listview on the left to change the color by setting item in the adapter, and then refresh through notifydatasetinvalidated and use Lv_ home. setSelection(showTitle.get(arg2)); To associate the right

2. The on the right is mainly to rewrite the onscroll method; To change the color and background of the listview on the left

However, there is another problem in the program. I hope God can answer that when the listview on my right drops down, the textview above can be changed; However, when pulling up, the textview cannot be changed in time. I only took the firstvisibleitem to judge when sliding

Connection of Demo: http://download.csdn.net/detail/qq_29774291/9634011

The following is the main program code

Adapter code of listview on the left

Adapter code on the right

The above is the linkage effect of two listviews in the imitation hungry ordering interface introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

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
分享
二维码
< <上一篇
下一篇>>