You need to override the methods of View.OnTouchListener interface instead of making your activity as abstract so remove abstract
public class MainActivity extends AppCompatActivity
implements View.OnTouchListener, NavigationView.OnNavigationItemSelectedListener{
// other code and methods of NavigationView.OnNavigationItemSelectedListener
@Override
public boolean onTouch(View v, MotionEvent event) {
return true;
}
}
Alternatively you can use Add unimplemented methods option from error help or press Ctrl + I to view the list of unimplemented methods
Note : abstract class cannot be instantiated so read Why can't an object of abstract class be created?
Android OS will create an object of your launcher activity internally or it's also done while using Intent to start an activity
Reference
Abstract Classes
Interface