更新说明文档

pull/34/head
赵文文 5 years ago
parent bdd2386ad7
commit 011a1c5505
  1. 4
      README.md
  2. 4
      README_EN.md
  3. 2
      app/src/main/java/com/zww/sample/MainActivity.kt

@ -1,5 +1,5 @@
# open_nsfw_android # open_nsfw_android
[![](https://img.shields.io/badge/JCenter-1.3.7-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/Base-TensorFlow-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0) [ ![Download](https://api.bintray.com/packages/devzwy/maven/nsfw/images/download.svg) ](https://bintray.com/devzwy/maven/nsfw/_latestVersion) [![](https://img.shields.io/badge/Base-TensorFlow-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![](https://img.shields.io/badge/%E4%BD%9C%E8%80%85-赵文贇-orange.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/QQ-3648415-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) ![Plugin on redmine.org](https://img.shields.io/redmine/plugin/stars/redmine_xlsx_format_issue_exporter?color=1&logo=1) [![](https://img.shields.io/badge/%E4%BD%9C%E8%80%85-赵文贇-orange.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/QQ-3648415-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) ![Plugin on redmine.org](https://img.shields.io/redmine/plugin/stars/redmine_xlsx_format_issue_exporter?color=1&logo=1)
[English Doc](https://github.com/devzwy/open_nsfw_android/blob/dev/README_EN.md) [English Doc](https://github.com/devzwy/open_nsfw_android/blob/dev/README_EN.md)
@ -18,7 +18,7 @@
![图片](https://github.com/devzwy/open_nsfw_android/blob/dev/img/demopic.png) ![图片](https://github.com/devzwy/open_nsfw_android/blob/dev/img/demopic.png)
### 开始使用 ### 开始使用(从1.3.7版本开始,依赖从JetPack移动到Maven仓库,可直接在项目中依赖,无需添加jetpack支持)
- 开启tflite文件支持 - 开启tflite文件支持

@ -1,5 +1,5 @@
# open_nsfw_android # open_nsfw_android
[![](https://img.shields.io/badge/JCenter-1.3.7-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/Base-TensorFlow-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0) [ ![Download](https://api.bintray.com/packages/devzwy/maven/nsfw/images/download.svg) ](https://bintray.com/devzwy/maven/nsfw/_latestVersion) [![](https://img.shields.io/badge/Base-TensorFlow-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![](https://img.shields.io/badge/%E4%BD%9C%E8%80%85-Jason-orange.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/QQ-3648415-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) ![Plugin on redmine.org](https://img.shields.io/redmine/plugin/stars/redmine_xlsx_format_issue_exporter?color=1&logo=1) [![](https://img.shields.io/badge/%E4%BD%9C%E8%80%85-Jason-orange.svg)](https://github.com/devzwy/open_nsfw_android) [![](https://img.shields.io/badge/QQ-3648415-brightgreen.svg)](https://github.com/devzwy/open_nsfw_android) ![Plugin on redmine.org](https://img.shields.io/redmine/plugin/stars/redmine_xlsx_format_issue_exporter?color=1&logo=1)
[中文文档](https://github.com/devzwy/open_nsfw_android/blob/dev/README.md) [中文文档](https://github.com/devzwy/open_nsfw_android/blob/dev/README.md)
@ -18,7 +18,7 @@
### start use ### start use(As of version 1.3.7, dependencies are moved from jetpack to Maven repository, which can be directly dependent in the project without adding jetpack support)
- Open tflite support - Open tflite support

@ -21,6 +21,7 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main) setContentView(R.layout.activity_main)
mRecyclerView.layoutManager = GridLayoutManager(this, 2) mRecyclerView.layoutManager = GridLayoutManager(this, 2)
mRecyclerView.adapter = mRecyclerView.adapter =
object : BaseQuickAdapter<MyNSFWBean, BaseViewHolder>(R.layout.item_main) { object : BaseQuickAdapter<MyNSFWBean, BaseViewHolder>(R.layout.item_main) {
@ -39,7 +40,6 @@ class MainActivity : AppCompatActivity() {
this.setBackgroundColor(Color.parseColor("#803700B3")) this.setBackgroundColor(Color.parseColor("#803700B3"))
} }
} }
} }
} }

Loading…
Cancel
Save