次のレイアウトがあります(ほぼ空)。
<?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
、そのコンテナがフォーカス可能ではないので説明は私の知る限りを使用できないように、。