我得到了:
1-27 13:47:35.569: E/AndroidRuntime(1070): FATAL EXCEPTION: main
01-27 13:47:35.569: E/AndroidRuntime(1070): java.lang.IndexOutOfBoundsException
01-27 13:47:35.569: E/AndroidRuntime(1070): at android.graphics.Paint.getTextRunAdvances(Paint.java:1777)
01-27 13:47:35.569: E/AndroidRuntime(1070): at android.text.TextLine.handleText(TextLine.java:747)
01-27 13:47:35.569: E/AndroidRuntime(1070): at android.text.TextLine.handleRun(TextLine.java:898)
01-27 13:47:35.569: E/AndroidRuntime(1070): at android.text.TextLine.measureRun(TextLine.java:414)
01-27 13:47:35.569: E/AndroidRuntime(1070): at android.text.TextLine.measure(TextLine.java:293)
我尝试了(I can't figure the issue with a stacktrace error)中给出的jellybeanspanfixtextview仍然崩溃。 我有一些 - textview和edittext彼此相邻(水平布局) - 在我的垂直线性布局中。试图输入任何这些ediittexts崩溃。 edittext和textview坐在一起是否有任何已知问题? (它在布局上有点局促:))
例如 TextView:EditText “文字A”:输入A
的文字我在不同的布局中没有这样的问题,我有textview后跟edittext
例如
TextView的
的EditText
"Text A"
Enter text for A
感谢回应
(即使我改变为一个接一个,我有这个观点的问题(
15:38:19.910: E/InputEventReceiver(1644): Exception dispatching input event.
01-27 15:38:19.910: E/MessageQueue-JNI(1644): Exception in MessageQueue callback: handleReceiveCallback
01-27 15:38:20.290: E/MessageQueue-JNI(1644): java.lang.IndexOutOfBoundsException
01-27 15:38:20.290: E/MessageQueue-JNI(1644): at android.graphics.Paint.getTextRunAdvances(Paint.java:1777)
01-27 15:38:20.290: E/MessageQue)
所以在这个视图视图中我可能做错了其他的事情
完成例外记录
1-27 15:38:20.549: E/AndroidRuntime(1644): FATAL EXCEPTION: main
01-27 15:38:20.549: E/AndroidRuntime(1644): java.lang.IndexOutOfBoundsException
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.graphics.Paint.getTextRunAdvances(Paint.java:1777)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.TextLine.handleText(TextLine.java:747)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.TextLine.handleRun(TextLine.java:898)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.TextLine.measureRun(TextLine.java:414)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.TextLine.measure(TextLine.java:293)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.Layout.getHorizontal(Layout.java:852)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.Layout.getHorizontal(Layout.java:830)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.Layout.getPrimaryHorizontal(Layout.java:805)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.text.Layout.getPrimaryHorizontal(Layout.java:795)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.widget.TextView.getFocusedRect(TextView.java:5121)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.FocusFinder.findNextFocusInAbsoluteDirection(FocusFinder.java:232)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.FocusFinder.findNextFocus(FocusFinder.java:163)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.FocusFinder.findNextFocus(FocusFinder.java:94)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.FocusFinder.findNextFocus(FocusFinder.java:65)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.focusSearch(ViewGroup.java:668)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.focusSearch(ViewGroup.java:670)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.focusSearch(ViewGroup.java:670)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.focusSearch(ViewGroup.java:670)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.focusSearch(ViewGroup.java:670)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.focusSearch(ViewGroup.java:670)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.View.focusSearch(View.java:6392)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.widget.TextView.onCreateInputConnection(TextView.java:5627)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1120)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1281)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.inputmethod.InputMethodManager.viewClicked(InputMethodManager.java:1432)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.widget.TextView.viewClicked(TextView.java:8607)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.widget.TextView.onTouchEvent(TextView.java:7629)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.View.dispatchTouchEvent(View.java:7384)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2209)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1952)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2209)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1952)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2209)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1952)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2209)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1952)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2209)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1952)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2209)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1952)
01-27 15:38:20.549: E/AndroidRuntime(1644): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1966)
01-27 15:38:20.549: E/AndroidRuntime(1644): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1418)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.app.Activity.dispatchTouchEvent(Activity.java:2424)
01-27 15:38:20.549: E/AndroidRuntime(1644): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1914)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.View.dispatchPointerEvent(View.java:7564)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3883)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3778)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
01-27 15:38:20.549: E/AndroidRuntime(1644): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.
答案 0 :(得分:0)
我的EditText字段中有style =“?android:listSeparatorTextViewStyle”,这似乎导致了问题。