本文實(shí)例講述了Android列表控件Spinner簡(jiǎn)單用法。分享給大家供大家參考,具體如下:
Android的Spinner控件用來(lái)顯示列表項(xiàng),類(lèi)似于一組單選框RadioButton。這里介紹一下其簡(jiǎn)單用法:
xml布局:
<?xml version="1.0" encoding="utf-8"?> <LinaerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Spinner android:layout_width="fill_parent" android:layout_height="fill_parent" android:entries="@strings/books" android:prompt="@string/tip" /> <Spinner android:id="@+id/spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:prompt="@string/tip" /> </LinaerLayout>
當(dāng)前標(biāo)題:Android列表控件Spinner簡(jiǎn)單用法示例-創(chuàng)新互聯(lián)
鏈接地址:http://chinadenli.net/article42/cdgpec.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、App設(shè)計(jì)、商城網(wǎng)站、品牌網(wǎng)站制作、建站公司、虛擬主機(jī)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容