본문 바로가기

Android

Android) 앱 실행 시 화면에 글자 안 뜸: 오류

728x90
반응형

안드로이드 스튜디오 앱 실행 시 화면에 글자 출력이 안 되는 오류

Desing 화면에서 정상 출력되는 글자.

.xml 화면에서는 글자가 정상적으로 출력됨.  

앱 실행 시에 화면에 글자가 출력되지 않는 오류 발생
 
 
해결방법)

                    <layout 
                    ...
                    xmlns:tools="http://schemas.android.com/tools">
                    
                    
                    <TextView
                            ...
                            tools:text="결제 내역" />

<Textview > 부분의 tools:text 를 android:text로 변경함
 
수정)

                    <layout 
                    ...
                    xmlns:tools="http://schemas.android.com/tools">
                    
                    
                    <TextView
                            ...
                            android:text="결제 내역" />

앱 실행 시 정상적으로 글자가 출력되었음.

728x90
반응형

'Android' 카테고리의 다른 글

Android) java.lang.ClassCastException: 오류  (0) 2023.08.02