/** * Set the margins of the view. * * @param horizontalMargin The horizontal margin, in percentage of the container width, between * the container's edges and the notification * @param verticalMargin The vertical margin, in percentage of the container height, between the * container's edges and the notification */ public void setMargin(float horizontalMargin, float verticalMargin) { mTN.mHorizontalMargin = horizontalMargin; mTN.mVerticalMargin = verticalMargin; }