안녕하세요. 타이틀의 폰트를 외부폰트로 변경하고 싶은데 어떻게 해야할까요??
검색해보니
Integer titleId = Resources.getSystem().getIdentifier("action_bar_title", "id", "android"); TextView title = (TextView) getWindow().findViewById(titleId); // check for null and manipulate the title as see fit title.setTextColor(getResources().getColor(R.color.black)); title.setTypeface(face);
이런 소스는 해봤는데 적용이 안되더라구요.
어떻게 해야할까요??
sans-serif-black sans-serif-medium sans-serif sans-serif-light sans-serif-thin
face 부분에 이걸 넣어보세요. 저게 제조사별, 언어별, 폰트별로 나오는게 달라요. 영어는 두께조절이 되는데, 한글은 안되더라고요.
어지간하면 typeface 는 안 바꾸는 걸 추천합니다.