GuillotineMenu(铡刀菜单的使用)-Android

Home / Android MrLee 2015-6-23 3937

一个开源的android工程,编译器用的是android-studio。GuillotineMenu-Android我们暂且翻译为铡刀菜单吧,确实挺像一铡刀一样切下来…… 看下效果图:

154406y271i24xzi4fpwgc


操作步骤 1.包含本地库工程 2.导航菜单必须在ActionBar上 3.在onCreate函数中添加以下代码
new GuillotineAnimation.GuillotineBuilder(guillotineMenu, guillotineMenu.findViewById(R.id.guillotine_hamburger), contentHamburger)
            .setActionBarViewForAnimation(toolbar)
            .build();

编译版本:Android 4.0.3 Ice Cream Sandwich (API level 15)
申明:
Copyright 2015, Yalantis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
工程地址:GuillotineMenu-Android-master

本文链接:https://www.it72.com/3547.htm

推荐阅读
最新回复 (0)
返回