データベース クエリにマップされるリストを作成しようとしていますが、データベース内のフィールドの 1 つにタイムスタンプがあり、表示されると実際の値ではなく「3 月 2 日水曜日」のような日付として表示されます。 1299517239487 のようなデータベース...
クエリを言い換えるか、クエリを実行した後にカーソルを装飾することでこれを解決できますが、単純なカーソル アダプターにこの列をその特定の方法で表示させたいと思います。
誰もそれを行う方法について何か考えがありますか?
いくつかのコード:
// the desired columns to be bound
String[] columns = new String[] { DBHelper.COL_START_TIME, DBHelper.COL_AMOUNT};
// the XML defined views which the data will be bound to
int[] to = new int[] { R.id.dayMonthDate, R.id.amount};
// create the adapter using the cursor pointing to the desired data as well as the layout information
SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, R.layout.single_activity,cursor, columns, to);
それを修正するために、ある種のポスト プロセッサをアダプタに追加できるようにしたいと考えています。
ありがとう!