Android SDKで用意されているsimple_list_item_2を使うと文字化けとエラーが発生。Android Studio 1.0.2とAndroid SDK Tools 24.0.2にて

以前、このブログのタイトルと似たような記事を書きました。
今度は、Simple_list_item_2でも文字化けとエラーが発生しました。
Andorid StudioとSDK Toolsのアップグレード
今回、エラーが発生する前に、Andorid Studio1.0を1.0.2に、Android SDK Toolsを24.0.2にアップグレードさせました。その途端に、文字化けが発生…。個人的には、このあたりが原因ではなかろうかと考えています。
アップグレード前後の動作比較
Simple_list_item_2は、2 行のテキスト表示リストビューを作成するSimpleAdapterの第3引数として使っています。
SimpleAdapter adapter = new SimpleAdapter(this, items, android.R.layout.simple_list_item_2, from, to);
アップグレード前
simple_list_item_2のxmlファイルをテキストタブで確認したときのコードです。2行のテキストビューを表示させるので、idが”text1″と、”text2″の2つに分かれています。
<?xml version="1.0" encoding="utf-8"?> <TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?android:attr/listPreferredItemHeight" android:mode="twoLine" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> <TextView android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dip" android:textAppearance="?android:attr/textAppearanceListItem" /> <TextView android:id="@android:id/text2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@android:id/text1" android:layout_alignStart="@android:id/text1" android:textAppearance="?android:attr/textAppearanceListItemSecondary" /> </TwoLineListItem>
アップグレード後
アップグレードさせると、テキストタブでは文字化けが発生しています。
デザインタブに切り替えると、simple_list_item_1のときと同じようなエラー画面(新しいタブで開く)が出ます。
simple_list_item_2は使えるか?
このように、文字化けを起こすsimple_list_item_2ですが、使えないわけではありません。SimpleAdapterの引数としてそのまま使っていても、2行のリストビューとして表示されます。
xmlファイルが文字化けを起こしているので、idの紐づけが非常に分かりにくいにくいのですが。
〔参考サイト〕