1
TextAppearance
으로 텍스트를 그리는 방법은 무엇입니까?특정 텍스트 모양으로 텍스트 그리기
여기 내 코드입니다.
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(Color.WHITE);
paint.setFakeBoldText(false);
paint.setTextSize(textSize);
// TODO: set the style of the text to a specific TextAppearance. E.g. @android:style/TextAppearance.DeviceDefault.Large.Inverse
canvas.drawText(context.getResources().getString(R.string.myString), textOffsetX, textOffsetY, paint);
나는 TypeFace
개체를 살펴 보았다,하지만 난 TextAppearance에서 서체를 만드는 방법을 모르겠습니다.