恶心人的日常问题

android studio

卡!!!!!!

1.Preference-->Version Control-->VCS选择none

2.

/Users/yp-tc-m-2568/.gradle 删掉重新生成!


代码

1.修改alertButton颜色啥的

 AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(Html.fromHtml("<font color='#FF7F27'>测试啊啊</font>")); builder.setCancelable(false); builder.setNegativeButton("No", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); AlertDialog alert = builder.create(); alert.show(); Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE); nbutton.setBackgroundColor(Color.MAGENTA); nbutton.setTextColor(Color.YELLOW); Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE); pbutton.setBackgroundColor(Color.YELLOW); pbutton.setTextColor(Color.MAGENTA);

你可能感兴趣的:(恶心人的日常问题)