screenshot-tests-for-android 是来自 Facebook 的一个 Android 开发包,用于在 Android 程序中实现自动的屏幕截屏功能。
示例代码:
public class MyTests { @Test public void doScreenshot() { /* * Create and set up your view some how. This might be inflating, * or creating from a view class. You might want to set properties * on the view. */ View view = mLayoutInflater.inflate(R.layout.my_layout, null, false); /* * Measure and layout the view. In this example we give an exact * width but all the height to be WRAP_CONTENT. */ ViewHelpers.setupView(view) .setExactWidthDp(300) .layout(); /* * Take the actual screenshot. At the end of this call the screenshot * is stored on the device, and the gradle plugin takes care of * pulling it and displaying it to you in nice ways. */ Screenshot.snap(view) .record(); } }
教程 给 Android 开发者的 RxJava 详解 RxJava 在 GitHub 主页上的自我介绍是 "a library for composing asynchronous and event-based programs using observable sequences for the Java VM"(一个在 Java VM 上使用可观测的序列来组成异步的、基于事件的程序的库)。
This worked for me, mWebView.setBackgroundColor(Color.TRANSPARENT); At the bottom of this earlier mentioned issue there is an solution. It's a combination of 2 solutions. webView.setBackgroundColor(Co
Android Only These Capabilities are available only on Android-baseddrivers (like UiAutomator2for example). appActivity Activity name for the Android activity you want to launch from your package. Thi
Screenshot for Symbian OS 是 Symbian S60 第三版上的一个用来捕捉屏幕的开源小软件。
gnome-screenshot 是一款 GNOME桌面下的截图软件
Webpage Screenshot这个扩展不管是从功能上还是易用性上都非常不错,可以调整截屏的大小,而且是目前我所知道的唯一一个可以截取整个网页的截 屏扩展,当然也可以截取可见部分。同时在截屏之前可以对大小进行调整,支持多国语言界面,开发者Amina是中国人。另外,改扩展已经通过了Softpedia 网站的100% CLEAN认可,推荐有需要的同学安装此扩展。
tests
tests 跟测试相关的类和方法。 v1 var fakes.py keystone_client_fixtures.py test_build_info.py test_common_http.py test_environment_format.py test_events.py test_resource_types.py test_resources.py test_shell.py te
Android Screenshot Library (ASL) 可以让你通过编程的方式抓取Android设备的屏幕,不需要root权限。ASL使用的是一个在后台运行的本地服务。这个服务通过Android Debug Bridge(ADB)在设备启动的时候启动。