I\'m getting an error in this part of code:
private void displayView(int position) { // update the main content by replacing fragments Fragment fragm
you just have to import android.support.v4.app.Fragment; in the all the FragmentClass();. that's it.