Why do I get this warning in Android LogCat?
W/DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
MainActivity interaction with 3 simple TextViews:
textView.append("
" + objecta.objectb.get(objectindex).getName());
if (currentLeg <= begfltLeg + 1 ) {
textView2.setText(objecta.objectb.get(objectindex).getName());
} else {
textView2.setText(objecta.objectb.get(objectindex).getName());
}
textView3.setText(" leg " + 0 + " - " objecta.objectb.get(objectindex).getName() + "
" );
for(int i=1; i<numLegs; i++) {
if (i < 10){
textView3.append(" leg " + i + " - " + objecta.objectb.get(objectindex).getName() + "
");
} else {
textView3.append(" leg " + i + " - " + objecta.objectb.get(objectindex).getName() + "
");
}
}
Activity_Main.XML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
tools:context="com.example.xxxxxxx.MainActivity">
<TextView
android:text="xxxxxxxxxxx"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView2"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textAlignment="center" />
<Chronometer
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/chronometer"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView
android:text="xxxxxxxxxxxx"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="19dp"
android:id="@+id/textView3"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:gravity="bottom"
android:text="Log:"
android:maxLines="8"
android:layout_marginTop="23dp"
android:layout_below="@+id/textView2"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
</RelativeLayout>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…