OnTouchListener TouchLis = new OnTouchListener() {
@SuppressLint("NewApi")
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
if(event.getAction() == MotionEvent.ACTION_UP){
scrollview.requestDisallowInterceptTouchEvent(false);
}else{
scrollview.requestDisallowInterceptTouchEvent(true);
}
switch (v.getId()) {
case R.id.yundong_left:
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
yundong_left.setAlpha(0.5f);
break;
case MotionEvent.ACTION_UP:
yundong_left.setAlpha(1.0f);
String mString = MyConstants.GUIDE_LIST_URL+"?ID="+idlist.get(0);
Intent intent7 = new Intent(getActivity(), WebActivity.class);
intent7.putExtra("url", mString);
startActivity(intent7);
break;
}
break;
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-11-03 21:25:32