在Eclipse中使用默認佈局處理新的Android項目時,我發現了一個我確定記錄的行爲......某處...但我無法識別出位置。TextView拋出顯示字符串資源的設計器錯誤
當strings.xml中「你好」資源包含一個字符串,它看起來像這樣:
<string name="hello"
formatted="false">@BrandingName: Branding phrase ending with @
</string>
Eclipse的設計師的ArrayIndexOutOfBounds拋出一個解決資源價值。我猜這是因爲它不知道如何正確地轉義「@BrandingName:」的某個部分?使用TextView正確顯示它的方法是什麼?
僅供參考TextView的節點如下:
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
+ + +1爲了讓我足夠接近以找到領先錯誤(至少它看起來像一個錯誤) – 2012-04-23 04:31:09