Search in sources :

Example 1 with LayoutBoundsFloatyWindow

use of com.stardust.scriptdroid.ui.floating.layoutinspector.LayoutBoundsFloatyWindow in project Auto.js by hyb1996.

the class CircularMenu method showLayoutBounds.

@Optional
@OnClick(R.id.layout_bounds)
void showLayoutBounds() {
    mWindow.collapse();
    if (!ensureCapture()) {
        return;
    }
    mCaptureDeferred.promise().done(capture -> {
        LayoutBoundsFloatyWindow window = new LayoutBoundsFloatyWindow(capture);
        mActionViewIcon.post(() -> FloatyService.addWindow(window));
    });
}
Also used : LayoutBoundsFloatyWindow(com.stardust.scriptdroid.ui.floating.layoutinspector.LayoutBoundsFloatyWindow) Optional(butterknife.Optional) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)1 Optional (butterknife.Optional)1 LayoutBoundsFloatyWindow (com.stardust.scriptdroid.ui.floating.layoutinspector.LayoutBoundsFloatyWindow)1