버튼을 클릭해서 앱전체 폰트와 사이즈를 변경하고싶은데
어떻게 해야하나요?
이거때문에 미쳐버리겠어요 도와주세요 ㅠㅠ
Gradle추가
compile 'com.tsengvn:Typekit:1.0.0'
하고나서 밑에 버튼 이벤트로 밑에 코드넣고
public void OnAFont(View v){
Typekit.getInstance()
.addBold(Typekit.createFromAsset(this, "fonts/NanumBarunGothic-Bold.otf"));
}
base 액티비티 만들어서
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(TypekitContextWrapper.wrap(newBase));
}
코드 추가후 액티비티 마다 베이스액티비티 상속시켜줬는데
어플실행후 해당 버튼 터치하면 작동중지뜨네요..
해결방법좀 알려주세요 엉엉
다 검색해서 찾아서 써보는건데
제가 잘못쓴건지 뭔지 다안되네요.....