screenshot-tests-for-android Android 开发包开源项目

我要开发同款
匿名用户2016年02月12日
120阅读

技术信息

开源地址
https://github.com/facebook/screenshot-tests-for-android
授权协议
BSD

作品详情

screeshot-tests-for-adroid是来自Facebook的一个Adroid开发包,用于在Adroid程序中实现自动的屏幕截屏功能。

示例代码:

public class MyTests {  @Test  public void doScreeshot() {    /*     * Create ad set up your view some how. This might be iflatig,     * or creatig from a view class. You might wat to set properties     * o the view.     */    View view = mLayoutIflater.iflate(R.layout.my_layout, ull, false);    /*     * Measure ad layout the view. I this example we give a exact     * width but all the height to be WRAP_CONTENT.     */    ViewHelpers.setupView(view)      .setExactWidthDp(300)      .layout();    /*     * Take the actual screeshot. At the ed of this call the screeshot     * is stored o the device, ad the gradle plugi takes care of     * pullig it ad displayig it to you i ice ways.     */    Screeshot.sap(view)      .record();  }}

功能介绍

screenshot-tests-for-android 是来自 Facebook 的一个 Android 开发包,用于在 Android 程序中实现自动的屏幕截屏功能。 示例代码:
pub...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论