Try using AbsListView.pointToPosition() to determine the list item for the X,Y coordinate in your list view If you're using the recipe from 937313 you should be able to override onFling() more or less as follows: Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { try { Toast. MakeText( listAdapter. GetItem( listView.
PointToPosition(e1.getX(), e1.getY() ).toString() ); return super.onFling(); } catch( Exception e ) { // do nothing } }.
Try using AbsListView.pointToPosition() to determine the list item for the X,Y coordinate in your list view. If you're using the recipe from #937313, you should be able to override onFling() more or less as follows: @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { try { Toast. MakeText( listAdapter.
GetItem( listView. PointToPosition(e1.getX(), e1.getY() ).toString() ); return super.onFling(); } catch( Exception e ) { // do nothing } }.
PointToPosition() takes int and not float as arguments so use Math. Round(e1.getX()), Math. Round(e1.getY()) instead of directly using e1.getX(), e1.getY() – FreewheelNat Dec 7 '10 at 11:25.
How to best handle fling gesture for Android ListActivity - Stack Overflow.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.