CustomMenu是一个自定义的控件,可以帮助你快速创建Menu
- 只用左菜单
- 只用右菜单
- 左右菜单一起用
- 左右菜单都不用,CustomMenu相当于是一个布局
CustomMenu customMenu = new CustomMenu(this);
//设置中间布局
ImageView contentView = new ImageView(this);
contentView.setBackgroundResource(R.drawable.main_view);
customMenu.setContentView(contentView);
//设置左菜单
ImageView leftMenu = new ImageView(this);
leftMenu.setBackgroundResource(R.drawable.left_view);
customMenu.setLeftMenu(leftMenu);
//设置右菜单
ImageView rightMenu = new ImageView(this);
rightMenu.setBackgroundResource(R.drawable.left_view);
customMenu.setRightMenu(rightMenu);
如果发现问题,请 emailto:zhaotengfei9@gmail.com



