Side-Menu.Android
作者:佚名 
  Side-Menu的更好的一種體現(xiàn)方式
 源碼簡介
Side-Menu的更好的一種體現(xiàn)方式
源碼運行截圖

源碼片段:
- protected void onCreate(Bundle savedInstanceState) {
 - super.onCreate(savedInstanceState);
 - setContentView(R.layout.activity_main);
 - if (savedInstanceState == null) {
 - contentFragment = ContentFragment.newInstance(R.drawable.content_music);
 - getSupportFragmentManager().beginTransaction()
 - .add(R.id.content_frame, contentFragment)
 - .commit();
 - }
 - drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
 - drawerLayout.setScrimColor(Color.TRANSPARENT);
 - linearLayout = (LinearLayout) findViewById(R.id.left_drawer);
 - linearLayout.setOnClickListener(new View.OnClickListener() {
 - @Override
 - public void onClick(View v) {
 - drawerLayout.closeDrawers();
 - }
 - });
 - setActionBar();
 - createMenuList();
 - viewAnimator = new ViewAnimator<>(this, list, contentFragment, drawerLayout, this);
 - }
 
源碼鏈接:http://down.51cto.com/data/1983055
責任編輯:chenqingxiang 
                    來源:
                    網(wǎng)絡整理
 














 
 
 



 
 
 
 