android启动的时候,logCat中报错:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lby.myfirstApp/com.lby.myfirstApp.MainActivity}: java.lang.RuntimeException: Binary XML
file line #23: You must supply a layout_width attribute.
原因是TextView缺少 layout_width 属性所致,加上就可以了。
<Button
android:id="@+id/jumpButton"
android:text="点击跳转到第二个textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>