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
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ontouch Events for Android child controls conflict with external ScrollView