DevsmartLib-Android
DevsmartLib-Android copied to clipboard
How to let horizontal listview could be use “setSelection” (I want the listview comes out in the middle position)
I want to use a horizontal listview inside of listview.But DevsmartLib-Android can not use the function "setSelection" like listview.
I want the listview comes out in the middle position.
Thank you very much.
I have the same problem. Did you get solution?
@gityan I used a way of repeat of items instead of horizontal listview. What a pity
http://www.cnblogs.com/blog-wenfeng/archive/2013/04/15/3022327.html
I found a way to resolve it. Some one modified horizontallistview 1.5. Here is the 1.5.1, which can use setselection() method.
Thanks @gityan !!
Link to modified HorizontalListView class on GitHub:
https://github.com/bin-liu/TYComponent/blob/master/TangyuComponentProject/Source/src/com/tangyu/component/view/HorizontalListView.java
Also I need to copy the Utils class:
https://github.com/bin-liu/TYComponent/blob/master/TangyuComponentProject/Source/src/com/tangyu/component/Util.java
I am facing same issue @TonyAlvarez is horizontalListView.setSelection work after changing dev library with your link. I tried but no result, please help
Maybe,it's useful.You can use setSelectionFromLeft() to try.
------------------ 原始邮件 ------------------ 发件人: "dimitrireef";[email protected]; 发送时间: 2014年2月19日(星期三) 下午4:24 收件人: "dinocore1/DevsmartLib-Android"[email protected]; 抄送: "gityan"[email protected]; 主题: Re: [DevsmartLib-Android] How to let horizontal listview could be use “setSelection” (I want the listview comes out in the middle position) (#37)
I am facing same issue @TonyAlvarez is horizontalListView.setSelection work after changing dev library with your link. I tried but no result, please help
— Reply to this email directly or view it on GitHub.
Thanks you .setSelectionFromLeft() did the job. :)
Whats the alternative solution to scroll (like smoothScrollToPosition).PLease help
my life for @gityan