본문 바로가기
안드로이드 스튜디오

안드로이드 스튜디오 No speakable text present오류 - contentDescription

by s2jinny 2022. 12. 17.

(내가 까먹어서 적는 오류) no speakable text present 

 

contentDescription이란? 

no speakable text present 해결 방법 :

contentDescription이용하자 !  android:contentDescription="설명" 쓰면 오류 안남. 쉽다.. 

 

하지만 궁금해서 구글링 해봄. contentDescription 얘가 아주 멋진애였다 .

 

단지 어떤것을 말하는지 설명만 쓰는 건줄 알았다. (Text Hint 처럼) 하지만 contentDescription 은 시각장애인의 경우에 읽어주는 기능을 할 때 이 설명을 읽는다. 이미지, 스피너, 버튼, 체크 박스 등을 볼 수 없으니.. 

대체하는 텍스트를 적어주는 것!! 멋진 애였음;; 

 

결론은 No speakable text present 오류가 나면 당황하지 말고

 android:contentDescription="설명"

을 써라~~~~~~~