# TopMenuBar **Repository Path**: renchunlin/topMenuBar ## Basic Information - **Project Name**: TopMenuBar - **Description**: Android 自定义组合控件实例,顶部通用菜单栏,kotlin - **Primary Language**: Kotlin - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-05-13 - **Last Updated**: 2021-05-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TopMenuBar顶部通用菜单栏 #### 介绍 Android 自定义组合控件实例,顶部通用菜单栏使用kotlin编写,你可以java代码调用也可以使用kotlin调用,自定义化程度高,控件整体分为三部分,左边按钮,中间按钮,右边按钮,分别都可以设置只显示文字还是图片,文字的颜色,字体大小,字体加粗,设置图片,图片大小,按钮距离左右间距,设置控件整体背景颜色和控件高度 [![](https://jitpack.io/v/com.gitee.renchunlin/topMenuBar.svg)](https://jitpack.io/#com.gitee.renchunlin/topMenuBar) ![屏幕截图](https://images.gitee.com/uploads/images/2021/0514/140202_03816304_5141471.png "屏幕截图 2021-05-14 140010.png") ### 属性介绍 attrs.xml ``` ``` ### 使用方法 #### 添加依赖 ##### build.gradle ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` #### add的build.gradle ``` dependencies { implementation 'com.gitee.renchunlin:topMenuBar:v1.1' } ``` #### 布局中引用 ``` ```