2013-01-07 77 views
8

有人可以解釋此錯誤嗎?SPAN_EXCLUSIVE_EXCLUSIVE跨度不能爲零長度

"SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length"

我認爲這與editText關注。有沒有解決方案?

這是我的日誌。

1-07 14:29:47.654: D/OpenGLRenderer(24479): Enabling debug mode 0 

01-07 14:30:36.954: E/SensorManager(24479): thread start 

01-07 14:30:36.959: D/SensorManager(24479): registerListener :: handle = 0 name= LSM330DLC 3-axis Accelerometer delay= 200000 Listener= 
[email protected]000e98 

01-07 14:30:37.139: E/SpannableStringBuilder(24479): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 

01-07 14:30:37.139: E/SpannableStringBuilder(24479): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 

01-07 14:30:37.419: I/Process(24479): Sending signal. PID: 24479 SIG: 9 
01-07 14:30:37.654: E/Trace(25014): error opening trace file: No such file or directory (2) 

01-07 14:30:37.754: D/dalvikvm(25014): GC_FOR_ALLOC freed 108K, 6% free 12258K/12931K, paused 15ms, total 16ms 

01-07 14:30:37.754: I/dalvikvm-heap(25014): Grow heap (frag case) to 14.860MB for 2457616-byte allocation 

01-07 14:30:37.779: D/dalvikvm(25014): GC_CONCURRENT freed 6K, 5% free 14651K/15367K, paused 12ms+2ms, total 23ms 

01-07 14:30:37.809: D/dalvikvm(25014): GC_FOR_ALLOC freed 0K, 5% free 14651K/15367K, paused 11ms, total 11ms 

01-07 14:30:37.819: I/dalvikvm-heap(25014): Grow heap (frag case) to 19.018MB for 4367376-byte allocation 

01-07 14:30:37.834: D/dalvikvm(25014): GC_CONCURRENT freed 0K, 4% free 18917K/19655K, paused 2ms+2ms, total 16ms 

01-07 14:30:37.834: D/dalvikvm(25014): WAIT_FOR_CONCURRENT_GC blocked 3ms 

01-07 14:30:37.894: D/dalvikvm(25014): GC_FOR_ALLOC freed 2660K, 17% free 17674K/21063K, paused 13ms, total 13ms 

01-07 14:30:37.909: D/dalvikvm(25014): GC_FOR_ALLOC freed 688K, 14% free 18212K/21063K, paused 10ms, total 10ms 

01-07 14:30:37.944: D/dalvikvm(25014): GC_FOR_ALLOC freed <1K, 11% free 18890K/21063K, paused 12ms, total 12ms 

01-07 14:30:37.949: I/dalvikvm-heap(25014): Grow heap (frag case) to 20.170MB for 1235556-byte allocation 

01-07 14:30:37.964: D/dalvikvm(25014): GC_FOR_ALLOC freed 0K, 10% free 20097K/22279K, paused 11ms, total 11ms 

01-07 14:30:38.019: D/libEGL(25014): loaded /system/lib/egl/libEGL_mali.so 

01-07 14:30:38.024: D/libEGL(25014): loaded /system/lib/egl/libGLESv1_CM_mali.so 

01-07 14:30:38.024: D/libEGL(25014): loaded /system/lib/egl/libGLESv2_mali.so 

01-07 14:30:38.029: D/(25014): Device driver API match 

01-07 14:30:38.029: D/(25014): Device driver API version: 10 

01-07 14:30:38.029: D/(25014): User space API version: 10 

01-07 14:30:38.029: D/(25014): mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Fri Sep 28 

10:42:56 KST 2012 

01-07 14:30:38.064: D/OpenGLRenderer(25014): Enabling debug mode 0 
+0

顯示您的logcat 沒有足夠的信息來寄託在錯誤 –

+0

我發佈日誌,請看一看 – Dimitri

+0

http://stackoverflow.com/questions/ 9879233 /解釋意思的跨度旗幟像跨度獨家專有 看看這個職位 –

回答

18

就在這個屬性添加到您的編輯文本,你的問題一定會得到解決

android:inputType="textNoSuggestions" 

上面的屬性添加到您的每個編輯文本的應用程序中使用,或者乾脆你在哪裏得到的僅在該編輯文本中出現錯誤。

2

只要忽略它們。因爲你的操作系統可能有一些像Swype這樣的新鍵盤,或者其他一些定製的鍵盤,而這些東西都會彈出來。所以你不必擔心。

2

檢查,如果您有任何元素,如複製(複製兩次),在對應於該遇到的屏幕活動xml文件按鈕或文本視圖。我沒有注意到這一點,不得不面對同樣的問題。

6

這可能是因爲您正在使用第三方鍵盤而不是本機手機鍵盤。 這經常發生在SwiftKey

0

加入EDITTEXT 的android:textIsSelectable="false"例如

<EditText 
        android:id="@+id/edit_IONumber" 
        android:layout_width="0dp" 
        android:layout_weight="3" 
        android:layout_marginTop="10dp" 
        android:layout_marginRight="10dp" 
        android:textIsSelectable="false" 
        android:layout_height="wrap_content" 
        android:background="@drawable/edit_text_shape" 
        android:padding="5dip" /> 
相關問題