Side-Menu.Android

移动开发
Side-Menu的更好的一种体现方式

源码简介

Side-Menu的更好的一种体现方式
源码运行截图

源码片段:

  1. protected void onCreate(Bundle savedInstanceState) { 
  2.        super.onCreate(savedInstanceState); 
  3.        setContentView(R.layout.activity_main); 
  4.        if (savedInstanceState == null) { 
  5.            contentFragment = ContentFragment.newInstance(R.drawable.content_music); 
  6.            getSupportFragmentManager().beginTransaction() 
  7.                    .add(R.id.content_frame, contentFragment) 
  8.                    .commit(); 
  9.        } 
  10.        drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); 
  11.        drawerLayout.setScrimColor(Color.TRANSPARENT); 
  12.        linearLayout = (LinearLayout) findViewById(R.id.left_drawer); 
  13.        linearLayout.setOnClickListener(new View.OnClickListener() { 
  14.            @Override 
  15.            public void onClick(View v) { 
  16.                drawerLayout.closeDrawers(); 
  17.            } 
  18.        }); 
  19.   
  20.   
  21.        setActionBar(); 
  22.        createMenuList(); 
  23.        viewAnimator = new ViewAnimator<>(this, list, contentFragment, drawerLayout, this); 
  24.    } 

源码链接:http://down.51cto.com/data/1983055

责任编辑:chenqingxiang 来源: 网络整理
相关推荐

2015-02-12 13:55:21

Context-MenAndroid

2010-01-25 17:33:25

Android Men

2013-12-27 12:51:44

Android开发Android应用引路蜂

2013-12-27 13:00:30

Android开发Android应用Context Men

2014-12-31 13:24:19

drawer抽屉效果

2010-08-26 10:48:51

CSScaption-sid

2009-12-29 15:18:01

Ubuntu menu

2009-06-04 10:54:59

实战strutsMenu

2012-03-07 15:13:07

PhoneGapmenu菜单

2021-08-06 07:51:47

Redis 缓存系统

2010-12-12 21:01:00

Android控件

2009-06-05 10:05:50

struts menustruts2

2021-01-27 13:26:21

鸿蒙HarmonyOS应用开发

2009-02-16 19:28:34

Mandriva200Edit menusMain Menu

2013-06-08 17:35:46

Android开发移动开发XML自定义菜单

2014-03-28 13:14:33

2021-09-24 14:38:44

ChromeSide Search微软

2021-02-22 14:56:55

鸿蒙HarmonyOS应用开发

2009-08-21 10:28:34

Ubuntu应用程序解决办法

2010-02-04 17:13:23

Ubuntu安装
点赞
收藏

51CTO技术栈公众号