# CommonTitleBar **Repository Path**: ym521/commontitlebar ## Basic Information - **Project Name**: CommonTitleBar - **Description**: 自定义TitleBar - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-02 - **Last Updated**: 2024-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: 自定义顶部标题栏, titlebar, 标题栏 ## README # commontitlebar #### 介绍 自定义TitleBar #### 使用说明 1. ###### 添加jitpack 仓库 Android Gradle Plugin 为 v7.1.0 以下版本:进入项目根目录,打开 “build.gradle” 文件,在 “allprojects” 中加入如下代码: ```xml ... allprojects { repositories { maven { url 'https://jitpack.io' } mavenCentral() google() } } ``` 当您的 Android Gradle Plugin 为 v7.1.0 或以上版本:进入项目根目录,打开 “settings.gradle” 文件,在 “dependencyResolutionManagement” 中加入如下代码: ```xml ...dependencyResolutionManagement{ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { maven { url 'https://jitpack.io' } mavenCentral() google() } } ``` 2. ###### 添加依赖 [![](https://jitpack.io/v/com.gitee.ym521/commontitlebar.svg)](https://jitpack.io/#com.gitee.ym521/commontitlebar) ```gradle implementation 'com.gitee.ym521:commontitlebar:latest version' ```