Listview on android, scroll only with scrollbar - android

Is it possible in Android to create a Listview and on the right a custom scrollbar so that the scroll for the ListView would only work if someone presses on the scrollbar area?
So if a person clicks on the first 70% of the width it would select an item in the ListView, but if they clicked on the right 30% there would be a scrollbar and it would not select any items in the ListView, but would only scroll the ListView?

I think a normal listview should be able to do that a.

Related

I can't focus to first item on gridview when I did on talkback on Android application

I build an Android application. But I have a littile problem.
This is Talk-back problem.
If I did on talkback that I can' focus move to first item on gridview.
I did set grid item height at getvView. If I remove set grid item height that I can move to focus first item on gridview.
I want to resize gridview item height.
But if I did that I can't move to focus first item on gridview.
please help me.

scroll list item to bottom of screen

What I'm trying to do:
When a list Item is clicked, I want the list to scroll until that Item is sitting on the bottom of the screen.
What I'm currently trying:
myList.smoothScrollToPosition((adapter.getView(position, view, parent)).getBottom());
What's happening there is that the list is scrolling all the way to the bottom, rather than to the bottom of that view.
how can I accomplish this?
if you need more code samples, just let me know :)

Android ListView scrolls to top after visibility change of an item

I've have a listview with some items inside it.
For some of these items, when the users clicks on a button, the buttons is hidden and a status label is showed.
This works fine, but the problem is that the listview scrolls to the top everytime I change the visibility of some item inside a listview.
Any suggestion to avoid this?
I want the listview to stay where it is.

ListView scrolling with Up/Down button click bug

I have a listview, which is scrollable, with dynamically items loaded from the database. And I have two buttons, "UP" for scrolling up by 100 pixels and "Down" for scrolling down by 100 pixels also.
The problem is that after I click down or up, the screen scrolls but after that all items in listview are not selectable at their right place. For example, I press down key and it scrolls well but after that I click item3 and it accepts item1 as clicked object.
I have tried ListView.refreshDrawableState() but it doesn't work.
You might want to use the setSelection() method instead of scrolling the list by 100 pixels each time. Increment the selection when you're scrolling down and decrement it while scrolling up. This will assure that the right item is being clicked. Hope this helps.

Show entire list item in ListView

Each list item in my ListView has a button on it. When clicked, the list item grows in height and presents some extra options.
When that list item is near the bottom, those options run off screen. I'd like to make my ListView scroll a small amount to ensure the entire list item is visible.
setSelection(position) will accomplish this. However, it is not desirable as it scrolls that item to the top of the list. I just want the list item to scroll up as little as it takes to get the entire item on the screen.
Ideas?
Give SmoothScroll a shot, that might be what your looking for.

Categories

Resources