登录
首页 » Java » Android Spinner 绑定数据源入门级实例

Android Spinner 绑定数据源入门级实例

于 2013-03-18 发布
0 270
下载积分: 1 下载次数: 0

代码说明:

Spinner入门实例

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • tab host
    tab host
    2013-06-09下载
    积分:1
  • Android应用源码之android 安卓画廊 照片转换器.zip
    【实例简介】
    2021-09-07 00:31:13下载
    积分:1
  • 微信 android API 范例 附完整源码下载
    微信api android客户端例子源码
    2013-08-22下载
    积分:1
  • android 省市县三级联动 实例源码(含sqlite数据库)下载
    android版的省市三级联动,使用sqllite本地数据,数据库在这个目录下 resaw
    2014-12-22下载
    积分:1
  • android联系人带字母检索源码
    android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
    2014-04-13下载
    积分:1
  • 菜单三方控件
    菜单三方控件
    2014-10-04下载
    积分:1
  • android仿qq空间布(从相册选照片) 实例源码下载
    android仿qq空间发布(从相册选照片) 实例源码下载
    2015-04-02下载
    积分:1
  • android 串口编程 实例源码下载
    android 串口编程 实例源码下载
    2013-11-28下载
    积分:1
  • android 定时进入飞行模式 例子源码下载
    在指定的时间进入飞行模式,是一种免打扰不错的应用
    2014-09-09下载
    积分:1
  • ViewPagerIndicator(头部TAB切换指示器).zip
    ViewPagerIndicator(头部TAB切换指示器).zip
    2019-08-04下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载