分类侧滑菜单 Side Menu

码农软件 · 软件分类 · Android UI 组件 · 2019-04-26 07:42:09

软件介绍

Side Menu 是用于安卓的分类侧滑菜单。

示例代码:

    ViewAnimator viewAnimator = 
new ViewAnimator<>(ActionBarActivity.this,                                    
new ArrayList<Resourceble>(),
(LinearLayout) findViewById(R.id.left_drawer), 
contentFragment, drawerLayout);    
//to open menu you have to override ActionBarDrawerToggle method 
            @Override
            public void onDrawerSlide(View drawerView, float slideOffset) {                
              super.onDrawerSlide(drawerView, slideOffset);                
              if (slideOffset > 0.6 && viewAnimator.getLinearLayout().getChildCount() == 0)
                    viewAnimator.showMenuContent();
            }            public void onDrawerClosed(View view) {                
                super.onDrawerClosed(view);
                viewAnimator.getLinearLayout().removeAllViews();
                viewAnimator.getLinearLayout().invalidate();
            }


本文地址:https://www.codercto.com/soft/d/4403.html

Flexible Rails

Flexible Rails

Peter Armstrong / Manning Publications / 2008-01-23 / USD 44.99

Rails is a fantastic tool for web application development, but its Ajax-driven interfaces stop short of the richness you gain with a tool like Adobe Flex. Simply put, Flex is the most productive way t......一起来看看 《Flexible Rails》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

html转js在线工具
html转js在线工具

html转js在线工具