다음과 같은 레이아웃이 있습니다 (거의 비어 있음).
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/set_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:contentDescription="content desc"
android:orientation="vertical" >
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, I am a TextView" />
</LinearLayout>
Activity 클래스에는 다음이 포함됩니다.
public class TestActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test);
}
}
모바일 장치에서 이것을 실행하면 다음 오류가 발생합니다.
SpannableStringBuilder
SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
나는 TextView를 사용하거나 사용하지 않고 이것을 시도했지만 오류가 여전히 남아 있습니다.이를 발생시키기 위해 기본 레이아웃에 근본적으로 잘못된 일을하고 있어야합니다.
누구든지 오류없이로드 할 수있는 방법에 대한 아이디어가 있습니까?
android:contentDescription에서LinearLayout해당 컨테이너가 포커스하지 때문에 설명을 AFAIK를 사용하지 않는 한,.