コード例 #1
0
ファイル: MessageView.java プロジェクト: markadam/telegram
  protected void init() {
    super.init();

    checkResources(getContext());

    clockIconPaint = new Paint();
    clockIconPaint.setStyle(Paint.Style.STROKE);
    clockIconPaint.setColor(0xff12C000);
    clockIconPaint.setStrokeWidth(getPx(1));
    clockIconPaint.setAntiAlias(true);
    clockIconPaint.setFlags(Paint.ANTI_ALIAS_FLAG);

    statePending = getResources().getDrawable(R.drawable.st_bubble_ic_clock);
    stateSent = getResources().getDrawable(R.drawable.st_bubble_ic_check);
    stateHalfCheck = getResources().getDrawable(R.drawable.st_bubble_ic_halfcheck);
    stateFailure = getResources().getDrawable(R.drawable.st_bubble_ic_warning);
  }