@Test public void testCalcScreenRectF() { mActivity.addContentView(mCoachmarkView, new LinearLayout.LayoutParams(200, 200)); RectF mRectF = mCoachmarkView.calcScreenRectF(); Assert.assertEquals(200.0f, mRectF.width()); Assert.assertEquals(200.0f, mRectF.height()); Assert.assertEquals(0.0f, mRectF.left); Assert.assertEquals(0.0f, mRectF.top); }
public RectF calcScreenRectF() { return new RectF(0, 0, getWidth(), getHeight()); }
CoachmarkView extends FrameLayout implements CoachmarkViewLayout, AnimationListener { public RectF calcScreenRectF() { return new RectF(0, 0, getWidth(), getHeight()); } }
CoachmarkView extends FrameLayout implements CoachmarkViewLayout, AnimationListener { public RectF calcScreenRectF() { return new RectF(0, 0, getWidth(), getHeight()); } CoachmarkView(Context context);  CoachmarkView(Context context, AttributeSet attrs);  CoachmarkView(Context context, AttributeSet attrs, int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  CoachmarkView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes); }
CoachmarkView extends FrameLayout implements CoachmarkViewLayout, AnimationListener { public RectF calcScreenRectF() { return new RectF(0, 0, getWidth(), getHeight()); } CoachmarkView(Context context);  CoachmarkView(Context context, AttributeSet attrs);  CoachmarkView(Context context, AttributeSet attrs, int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  CoachmarkView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes); @Override void onAnimationFinished(); CoachmarkView show(); @NonNull RectF calcActionArrowRect(); RectF calcActionDescriptionRect(); RectF calcDescriptionRect(); RectF calcScreenRectF(); RectF calcCircleRectF(); @Override boolean isInEditMode(); void setActionDescription(View actionDescription); void setDescription(View description); void setActionDescriptionRenderer(ActionDescriptionRenderer... actionDescriptionRenderer); void setDescriptionRenderer(DescriptionRenderer descriptionRenderer); void setView(View view); void setButtonRenderer(ButtonRenderer buttonRenderer); void setBackColor(int backColor); void setPaddingAroundCircle(int paddingAroundCircle); @Override void dismiss(); void setAnimationRenderer(AnimationRenderer animationRenderer); void setDismissListener(DismissListener listener); }
CoachmarkView extends FrameLayout implements CoachmarkViewLayout, AnimationListener { public RectF calcScreenRectF() { return new RectF(0, 0, getWidth(), getHeight()); } CoachmarkView(Context context);  CoachmarkView(Context context, AttributeSet attrs);  CoachmarkView(Context context, AttributeSet attrs, int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  CoachmarkView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes); @Override void onAnimationFinished(); CoachmarkView show(); @NonNull RectF calcActionArrowRect(); RectF calcActionDescriptionRect(); RectF calcDescriptionRect(); RectF calcScreenRectF(); RectF calcCircleRectF(); @Override boolean isInEditMode(); void setActionDescription(View actionDescription); void setDescription(View description); void setActionDescriptionRenderer(ActionDescriptionRenderer... actionDescriptionRenderer); void setDescriptionRenderer(DescriptionRenderer descriptionRenderer); void setView(View view); void setButtonRenderer(ButtonRenderer buttonRenderer); void setBackColor(int backColor); void setPaddingAroundCircle(int paddingAroundCircle); @Override void dismiss(); void setAnimationRenderer(AnimationRenderer animationRenderer); void setDismissListener(DismissListener listener);  }