Huawei Map Inside Nested Scroll
I need to intercept on Touch Event, so I created a CustomSupportMapFragment, but never get the onTouchEvent, I have the same code for the GMS version and goes fine. So I don't know
Solution 1:
You should intercept the touch where you are doing the logic instead of building the new fragment type using the following:
View view = inflater.inflate(R.layout.fragment_test, container, false);
view.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_MOVE){
//do something
}
returntrue;
}
});
//here the rest of your codereturn view;
You can also refer to some similar topics here.
Post a Comment for "Huawei Map Inside Nested Scroll"