安卓開發中如何給顯示的字體加粗
在xml佈局文件中:
加android:textStyle="bold"//中文顯示不可以粗體
在java代碼中:
TextView v=(TextView)findViewById(R.id.mtext);
TextPaint p=v.getPaint();
p.setFakeBoldText(true);//中文英文都可以粗體
加android:textStyle="bold"//中文顯示不可以粗體
TextView v=(TextView)findViewById(R.id.mtext);
TextPaint p=v.getPaint();
p.setFakeBoldText(true);//中文英文都可以粗體
private void addAnimation(){ img_show.startAnimation(scaleAnimation()); // img_show.clearAnimat