このチュートリアルに従って、ミュージックアプリのプレイリストが使用するコンポーネントに基づいたリストビューのドラッグアンドドロップを実装しました。
http://www.techrepublic.com/blog/australia/making-a-sortable-listview-in-android/708
ドラッグ可能なリストビューは正常に機能しますが、InterfaceBuilderには次のエラーがあります。
The following classes could not be instantiated:
- com.ib.myproject.TouchInterceptor (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
これがxmlファイルの一部です:
<com.ib.myproject.TouchInterceptor
android:id="@+id/listViewBankList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:drawSelectorOnTop="false"
android:fastScrollEnabled="true">
</com.ib.myproject.TouchInterceptor>