Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamgyf authored Nov 2, 2022
1 parent ac6f01d commit d19a9a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
![FastInflate](./logo.png)
<img src="./logo.png" width="66%"/>

#

![Android](https://img.shields.io/badge/-Android-brightgreen)
![Kotlin](https://img.shields.io/badge/-Kotlin-blueviolet)
[![version](https://img.shields.io/badge/version-0.1.0--alpha--03-red)](https://github.com/dreamgyf/FastInflate/releases/tag/v0.1.0-alpha-03)
[![stars](https://img.shields.io/github/stars/dreamgyf/FastInflate)](https://github.com/dreamgyf/FastInflate/stargazers)
[![LICENSE](https://img.shields.io/github/license/dreamgyf/FastInflate)](https://github.com/dreamgyf/FastInflate/blob/master/LICENSE)

编译期时解析布局xml文件,将LayoutInflater中的反射实例化转成普通的实例化,以此来提高布局加载的性能

Expand All @@ -8,7 +16,6 @@

**目前暂不支持多`module`项目,不支持多`layout`目录(比如`layout-v23`),`<include />`标签不支持使用`theme`属性**


**注:编译此项目请直接 clone 父工程 [AndroidLibraries](https://github.com/dreamgyf/AndroidLibraries)**

## 引入依赖
Expand All @@ -31,4 +38,4 @@ dependencies {
// 使用FastInflate代替LayoutInflater即可,如下
// LayoutInflater.from(this).inflate(R.layout.activity_main, null)
FastInflate.from(this).inflate(R.layout.activity_main, null)
```
```

0 comments on commit d19a9a2

Please sign in to comment.