开发者

android listview last visible line

开发者 https://www.devze.com 2022-12-16 14:29 出处:网络
In my application, i\'ve a list view, if the last visible line is truncated and I scroll down to this line, I wish that the line becomes 开发者_StackOverflowfully visible. I have to scroll down once m

In my application, i've a list view, if the last visible line is truncated and I scroll down to this line, I wish that the line becomes 开发者_StackOverflowfully visible. I have to scroll down once more for it to become fully visible.


May be requestChildRectangleOnScreen can help. See http://developer.android.com/reference/android/widget/ListView.html


I found! My list is not very high but his lines are quite high. So I overloaded getMaxScrollAmount method which by default is limited to one third of the total height of the list.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号