# coolMenu **Repository Path**: archermind-ti/coolmenu ## Basic Information - **Project Name**: coolMenu - **Description**: A Cool Cards Menu Concept - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-11-18 - **Last Updated**: 2021-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # coolMenu coolMenu 通过菜单方式切换Fraction ## 演示效果 ![](img/coolmenu1.gif) ## 集成 With gradle: ```groovy dependencies { compile 'com.gitee.archermind-ti:coolMenu:1.0.0' } ``` ## 使用方式 #### 布局文件 ```xml ``` #### 代码设置 ```java coolMenuFrameLayout = (CoolMenuFrameLayout) findComponentById(ResourceTable.Id_rl_main); fractions.add(new Fraction1()); fractions.add(new Fraction2()); fractions.add(new Fraction3()); fractions.add(new Fraction4()); FractionListPageAdapter fractionList = new FractionListPageAdapter( ((MainAbility) getAbility()).getFractionManager(), ResourceTable.Id_rl_main) { @Override public int getCount() { return fractions.size(); } @Override public Fraction getItem(int position) { return fractions.get(position); } }; coolMenuFrameLayout.setAdapter(fractionList); String[] titles = {"CONTACT", "ABOUT", "TEAM", "PROJECTS"}; titleList = Arrays.asList(titles); coolMenuFrameLayout.setTitles(titleList); ``` ## 变动说明 新增 ```FactionListPageAdapter```提供方便向控件提供Fraction信息。 ## License `coolMenu` is available under the MIT license