public static SpannableStringBuilder warpChooserTitle(Activity context,String appName){
  @SuppressLint("StringFormatMatches") String title=String.format(context.getString(R.string.select_transfer_way_apk,appName));
  ForegroundColorSpan fontSpanRed=new ForegroundColorSpan(Utils.getColorWarp(context,R.color.colorAccent));
  int start=2;
  int end=start + appName.length() + 3;
  SpannableStringBuilder mSpannableBuilder=new SpannableStringBuilder(title);
  mSpannableBuilder.setSpan(fontSpanRed,start,end,Spanned.SPAN_INCLUSIVE_INCLUSIVE);
  return mSpannableBuilder;
}

public static SpannableStringBuilder warpChooserTitle ( Activity context , String appName ) { @ SuppressLint ( "StringFormatMatches" ) String title = String . format ( context . getString ( R . string . select_transfer_way_apk , appName ) ) ; ForegroundColorSpan fontSpanRed = new ForegroundColorSpan ( Utils . getColorWarp ( context , R . color . colorAccent ) ) ; int start = 2 ; int end = start + appName . length ( ) + 3 ; SpannableStringBuilder mSpannableBuilder = new SpannableStringBuilder ( title ) ; mSpannableBuilder . setSpan ( fontSpanRed , start , end , Spanned . SPAN_INCLUSIVE_INCLUSIVE ) ; return mSpannableBuilder ; }
warp choose title and make app title accent
