DevsmartLib-Android icon indicating copy to clipboard operation
DevsmartLib-Android copied to clipboard

How to let horizontal listview could be use “setSelection” (I want the listview comes out in the middle position)

Open cymcsg opened this issue 12 years ago • 9 comments

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.

cymcsg avatar Jun 18 '13 07:06 cymcsg

I have the same problem. Did you get solution?

gityan avatar Aug 15 '13 15:08 gityan

@gityan I used a way of repeat of items instead of horizontal listview. What a pity

cymcsg avatar Aug 17 '13 15:08 cymcsg

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.

gityan avatar Aug 18 '13 11:08 gityan

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

antoni-alvarez avatar Nov 05 '13 20:11 antoni-alvarez

I am facing same issue @TonyAlvarez is horizontalListView.setSelection work after changing dev library with your link. I tried but no result, please help

dimitrireef avatar Feb 19 '14 08:02 dimitrireef

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.

gityan avatar Feb 19 '14 08:02 gityan

Thanks you .setSelectionFromLeft() did the job. :)

dimitrireef avatar Feb 19 '14 09:02 dimitrireef

Whats the alternative solution to scroll (like smoothScrollToPosition).PLease help

jinnings avatar Jun 30 '15 05:06 jinnings

my life for @gityan

jeongwoohwan avatar Mar 05 '18 08:03 jeongwoohwan