We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No description provided.
The text was updated successfully, but these errors were encountered:
`private void changeFragment(int currentPosition) { FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
switch (currentPosition) { case 0: //tabImageView1.setColorFilter(color); if (homeFragment == null) { homeFragment = new HomeFragment(); } transaction.replace(R.id.fl_content, homeFragment); break; case 1: //tabImageView2.setColorFilter(color); if (videoFragment == null) { videoFragment = new VideoFragment(); } transaction.replace(R.id.fl_content, videoFragment); break; case 2: //tabImageView3.setColorFilter(color); if (aboutFragment == null) { aboutFragment = new AboutFragment(); } transaction.replace(R.id.fl_content, aboutFragment); break; default: break; } //transaction.replace(R.id.fl_content, mFragmentList.get(currentPosition)); transaction.commit(); }`
这个方法里改成这样,要新建homeFragment,videoFragment,aboutFragment,这三个XML文件
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: