These are anonymous inner classes.
For example:
Button button = (Button) findViewById(R.id.Button); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) {
In this example, the anonymous inner class is a subclass of View.OnClickListener .
Matt ball
source share