I get this error in the XMl layout
I don't understand if I have deleted something or what but in 2 projects I get an error when I load the layout.xml I couldn't see in the graphical but it exist in xml tab The file is called note.xml here's the log
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Mon Aug 29 15:57:12 CEST 2011
note.xml: 27
java.lang.ArrayIndexOutOfBoundsException: 27
at java.awt.Font.canDisplayUpTo(Unknown Source)
at android.graphics.Canvas_Delegate$10.draw(Canvas_Delegate.java:919)
at com.android.layoutlib.bridge.impl.GcSnapshot.drawInLayer(GcSnapshot.java:613)
at com.android.layoutlib.bridge.impl.GcSnapshot.draw(GcSnapshot.java:583)
at android.graphics.Canvas_Delegate.draw(Canvas_Delegate.java:1086)
at android.graphics.Canvas_Delegate.native_drawText(Canvas_Delegate.java:893)
at android.graphics.Canvas_Delegate.native_drawTextRun(Canvas_Delegate.java:1006)
at android.graphics.Canvas.native_drawTextRun(Canvas.java)
at android.graphics.Canvas.drawTextRun(Canvas.java:1462)
at android.text.TextLine.drawTextRun(TextLine.java:911)
at android.text.TextLine.handleText(TextLine.java:743)
at android.text.TextLine.handleRun(TextLine.java:878)
at android.text.TextLine.drawRun(TextLine.java:380)
at android.text.TextLine.draw(TextLine.java:177)
at android.text.Layout.draw(Layout.java:391)
at android.widget.TextView.onDraw(TextView.java:4463)
at android.view.View.draw(View.java:9029)
at android.view.ViewGroup.drawChild(ViewGroup.java:2508)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2123)
at android.view.ViewGroup.drawChild(ViewGroup.java:2506)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2123)
at android.view.View.draw(View.java:9032)
at android.widget.FrameLayout.draw(FrameLayout.java:419)
at android.widget.ScrollView.draw(ScrollView.java:1468)
at android.view.ViewGroup.drawChild(ViewGroup.java:2508)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2123)
at android.view.ViewGroup.drawChild(ViewGroup.java:2506)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2123)
at android.view.ViewGroup.drawChild(ViewGroup.java:2506)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2123)
at android.view.View.draw(View.java:9032)
at android.view.ViewGroup.drawChild(ViewGroup.java:2508)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2123)
at android.view.View.draw(View.java:9032)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:473)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:316)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:325)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:380)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1310)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1075)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java:901)
at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(LayoutEditor.java:403)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.selectDefaultPage(AndroidXmlEditor.java:314)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.addPages(AndroidXmlEditor.java:219)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
HERE IS THE XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:orientation="vertical"
android:layout_height="wrap_content">
<RelativeLayout android:id="@+id/relativeLayout3"
android:layout_width="match_parent" android:layout_height="25dip">
<TextView android:textStyle="bold" android:textColor="#000000"
android:text="@string/forewordtitle" android:background="#FFCC00"
android:layout_width="match_parent" android:layout_height="fill_parent"
android:paddingLeft="6dip" android:gravity="center" />
</RelativeLayout>
<ScrollView android:id="@+id/scrollView2"
android:background="#E5E5C9" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent"
android:id="@+id/linearLayout2" android:layout_height="match_parent">
<ImageView android:id="@+id/foto1" android:layout_width="match_parent"
android:layout_height="200dip" android:adjustViewBounds="true"
android:layout_alignParentTop="false" android:background="#E5E5C9"
android:layout_marginTop="10dip" android:layout_marginBottom="8dip"
android:src="@drawable/foto1" />
<TextView android:textStyle="bold" android:textColor="#000000"
android:text="@string/informazioni" android:background="#E5E5C9"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:paddingBottom="6dip"
android:paddingLeft="6dip" android:gravity="center"
android:id="@+id/textinfo"
android:layout_below="@+id/foto1"/>
<WebView android:layout_width="fill_parent"
android:paddingLeft="6dip" android:layout_height="wrap_content"
android:id="@+id/webview" android:layout_below="@+id/textinfo"
android:paddingRight="4dip" android:textColor="#000000"
android:textSize="18dip" android:gravity="fill_horizontal" />
<TextView
android:id="@+id/text_touroperator"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/webview"
android:paddingRight="4dip" android:textColor="#000000"
android:textSize="18dip" android:gravity="fill_horizontal"
android:autoLink="web|email"
android:lin开发者_运维技巧ksClickable="true"
android:textColorLink="#669900"
android:background="@android:color/white"
android:text="@string/touroperator"
android:layout_marginBottom="6dip"/>
<ImageView android:id="@+id/foto2" android:layout_width="fill_parent"
android:layout_height="200dip" android:adjustViewBounds="true"
android:layout_alignParentTop="false" android:layout_below="@+id/text_touroperator"
android:background="#E5E5C9" android:paddingTop="8dip" android:layout_marginBottom="10dip"
android:src="@drawable/foto2" />
<WebView android:layout_width="fill_parent"
android:paddingLeft="6dip" android:layout_height="wrap_content"
android:id="@+id/webview2" android:layout_below="@+id/foto2"
android:paddingRight="4dip" android:textColor="#000000"
android:textSize="18dip" android:gravity="fill_horizontal"
android:clickable="true"
/>
<TextView
android:id="@+id/text_contact"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/webview2"
android:paddingRight="4dip" android:textColor="#000000"
android:textSize="18dip" android:gravity="fill_horizontal"
android:autoLink="web|email"
android:linksClickable="true"
android:textColorLink="#669900"
android:background="@android:color/white"
android:text="@string/contact"/>
<ImageView android:layout_width="fill_parent"
android:layout_height="200dip" android:adjustViewBounds="true" android:id="@+id/ImageView3"
android:background="#E5E5C9" android:layout_below="@+id/text_contact"
android:layout_alignParentLeft="true" android:src="@drawable/foto3" android:paddingTop="10dip"
android:layout_marginBottom="6dip"></ImageView>
<Button android:text="@string/playbutton" android:gravity="right"
android:layout_width="match_parent" android:id="@+id/back1"
android:textSize="8dip" android:layout_height="30dip" android:layout_below="@+id/ImageView3"></Button>
</RelativeLayout>
</ScrollView>
</LinearLayout>
I HAVE MADE A TEST making a new project using the copy of another which use the same note.xml which works correctly. I found out that editing the strings.xml a problem arise when I change the text inside the first textview (@+id/text_touroperator ). It seems that something is wrong in the moment I add the web address but it works in the other project. and also in the final text view (@+id/text_contact)
精彩评论