public BotHelpCell(Context context) {
    super(context);

    textPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG);
    textPaint.setTextSize(AndroidUtilities.dp(16));
    textPaint.setColor(0xff000000);
    textPaint.linkColor = 0xff316f9f;

    urlPaint = new Paint();
    urlPaint.setColor(0x33316f9f);
  }
示例#2
0
 public ChatActionCell(Context context) {
   super(context);
   if (textPaint == null) {
     textPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG);
     textPaint.setColor(0xffffffff);
     textPaint.linkColor = 0xffffffff;
   }
   imageReceiver = new ImageReceiver(this);
   imageReceiver.setRoundRadius(AndroidUtilities.dp(32));
   avatarDrawable = new AvatarDrawable();
   textPaint.setTextSize(AndroidUtilities.dp(MessagesController.getInstance().fontSize));
 }