iOS
NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc]initWithString:@"This is Gray"];
[attrString addAttribute:NSForegroundColorAttributeName value:[UIColor grayColor] range:NSMakeRange(7, 4)];
Label.attributedText = attrString;
Android
SpannableStringBuilder style = new SpannableStringBuilder("This is Gray");
style.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.gray)),7,7+4,Spannable.SPAN_EXCLUSIVE_INCLUSIVE);
TextView.setText(style);