How to reverse ListView scrolling behavior?

by Moto » Fri, 17 Sep 2010 10:07:55 GMT


Sponsored Links
 I have been trying now for a few hours to reverse the scrolling of
behavior of the ListView.  Essentially when scrolling down with my
finger I want the list to scroll up!  :)

Any tips?

Thanks!
-Moto

--



How to reverse ListView scrolling behavior?

by Kumar Bibek » Fri, 17 Sep 2010 14:50:38 GMT


 WHY??????????????? It's a touch phone, and not your desktop browser.

I have seen a few phones though, which have this weird behaviour, but
its odd.

-Kumar Bibek
 http://techdroid.kbeanie.com 




--


Sponsored Links


How to reverse ListView scrolling behavior?

by Indicator Veritatis » Fri, 17 Sep 2010 17:09:20 GMT


 The most important tip anyone can give you is GIVE UP! It is a bad
idea, since it would put your pseudo-ListView at odds with the entire
rest of the Android UI.




--



How to reverse ListView scrolling behavior?

by Moto » Fri, 17 Sep 2010 19:08:28 GMT


 Guys,

I appreciate your concern but come on, really?  You have no idea what
I'm trying to do here.  This behavior is not intended for regular
phone usage.  I'm experimenting with different behaviors.

I really apreciate if you would help me out and not jump into
conclussions.... :)

Thanks!
-Moto





--



How to reverse ListView scrolling behavior?

by amjath sharief » Fri, 17 Sep 2010 19:39:51 GMT


 Any feature which is user friendly should be there in any device, whether
its desktop or mobile that shouldn't matter. Hence just comment if the
feature requested by Moto is user friendly or not. If the answer is yes,
then that should be there, how weired someone feels. If the answer is no,
then just mention your reasons for saying why its not user friendly. thats
it.






>



How to reverse ListView scrolling behavior?

by Kumar Bibek » Fri, 17 Sep 2010 19:50:06 GMT


 It's not the way a touch phone user would expect the scrolling to
happen. So, as far as I am concerned, it's not user friendly.

-Kumar Bibek
 http://techdroid.kbeanie.com 

On Sep 17, 4:39pm, amjath sharief <amjathsharief.techsa...@gmail.com>





> >



How to reverse ListView scrolling behavior?

by Kumar Bibek » Fri, 17 Sep 2010 19:52:35 GMT


 > > Guys,

If you really want to achieve this, there is not shortcut. Implement
your own Touch listener and do it. It's possible, sure.

-Kumar Bibek
 http://techdroid.kbeanie.com 

On Sep 17, 4:39pm, amjath sharief <amjathsharief.techsa...@gmail.com>





> >



How to reverse ListView scrolling behavior?

by Moto » Fri, 17 Sep 2010 23:40:48 GMT


 I really don't care if it's user friendly or not!  Can you just give
up that discussion?

I asked a questions if anyone else had done this or had some pointers
to try to do this.  Its none of your business how I would like to use
this feature.  And just to make you feel better you can rest assure it
will not end up being used were users would expect a listview to
behave like a list view! :)

So please let's not argue about how user friendly the concept is or is
not...  I just need tips on how to achieve this...

Thanks,
-Moto







> > >



How to reverse ListView scrolling behavior?

by TreKing » Sat, 18 Sep 2010 00:38:05 GMT


 



If you come to this group asking for suggestions on how to do somethings
that is literally backwards, it does behoove you to explain the motivation.
There are many, many posts on here where people ask "how do I do X" and when
the motivation is explained, it turns out they should be doing "Y".
Understandably, trying to reverse the logic of a standard control reeks of
this type of post.



Then why use a list view?



OK. Either try extending ListView and overriding the appropriate methods (if
it's possible, not sure), or grab the ListView source, find where it
responds to user input and does the scrolling, then reverse it.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--



How to reverse ListView scrolling behavior?

by DanH » Sat, 18 Sep 2010 00:44:24 GMT


 On a different phone we ran into this.  In a particular context
"normal" scroll behavior was (almost) universally judged by users as
"backwards", even though a few screens later the situation was
reversed.

I think some folks need to come down off their high horses and accept
that ultimately one should do what works, vs what is "right" by the
book.






--



How to reverse ListView scrolling behavior?

by TreKing » Sat, 18 Sep 2010 00:48:56 GMT


 



What context? If this is clearly explained so the rest of us dumb folk
understand, it would be easier to climb down off the high horses.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--



How to reverse ListView scrolling behavior?

by Prakash Iyer » Sat, 18 Sep 2010 00:54:47 GMT


 Hmm... if I have turned the phone upside down. Or maybe a language that goes
from down to top;-)

Seriously though I don't see what the high horses here are. People have
pointed out, rather patiently, that the "normal" behavior is what is
implemented. Anything that goes against that can still be done but with some
work on part of the OP. One can argue forever on who defines normal of
course...






>



How to reverse ListView scrolling behavior?

by Kumar Bibek » Sat, 18 Sep 2010 00:58:56 GMT


 I haven't done that. Look at the source code of the ListView. You can
probably extend the ListView class, and override a few methods.

 http://android.git.kernel.org/?p=platform/frameworks/base.git ;a=blob;f=core/java/android/widget/AbsListView.java;h=f9ca8cb7a43b46e5f213c3c2c96bfbb099103609;hb=cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f

-Kumar Bibek
 http://techdroid.kbeanie.com 








> > > >



How to reverse ListView scrolling behavior?

by DanH » Sat, 18 Sep 2010 01:05:07 GMT


 In this particular context there was a simulated scroll wheel
superimposed over the edge of the scroll list (for reasons having to
do with the dynamics of the controls).  For some reason this changed
the user's perception of the control completely.  Basically, the user
saw the wheel as moving the highlight bar up/down vs moving the list
up/down.  (If you think about it, the scroll wheel on a mouse operates
the same way.)

I am sure there are other situations where similar perceptual issues
could arise, such as when scrolling some sort of a map.

And the OP certainly has a right (and perhaps legal obligation) to not
disclose the particulars of his application, in addition to simply not
wanting to hear even more of "You shouldn't be doing it that way".

In programming there are some definite "shoulds" and "shouldn'ts", but
in UI design far fewer -- it's basically "whatever works", combined
with a modest respect for convention/precedence.






--



How to reverse ListView scrolling behavior?

by Moto » Sat, 18 Sep 2010 01:06:45 GMT


 If it makes everyone HAPPY!  I'm essentially doing a small study on
user interface behavior.  I'm trying to test different behaviors of
the UI in particular cases.  One would be while driving.  "FYI, you
shouldn't be using your phone while driving..."

In the case of an inverted ListView scrolling behavior, I trying to
see how it feels to scroll when I have my hand extended out to the car
craddle holding the phone.

Here is what I'm trying to test, and I like to actually test not just
jump into a conclusion, ohh no this is not UI friendly...  ;)

*On a ListView usually more content is located below so you need to
scroll down which means you must move your finger up.  Making this
motion of moving the finger up can be very difficult when you are
extending your arm.  Also, if the air is a bit humid. By inverting the
list it might be better to scroll the content by moving your finger
down than up!

*******REMEMBER THIS IS A CASE STUDY*******

@TreKing
Thanks for at least hinting on a path. I have been trying to intercept
the touch events and trying to invert them but it's not really
working...  I'll continue to test and try to see if I can post some
code of what I'm doing.

-Moto





--



Other Threads

1. how to stop accelerometer sensor running in background?

I have an app where the accelerometer runs in the background and
continues to read values from the sensor even after the activity
exits.

Here is how I am trying to stop it

                    @Override
            protected void onStop()
            {
             mSensorManager.unregisterListener(mSensorListener, mySensor);
             super.onStop();

             }

Am I doing it wrong?

Abhi

-- 

2. How to show a loading image or an animation?

I have a search box and a web view in my activity.

I also have a search button which when someone clicks opens a the url
in the webview below the search box.

Everything is working fine except that it remains blank while the page
loads.
I want to show a loading message with a spinning icon/animation while
the page loads. [similar to one in the market app].

please let me know how to do it.
Thank you.

-- 

3. Cant find the solution for this GLSurfaceView error

4. N1 update announced

5. Bug report for 2.0.1. Click on EditText.

6. Paging Chapter Sunter-Kemayoran

7. porting ogre on Android