12.8工作日志
来源:互联网 发布:ajax eval json 编辑:程序博客网 时间:2024/05/16 01:47
1.导入GitHub项目
将项目文件解压后粘贴到你的项目文件夹根目录
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);
0 0
- 12.8工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- 工作日志
- App运营必须关注的5个数据指标
- 阻止重复提交? struts2 的 token 这么搞绝对没问题!
- Android 学习系列
- mysql 查看版本
- Android与服务器交互
- 12.8工作日志
- MFC 手把手 写一个文件播放小程序(这个是直接copy的 我会动手做一遍 然后发自己原创的)
- oracle 自增长序列
- 详解APP应用分发平台的榜单推荐和搜索排名规则
- 三种将list转换为map的方法
- 32位的ane与air sdk升级
- 杭电acm1073
- hdu2216 Game III 【广搜】
- 1004. 成绩排名 (20) java