# Custom-Navigation-Drawer
**Repository Path**: chinasoft5_ohos/Custom-Navigation-Drawer
## Basic Information
- **Project Name**: Custom-Navigation-Drawer
- **Description**: 抽屉菜单导航,从一个页面切换到另一个页面时,它具有平滑的放大,缩小动画。
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 2
- **Forks**: 1
- **Created**: 2021-06-16
- **Last Updated**: 2023-01-10
## Categories & Tags
**Categories**: harmonyos-menu
**Tags**: None
## README
# Custom-Navigation-Drawer
--------------------------
### 项目介绍
- 项目名称:Custom-Navigation-Drawer
- 所属系列:openharmony的第三方组件适配移植
- 功能:抽屉菜单导航,从一个页面切换到另一个页面时,它具有平滑的放大,缩小动画。
- 项目移植状态:主功能完成
- 调用差异:无
- 开发版本:sdk6,DevEco Studio2.2 beta1
- 基线版本:Release v0.0.1
### 效果演示
   
   
### 安装教程
1.在项目根目录下的build.gradle文件中,
```
allprojects {
    repositories {
          maven {
                    url 'https://s01.oss.sonatype.org/content/repositories/releases/'
                }
    }
}
```
2.在entry模块的build.gradle文件中,
```
    implementation('com.gitee.chinasoft_ohos:Custom-Navigation-Drawer:1.0.0')
```
在sdk6,DevEco Studio2.2 beta1下项目可直接运行
如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件,
并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下
### 使用说明
1.在布局文件中加入SNavigationDrawer控件,代码实例如下:
```
  
          
      
```
2.然后在你的AbilitySlice或者Fraction中使用:
```
    //Global Declaration
    SNavigationDrawer sNavigationDrawer;
    private final ArrayList mFragments = new ArrayList<>();
    private FractionChangeManager manager;
    //Inside onStart()
    sNavigationDrawer = (SNavigationDrawer) findComponentById(ResourceTable.Id_navigationDrawer);
            List