마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

contentdescription 오류!

0 추천
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >   

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/text"
        android:textColor="#00ff00"
        android:textSize="20pt"
        android:textStyle="italic"
        />    
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/exam"
        android:textSize="20sp"
        android:background="#ff0000"
        />           
    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:contentDescription="@string/Android"
        android:src="@drawable/sky"
        />  
    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:contentDescription="@string/Android"
        android:src="@drawable/sky"
        android:maxHeight="50dp"
        android:maxWidth="100dp"
        android:adjustViewBounds="true"
        />           
    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"  
        android:contentDescription="@string/Android"
        android:src="@drawable/sky"
        android:tint="#7000ff00"
        />
    
    <AnalogClock
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />
        
</LinearLayout>

 

자꾸 contentdescription에서 오류가 나네요 ㅜㅜ

그거 지우면 contenctdescription 쓰라고 경고뜨고 경고를 아예없애니까

dimes.xml오류나서 삭제해버리고

뭐자꾸 이런식이네요.ㅜ

android:contentDescription="@string/Android"

android:contentDescription="Android"

이렇게 둘다해봐도 다오류가나요ㅜ
익명사용자 님이 2013년 3월 17일 질문

1개의 답변

0 추천
Eclipse 환경설정에서

android -> Lint Error Checking 들어가셔서

불편한 lint 에러의 severity를 조정하시면 됩니다.
원조안드로이드 (58,190 포인트) 님이 2013년 3월 18일 답변
...