首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Eclipse中的Android应用程序:编辑图形布局中未显示的文本

Eclipse中的Android应用程序:编辑图形布局中未显示的文本
EN

Stack Overflow用户
提问于 2014-07-01 08:56:22
回答 5查看 90.2K关注 0票数 105

我正尝试在我的Android应用程序中添加一个文本字段,但是当我将Plain text选项拖到图形布局上时,底部会出现一条消息。即使我转到Window > Show View,它也显示Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V Exception details are logged in Window > Show View > Error Log,没有错误日志选项。整个设计器现在已经没有用了,因为我不能再使用它了,除非我直接从xml中删除EditText。是什么导致了这个错误,我该如何修复它?我运行的是最新版本(截至今天6:30-14)和Windows8专业版x64。

下面是我的完整布局代码:

代码语言:javascript
复制
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="${relativePackage}.${activityClass}" >

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="18dp"
    android:text="@string/welcome_text" />

<EditText
    android:id="@+id/editText1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:ems="10"
    android:inputType="text">

    <requestFocus />
</EditText>

</RelativeLayout>
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24501042

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档