본문 바로가기

Etc/android

[android] kotlin textview 외부 폰트 적용 (코드로) programmatically

728x90
반응형

프로젝트 구조 (여기서 ntextrabold 사용 예정)

        var fontface = ResourcesCompat.getFont(baseContext, R.font.ntextrabold)
        maincontentTitleLinearLayout_textview.setTypeface(fontface)
728x90
반응형