嘗試在android中取回編碼。當我將另一個TextView添加到我的XML文件時,爲什麼我的程序崩潰?NestedScrollView崩潰Android
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/activity_comp_analysis"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.oscarorellana.physicscalaculators.Math.CompAnalysis">
<TextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="Enter a complex number below"
android:textSize="20dp"
android:textStyle="bold"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TEST"
/>
</android.support.v4.widget.NestedScrollView>
XML文件是我的一項Android活動中的內容文件。可能真的很基本,但我找不到這個錯誤。
@Oscar Orellana如果此答案有效,請標記爲接受的答案 – FAT