android中的Spinner的使用
来源:互联网 发布:多进程编程 编辑:程序博客网 时间:2024/06/06 07:13
http://www.cnblogs.com/rollenholt/archive/2012/05/17/2506395.html
先来最终的效果吧:
我们的main.xml文件内容为:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Spinner android:id="@+id/spinner1" android:layout_width="match_parent" android:layout_height="wrap_content" android:entries="@array/books" /></LinearLayout>
我们在values目录下面新建了一个arrays.xml文件
文件的内容是:
<?xml version="1.0" encoding="utf-8"?><resources> <string-array name="books"> <item>Rollen</item> <item>Rollen Holt</item> <item>Rollen ren</item> </string-array></resources>
其余文件都是默认的。
0 0
- android中的Spinner的使用
- Android Spinner的使用
- android spinner的使用
- Android Spinner 的使用
- android spinner的使用
- Android spinner 的使用
- android spinner的使用
- 【Android】Spinner的使用
- Android中的Spinner 使用技巧
- (Spinner) android中Spinner的使用
- Android中的Spinner的运用。
- Android的Spinner的使用
- Android中Spinner的使用
- android 中spinner的使用
- Android中Spinner的使用
- Android中Spinner的使用
- android Spinner的简单使用
- Android中Spinner的使用
- Tomcat 请求数据 乱码问题
- ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务
- Qt模块化笔记之core——事件QEvent
- leetcode-Largest Rectangle in Histogram
- uva 10061 How many zero's and how many digits ?(不同进制阶乘末尾几个0)+poj 1401
- android中的Spinner的使用
- 华为OJ:字符串反转
- ionic 环境搭建
- Oracle性能调优之命中率上
- 田忌赛马以及hdu1338Game Prediction
- HTTP报文
- 华为OJ:数字颠倒
- hibernate和mybatis
- 最小生成树 prim算法和kruskal算法