如何确保在浓缩咖啡中显示插页式广告

时间:2016-05-20 11:55:27

标签: android android-espresso startapp

因为我想在OnResume中显示startapp插页式广告

private void menuAnimation(Container c) {
    int w = Display.getInstance().getDisplayWidth();
    int h = Display.getInstance().getDisplayHeight();
    int[] positionX = {-100, w / 2, w + 100, w + 100, w + 100, w / 2, -100, -100};
    int[] positionY = {-100, -100, -100, h / 2, h + 100, h + 100, h + 100, h / 2};
    for (int iter = 0; iter < c.getComponentCount(); iter++) {
        Component cmp = c.getComponentAt(iter);
        cmp.setY(positionY[iter % positionY.length]);
        cmp.setX(positionX[iter % positionX.length]);
    }
}

如何测试espresso中显示的广告

0 个答案:

没有答案