| | |
| | | |
| | | public class BaseDataUIBean { |
| | | private SpannableString des; |
| | | // 主要是只用了一个textview 表示item ,而地图和车辆模型需要一个按钮,所以跟单片机单独显示信息不一样; |
| | | private int type=0; |
| | | |
| | | //标记车模型、场地、路考地图的版本 整型 |
| | | private SpannableString version; |
| | | |
| | | private String btn_txt=""; |
| | | |
| | | public enum TYPE_{ |
| | | yard,road,car |
| | | } |
| | | |
| | | TYPE_ type_; |
| | | |
| | | |
| | | public String getBtn_txt() { |
| | | return btn_txt; |
| | | } |
| | | |
| | | public void setBtn_txt(String btn_txt) { |
| | | this.btn_txt = btn_txt; |
| | | } |
| | | |
| | | @IdRes |
| | | private int res_id; |
| | | |
| | | public SpannableString getVersion() { |
| | | return version; |
| | | } |
| | | |
| | | public void setVersion(SpannableString version) { |
| | | this.version = version; |
| | | } |
| | | |
| | | public BaseDataUIBean(SpannableString s, int res_id) { |
| | | this.des = s; |
| | | this.res_id = res_id; |
| | | } |
| | | public BaseDataUIBean(SpannableString s, int res_id,SpannableString ver,String btn_txt,int type,TYPE_ t) { |
| | | this.des = s; |
| | | this.res_id = res_id; |
| | | this.version = ver; |
| | | this.type = type; |
| | | this.btn_txt = btn_txt; |
| | | this.type_ = t; |
| | | } |
| | | |
| | | public TYPE_ getType_() { |
| | | return type_; |
| | | } |
| | | |
| | | public void setType_(TYPE_ type_) { |
| | | this.type_ = type_; |
| | | } |
| | | |
| | | public SpannableString getDes() { |
| | |
| | | public void setRes_id(int res_id) { |
| | | this.res_id = res_id; |
| | | } |
| | | |
| | | public int getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(int type) { |
| | | this.type = type; |
| | | } |
| | | } |