|
|
@@ -44,6 +44,12 @@ public class WhActivity extends BaseActivity { |
|
|
|
viewPager.setOffscreenPageLimit(4); |
|
|
|
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void onWindowFocusChanged(boolean hasFocus) { |
|
|
|
super.onWindowFocusChanged(hasFocus); |
|
|
|
} |
|
|
|
|
|
|
|
private void initTopBar() { |
|
|
|
mTopBar.setTitle("系统维护"); |
|
|
|
mTopBar.addLeftImageButton(R.mipmap.fanhui,R.id.topbar).setOnClickListener(new View.OnClickListener() { |
|
|
@@ -53,12 +59,12 @@ public class WhActivity extends BaseActivity { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
FragmentAdapter fragmentAdapter=null; |
|
|
|
/** |
|
|
|
* viewPager里添加fragment |
|
|
|
*/ |
|
|
|
private void initFragment() { |
|
|
|
FragmentAdapter fragmentAdapter = new FragmentAdapter(getSupportFragmentManager()); |
|
|
|
fragmentAdapter = new FragmentAdapter(getSupportFragmentManager()); |
|
|
|
|
|
|
|
fragmentAdapter.addFragment(new SystemCsPLCFragment()); |
|
|
|
fragmentAdapter.addFragment(new SystemCsJrFragment()); |
|
|
|