//根据index加载不同的Fragment V4包里面的
如果是android.support.v4.app.Fragment
getSupportFragmentManager()方法
supportFragmentManager.beginTransaction().replace(R.id.main_content, fragments[index]).commit()
如果是android.app.Fragment,则 fragmentManager.beginTransaction().replace(R.id.main_content, fragments[index]).commit()