Back to project page OpenHSK.
The source code is released under:
This work is licensed under a Creative Commons Attribution 3.0 Unported License. Original author of word lists: http://lingomi.com/ Original author of definitions: http://cc-cedict.org Original autho...
If you think the Android project OpenHSK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.openhsk.adapters; /* w w w .j ava 2 s . c o m*/ import android.database.Cursor; import android.view.View; import android.widget.SimpleCursorAdapter; import android.widget.TextView; public class WordListViewBinder implements SimpleCursorAdapter.ViewBinder { @Override public boolean setViewValue(View view, Cursor cursor, int columnIndex) { if (columnIndex == 1) { TextView name = (TextView) view; name.setText(cursor.getString(cursor.getColumnIndex("name"))); return true; } else if (columnIndex == 2) { TextView id = (TextView) view; id.setText(cursor.getInt(cursor.getColumnIndex("fk"))); return true; } return false; } }