public NotificationItem(Context context) {
    super(context);
    ruler = new WH(getContext());
    borderColor = ColorTable._D9D9D9;
    statusBarWidth = ruler.getW(3);
    statusBarColor = Color.BLACK;
    statusConstant = new CephNotificationConstant.StatusConstant(getContext());

    this.designSpec = ThemeManager.getStyle(context);
    messageTextStyle = new TextViewStyle(designSpec.getStyle().getBodyOne());
    triggeredTextStyle = new TextViewStyle(designSpec.getStyle().getNote());
    statusTextStyle = new TextViewStyle(designSpec.getStyle().getNote());
    backgroundColor = designSpec.getPrimaryColors().getBackgroundThree();
    topBottomPaddingOne = ruler.getW(designSpec.getPadding().getTopBottomOne());
    leftRightPaddingOne = ruler.getW(designSpec.getPadding().getLeftRightOne());
    stateIconSize = ruler.getW(designSpec.getIconSize().getSubhead());

    setViewBackgroundColor(backgroundColor);
    setViewPadding(
        leftRightPaddingOne, topBottomPaddingOne, leftRightPaddingOne, topBottomPaddingOne);
    setStatusBarWidth(statusBarWidth);
    setStatusBarColor(statusBarColor);
    setBorderColor(borderColor);
    setBorderWidth(3);
    setRadius(10);

    message = message();
    bottomContainer = bottomContainer(message);
    statusIcon = statusIcon();
    status = status(statusIcon);
    triggerTime = triggerTime(status);

    addView(message);
    addView(bottomContainer);
    bottomContainer.addView(statusIcon);
    bottomContainer.addView(status);
    bottomContainer.addView(triggerTime);
  }
  public CalculatorLayout(Context context) {
    super(context);
    ruler = new WH(getContext());
    designSpec = ThemeManager.getStyle(getContext());
    styleBodyTwo = new TextViewStyle(designSpec.getStyle().getBodyTwo());
    styleLargeButton = new TextViewStyle(designSpec.getStyle().getLargeButton());
    styleNote = new TextViewStyle(designSpec.getStyle().getNote());

    setPadding(
        (int) designSpec.getHorizontal().getHorizontalOneHeight(), 0,
        (int) designSpec.getHorizontal().getHorizontalOneHeight(), 0);

    fieldResult = fieldResult();
    unitHeightFillView = unitHeightFillView();
    fieldValue = fieldValue(unitHeightFillView);
    fieldUnit = fieldUnit(fieldValue, unitHeightFillView);
    fieldCondition = fieldCondition(fieldResult);
    numberBoard = numberBoard(fieldCondition);
    numberEight = numberEight();
    numberSeven = numberSeven(numberEight);
    numberNine = numberNine(numberEight);
    numberFive = numberFive(numberEight);
    numberFour = numberFour(numberFive);
    numberSix = numberSix(numberFive);
    numberTwo = numberTwo(numberFive);
    numberOne = numberOne(numberTwo);
    numberThree = numberThree(numberTwo);
    buttonClear = buttonClear(numberTwo);
    numberZero = numberZero(buttonClear);
    lineBetweenColumnOneTwo = getTableVerticalLine(numberSeven, numberOne);
    lineBetweenColumnTwoThree = getTableVerticalLine(numberEight, numberZero);
    lineBetweenRowZeroOne = getTableHorizontalLine(numberSeven, numberNine);
    lineBetweenRowOneTwo = getTableHorizontalLine(numberFour, numberSix);
    lineBetweenRowTwoThree = getTableHorizontalLine(numberOne, numberThree);
    lineBetweenRowThreeFour = getTableHorizontalLine(numberZero, buttonClear);

    addView(fieldResult);
    fieldResult.addView(unitHeightFillView);
    fieldResult.addView(fieldUnit);
    fieldResult.addView(fieldValue);
    addView(fieldCondition);
    addView(numberBoard);
    numberBoard.addView(numberEight);
    numberBoard.addView(numberSeven);
    numberBoard.addView(numberNine);
    numberBoard.addView(numberFive);
    numberBoard.addView(numberFour);
    numberBoard.addView(numberSix);
    numberBoard.addView(numberTwo);
    numberBoard.addView(numberOne);
    numberBoard.addView(numberThree);
    numberBoard.addView(buttonClear);
    numberBoard.addView(numberZero);

    numberBoard.addView(lineBetweenColumnOneTwo);
    numberBoard.addView(lineBetweenColumnTwoThree);
    numberBoard.addView(lineBetweenRowZeroOne);
    numberBoard.addView(lineBetweenRowOneTwo);
    numberBoard.addView(lineBetweenRowTwoThree);
    numberBoard.addView(lineBetweenRowThreeFour);
  }