本文实例讲述了Android中Spinner控件之键值对用法。分享给大家供大家参考。具体如下:
一、字典表,用来存放键值对信息
package com.ljq.activity;
import java.io.Serializable;
@SuppressWarnings(serial)
public class Dict implements Serializable {
private Integer id;
private String text;
public Dict() {
}
public Dict(Integer id, String text) {
sup