I have two views and both view have listview and second listview overlap the first view in half screen. onitem click my audio play and selected item highlight. when audio change it give highlight to next row and play audio. Now i want when ever the audio end the next view set on top of screen. but last view is not working not set on top i am using this line of CODE
lsvwarbic.setScrollY(vyt.getHeight()+5*getHeights()/100);
Try setSelection() in your code. But after calling setSelection(), call yourAdapter.notifyDataSetChanged();
NotifyDataSetChanged() will recreate your listview and update the ui.
Hope it will work for you :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.