본문 바로가기

컴퓨터/android

TextView 폰트 변경하기

이제 다른 폰트를 다운받아 적용시키는 방법인데요 , 


폰트 파일을 프로젝트의 assets 폴더에 넣어주시고

소스 상에서 추가를 해주여야 합니다.


TextView txt = (TextView)convertView.findViewById(R.id.set_text);

txt.setTypeface(Typeface.createFromAsset(getAssets(), "NanumPen.ttf"));

txt.setText(arSrc.get(position).Name);