原文:In Java, How do I simplify my code using inheritance? (Android Dev.)
In various activities I have very similar methods. For example: @Override public void onClick(View v) { switch (v.getId()) { case R.id.ibHome: Intent menuIntent = new Intent(v....