注意在設(shè)置滑動監(jiān)聽器那里是給主活動設(shè)置,不是給子view設(shè)置監(jiān)聽器
findViewById(R.id.testAvtivity).setOnTouchListener(new View.OnTouchListener()
findViewById(R.id.testAvtivity).setOnTouchListener(new View.OnTouchListener()
2019-08-27