12.8工作日志
2015-12-08 13:10
399 查看
1.导入GitHub项目
将项目文件解压后粘贴到你的项目文件夹根目录
2.Clean Project
3.在gradle Setting里添加
3.在Gradle App里添加
4.rebuild Project
5.在项目中使用
NiceSpinner niceSpinner = (NiceSpinner)
findViewById(R.id.nice_spinner);
将项目文件解压后粘贴到你的项目文件夹根目录
2.Clean Project
3.在gradle Setting里添加
3.在Gradle App里添加
4.rebuild Project
5.在项目中使用
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center_vertical" android:background="@drawable/corners_bg" android:padding="1dp" android:layout_marginTop="@dimen/padding_normal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/new_register_school" android:contentDescription="@string/A_Picture" android:layout_marginLeft="10dp"/> <org.angmarch.views.NiceSpinner android:id="@+id/profession" android:layout_width="0dp" android:hint="职业" android:layout_weight="1" android:background="@drawable/corners_bg" android:layout_height="wrap_content" android:layout_marginLeft="2dp" android:singleLine="true" android:maxLength="50" android:paddingLeft="@dimen/padding_item" /> </LinearLayout>
final List<String> eduDataset = new LinkedList<> (Arrays.asList( "海归", "博士后", "博士", "硕士", "本科", "高中","初中", "初中及以下","其他" )); edu_txt.attachDataSource(eduDataset); edu_txt.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { if (position!=0) edu_txt.setText(eduDataset.get(position)); } @Override public void onNothingSelected(AdapterView<?> parent) { edu_txt.setText("请选择教育背景"); } }); }
NiceSpinner niceSpinner = (NiceSpinner)
findViewById(R.id.nice_spinner);
相关文章推荐
- 使用Jquery向一个空白网页动态创建一个iframe,及嵌入页面,和向嵌入页面传参
- 安卓苹果手机修改MAC地址教程
- 如何推广一个新的App软件
- App运营必须关注的5个数据指标
- HTML5 地理定位
- java微信网页授权获取用户信息以及JSSDK自定义分享等功能<三>
- python代码解析
- git简单操作
- 大学生必备软件免费自学视频教程,让那些培训班都见鬼去吧
- 用Js的eval解析JSON中的注意点
- SDUTOJ 1298 活动选择
- 【转】同一台机器部署两个jboss方法
- 深入理解SQL的四种连接-左外连接、右外连接、内连接、全连接
- 转 Java synchronized详解
- 读取dll所在路径
- IP地址计算和划分
- 真机测试时的错误:No matching provisioning profiles found
- 导入连连支付demo到myeclipse10的三个问题
- servlet的生命周期
- 数据结构与算法-----归并排序