只显示一行:
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100); dragListView.setLayoutParams(layoutParams);滑动问题:
dragListView.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) { sv_outline.requestDisallowInterceptTouchEvent(false); } else { sv_outline.requestDisallowInterceptTouchEvent(true); } return false; } });