TextView控件常見問題
為了國際化需要匙握,通常需要采用多種字體咆槽。
<TextView
android:text="@string/desc"
android:layout_margin="5dp"
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<string name="desc">We 're back with another Picasso transformation post. We are already shown you how to transform images in a previous post. There are a few implementations for Picasso transformations floating around on the Internet, but it is tedious work to find a good one for your need. In this blog post, we will show you how to integrate and use a collection of transformations.In case you want to catch up with previous Picasso topics, check out our extensive list of blog posts</string>
run后,報error: Apostrophe not preceded 的錯誤圈纺。
- 解決辦法一:
手工去掉所有‘的字符秦忿,例如can't轉(zhuǎn)換成can not,顯然這樣效率低下蛾娶。 - 解決辦法二:
使用轉(zhuǎn)義字符,如We're...