Listview在tabhost活动下滚动片段时崩溃

时间:2014-12-02 09:27:53

标签: android listview scroll

我的应用程序有两个tabhost,它们都是必需的。我不得不使用tabhost而不是actionbar,因为我的应用程序需要得到低端Android设备的支持。

现在,我的FragmentActivity有两个片段,其中一个片段有ListViewListView加载正常,但当我开始滚动列表时应用程序与java.lang.StackOverflowError崩溃。

我对每一行的布局非常简单,正如我之前所说,它在第一次完美加载并在滚动时崩溃。

我把我的logcat放在这里。

12-02 15:14:26.929: E/AndroidRuntime(22971): FATAL EXCEPTION: GUI Thread
12-02 15:14:26.929: E/AndroidRuntime(22971): java.lang.StackOverflowError
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.graphics.Paint.measureText(Paint.java:1020)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.graphics.Paint.measureText(Paint.java:1057)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.text.Styled.drawDirectionalRun(Styled.java:284)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.text.Styled.measureText(Styled.java:447)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.text.Layout.measureText(Layout.java:1888)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.text.Layout.getLineMax(Layout.java:841)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.text.Layout.draw(Layout.java:386)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.text.BoringLayout.draw(BoringLayout.java:365)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.widget.TextView.onDraw(TextView.java:4334)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6880)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6883)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.buildDrawingCache(View.java:6642)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.getDrawingCache(View.java:6428)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1571)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.widget.AbsListView.dispatchDraw(AbsListView.java:1643)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.widget.ListView.dispatchDraw(ListView.java:3207)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6986)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.widget.AbsListView.draw(AbsListView.java:3021)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6883)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6883)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.support.v4.view.ViewPager.draw(ViewPager.java:2153)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6883)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.View.draw(View.java:6883)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.widget.FrameLayout.draw(FrameLayout.java:357)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1964)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewRoot.draw(ViewRoot.java:1529)
12-02 15:14:26.929: E/AndroidRuntime(22971):    at android.view.ViewRoot.performTra

0 个答案:

没有答案