Skip to content

Commit e2b47a6

Browse files
authored
add ZN README.md
1 parent b9858eb commit e2b47a6

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

README_ZN.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<p align="center">
2+
<img width="72" height="72" src="art/icon.png"/>
3+
</p>
4+
<h3 align="center">ViewCapture</h3>
5+
<p align="center">
6+
<a href="https://github.com/HelloHuDi/ViewCapture/raw/master/app/release/app-release.apk" target="_blank"><img src="https://img.shields.io/badge/release-v1.4-blue.svg"></img></a>
7+
<a href="https://github.com/HelloHuDi/ViewCapture/raw/master/app/release/app-release.apk" target="_blank"><img src="https://img.shields.io/badge/demo-v1.4-blue.svg"></img></a>
8+
</p>
9+
10+
## 提供 View, ScrollView, HorizontalScrollView, ListView, RecyclerView, WebView 截图功能.
11+
12+
### RecyclerView 目前仅支持 LinearLayoutManager.VERTICAL 方向
13+
14+
### 支持 android sdk 版本 19+
15+
16+
## 添加依赖 :
17+
18+
```
19+
implementation 'com.hd.viewcapture:viewcapture:1.4'
20+
```
21+
22+
## code :
23+
24+
### 截图并保存到文件
25+
26+
```
27+
ViewCapture.with(v).asJPG().setOnSaveResultListener(this).save();
28+
```
29+
30+
### 截图获取bitmap
31+
32+
```
33+
ViewCapture.with(v).getBitmap();
34+
```
35+
36+
## 截图如下:
37+
38+
<img src="art/hscrollview.gif" width="280px" height="500px"/> <img src="art/listview.gif" width="280px" height="500px"/> <img src="art/recyclerview.gif" width="280px" height="500px"/>
39+
40+
<img src="art/scrollview.gif" width="280px" height="500px"/> <img src="art/view.gif" width="280px" height="500px"/> <img src="art/webview.gif" width="280px" height="500px"/>
41+
42+
43+
### License
44+
45+
Licensed under the Apache License, Version 2.0 (the "License");
46+
you may not use this file except in compliance with the License.
47+
You may obtain a copy of the License at
48+
49+
http://www.apache.org/licenses/LICENSE-2.0
50+
51+
Unless required by applicable law or agreed to in writing, software
52+
distributed under the License is distributed on an "AS IS" BASIS,
53+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54+
See the License for the specific language governing permissions and
55+
limitations under the License.

0 commit comments

Comments
 (0)