这是我的模型
OColumn state_order = new OColumn("state_order", OSelection.class)
.addSelection("draft","New")
.addSelection("paid","Paid")
.addSelection("cancel","Cancelled")
.addSelection("done","Posted")
.addSelection("invoiced","Invoiced")
在我的片段中,我需要读取 state_order 值这是我的代码
public void onViewBind(View view, Cursor cursor, ODataRow row) {
OControls.setText(view, R.id.state, row.getString("state_order"));
}
但他向我展示了错误的价值,我能做什么!