HorizontalVariableListView icon indicating copy to clipboard operation
HorizontalVariableListView copied to clipboard

move up and down

Open aporo001 opened this issue 12 years ago • 5 comments

Hi,

I use HorizontalVariableListView inside scrollview.It can't move up and down at the touch horizanallistview.

regard Kit

aporo001 avatar Jun 14 '13 07:06 aporo001

i have the same problem

lalmachado avatar Jun 16 '13 12:06 lalmachado

Hi!

I solved the problem.

In class HorizontalVariableListView

method onInterceptTouchEvent

case MotionEvent.ACTION_MOVE

I added

            else {

                final ViewParent parent = getParent();
                parent.requestDisallowInterceptTouchEvent( false );
            }

below if ( xDiff > mTouchSlop ) {}

aporo001 avatar Jun 17 '13 01:06 aporo001

nice! can you submit a pull request?

sephiroth74 avatar Jun 17 '13 04:06 sephiroth74

I override method

@Override public void onContentChanged() { super.onContentChanged();

     HorizontalVariableListView.setOnItemClickedListener( new OnItemClickedListener() {

        @Override
        public boolean onItemClick( AdapterView<?> parent, View view, int position, long id ) {

            do something.
        }
    } );

}

and in layout

add android:clickable="true"

aporo001 avatar Jun 17 '13 16:06 aporo001

can you submit a pull request?

lalmachado avatar Jun 26 '13 11:06 lalmachado