How to extend both fragment and AppCompatActivity to a same class?
问题 I have a class.I have extended Fragment to this class because I used fragments when developing Navigation Drawer. The code is below public class aboutSLFragment extends Fragment { public aboutSLFragment() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_about_sl, container, false); } @Override public void