android.view.View.getMeasuredHeight C# (CSharp) Method

getMeasuredHeight() public method

public getMeasuredHeight ( ) : int
return int
        public virtual int getMeasuredHeight()
        {
            return global::MonoJavaBridge.JavaBridge.CallIntMethod(this, global::android.view.View.staticClass, "getMeasuredHeight", "()I", ref global::android.view.View._m156);
        }

Usage Example

        public void createVrToast(View toastView)
        {
            // Find how big the toast wants to be.
            toastView.measure(0, 0);
            toastView.layout(0, 0, toastView.getMeasuredWidth(),
                    toastView.getMeasuredHeight());

            Log.v(TAG,
                    "toast size:" + toastView.getWidth() + "x"
                            + toastView.getHeight());
            toastTexture.setDefaultBufferSize(toastView.getWidth(),
                    toastView.getHeight());
            try
            {
                Canvas canvas = toastSurface.lockCanvas(null);
                toastView.draw(canvas);
                toastSurface.unlockCanvasAndPost(canvas);
            }
            catch
            {
                Log.e(TAG, "lockCanvas threw exception");
            }

            nativePopup(appPtr, toastView.getWidth(), toastView.getHeight(), 7.0f);
        }
View