【发布时间】:2014-12-09 20:39:13
【问题描述】:
这是一些非常基本的东西。 渲染期间引发异常: java.util.Locale.toLanguageTag()Ljava/lang/String;
XML:
<LinearLayout 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"
android:orientation="horizontal">
<EditText android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />
</LinearLayout>
似乎问题出在 EditText 对象上。 帮助将不胜感激。
【问题讨论】:
-
也许检查您的
strings.xml以获得edit_message和/或button_send值。 -
你们提供多语言支持吗?
-
@onm118 检查您的 edit_message 字符串是否很大。缩短它并尝试。