MCPcopy Index your code
hub / github.com/HelloHuDi/ViewCapture

github.com/HelloHuDi/ViewCapture @1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.4 ↗ · + Follow
166 symbols 462 edges 33 files 27 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img width="72" height="72" src="https://github.com/HelloHuDi/ViewCapture/raw/1.4/art/icon.png"/>

ViewCapture

提供 View, ScrollView, HorizontalScrollView, ListView, RecyclerView, WebView 截图功能.

RecyclerView 目前仅支持 LinearLayoutManager.VERTICAL 方向

支持 android sdk 版本 19+

添加依赖 :

implementation 'com.hd.viewcapture:viewcapture:1.4'

code :

截图并保存到文件

ViewCapture.with(v).asJPG().setOnSaveResultListener(this).save();

截图获取bitmap

ViewCapture.with(v).getBitmap();

截图如下:

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Extension points exported contracts — how you extend this code

CaptureCallback (Interface)
Created by hd on 2018/5/30 . [4 implementers]
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/CaptureCallback.java
WindowCaptureCallback (Interface)
(no doc) [4 implementers]
viewcapture/src/main/java/com/hd/viewcapture/capture/view/WindowCapture.java
ScrollCaptureHelper (Interface)
Created by hd on 2018/2/8 . Scroll Capture [2 implementers]
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/ScrollCaptureHelper.java
OnSaveResultListener (Interface)
(no doc) [1 implementers]
viewcapture/src/main/java/com/hd/viewcapture/CaptureManager.java
BitmapProcessor (Interface)
(no doc) [1 implementers]
viewcapture/src/main/java/com/hd/viewcapture/CaptureManager.java

Core symbols most depended-on inside this repo

createBitmap
called by 13
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/WindowCaptureFragment.java
setActionBarTitle
called by 8
app/src/main/java/com/hd/viewcapture/demo/BaseActivity.java
report
called by 8
viewcapture/src/main/java/com/hd/viewcapture/capture/view/WindowCapture.java
captureView
called by 7
app/src/main/java/com/hd/viewcapture/demo/BaseCaptureActivity.java
getCaptureManager
called by 7
viewcapture/src/main/java/com/hd/viewcapture/ViewCapture.java
report
called by 7
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/CaptureCallback.java
notifyListener
called by 5
viewcapture/src/main/java/com/hd/viewcapture/CaptureManager.java
setRecycleView
called by 4
app/src/main/java/com/hd/viewcapture/demo/RecyclerViewActivity.java

Shape

Method 129
Class 32
Interface 5

Languages

Java98%
Kotlin2%

Modules by API surface

viewcapture/src/main/java/com/hd/viewcapture/CaptureManager.java30 symbols
app/src/main/java/com/hd/viewcapture/demo/BaseCaptureActivity.java14 symbols
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/VerticalScrollCaptureHelper.java9 symbols
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/HorizontalScrollCaptureHelper.java9 symbols
app/src/main/java/com/hd/viewcapture/demo/SplashActivity.java9 symbols
viewcapture/src/main/java/com/hd/viewcapture/CaptureType.java8 symbols
viewcapture/src/main/java/com/hd/viewcapture/capture/view/WindowCapture.java7 symbols
viewcapture/src/main/java/com/hd/viewcapture/capture/view/WebViewCapture.java7 symbols
viewcapture/src/main/java/com/hd/viewcapture/capture/helper/WindowCaptureFragment.java7 symbols
app/src/main/java/com/hd/viewcapture/demo/RecyclerViewActivity.java7 symbols
viewcapture/src/main/java/com/hd/viewcapture/capture/Capture.java4 symbols
app/src/main/java/com/hd/viewcapture/demo/WebViewActivity.java4 symbols

For agents

$ claude mcp add ViewCapture \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact