FileDocCategorySizeDatePackage
AttachInfo_Accessor.javaAPI DocAndroid 5.1 API1798Thu Mar 12 22:22:44 GMT 2015android.view

AttachInfo_Accessor

public class AttachInfo_Accessor extends Object
Class allowing access to package-protected methods/fields.

Fields Summary
Constructors Summary
Methods Summary
public static voiddispatchOnPreDraw(View view)

        view.mAttachInfo.mTreeObserver.dispatchOnPreDraw();
    
public static voidsetAttachInfo(View view)

        Context context = view.getContext();
        WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
        Display display = wm.getDefaultDisplay();
        ViewRootImpl root = new ViewRootImpl(context, display);
        AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(),
                display, root, new Handler(), null);
        info.mHasWindowFocus = true;
        info.mWindowVisibility = View.VISIBLE;
        info.mInTouchMode = false; // this is so that we can display selections.
        info.mHardwareAccelerated = false;
        view.dispatchAttachedToWindow(info, 0);