さて、プログラムを作成しましたが、それを実行すると、以前は問題がありませんでした。実行時にstackoverflowerrorが発生するようになりました。問題は私のタブアクティビティで発生します。私のタブの 1 つで、その中でアクティビティを開くことができます。エラーは、そのタブ内を移動したときにのみ生成されます。
私のコードを見て、私が間違っていることを教えてください。
以下は、マニフェスト アクティビティ宣言の例です。
<activity
android:name=".EarlyStrat"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:label="info2"
android:noHistory="true"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Dialog" >
</activity>
エラーの原因と思われる xml ファイルの 1 つの宣言を次に示します。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/arrowyes"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#000000"
android:orientation="horizontal" >
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:background="@drawable/backarrow" />
<TextView
android:id="@+id/returns"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:background="@drawable/newsbutton"
android:gravity="center"
android:text="click here to RETURN"
android:textColor="#FFFFFF"
android:textSize="15dp" />
</LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_gravity="center"
android:gravity="center"
android:padding="5dp"
android:text="Early Strategy"
android:textColor="#FFFFFF"
android:textSize="25dp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/onebgr"
android:fadeScrollbars="false"
android:fillViewport="true"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/title1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" > (there is more code after this and it is nested as well)...
そしてxmlコードは続きます...
推奨事項はありますか、また、情報が見つかる可能性のある場所を教えていただけますか?