# BackgroundLibrary **Repository Path**: andlin/BackgroundLibrary ## Basic Information - **Project Name**: BackgroundLibrary - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-18 - **Last Updated**: 2024-09-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BackgroundLibrary A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml) issue回复不及时,可以添加qq群887686934 ![](https://user-gold-cdn.xitu.io/2018/9/11/165c6e5c0cff0548?w=681&h=233&f=png&s=31240) [English.md](https://github.com/JavaNoober/BackgroundLibrary/blob/master/README-EN.md) 依赖方式: allprojects { repositories { ... maven { url 'https://jitpack.io' } } } implementation "com.android.support:appcompat-v7:$supportVersion" implementation 'com.github.JavaNoober.BackgroundLibrary:library:1.7.6' 如果项目使用了androidx: allprojects { repositories { ... maven { url 'https://jitpack.io' } } } implementation "androidx.appcompat:appcompat:$supportVersion" implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.6' ## 使用文档 **无需任何代码,直接加入bl标签属性即可,与原生view无缝衔接**,具体使用方法以及属性内容请查看[wiki](https://github.com/JavaNoober/BackgroundLibrary/wiki) **重要的事情说3遍!!!** [wiki](https://github.com/JavaNoober/BackgroundLibrary/wiki) [wiki](https://github.com/JavaNoober/BackgroundLibrary/wiki) [wiki](https://github.com/JavaNoober/BackgroundLibrary/wiki) ## 示例效果 ![](https://raw.githubusercontent.com/JavaNoober/BackgroundLibrary/master/test/show.gif) 使用效果完全和原生shape selector一样,但是只需要直接在xml中加入属性即可,例如 1、边框+背景+圆角 等同于 2、渐变 等同于