<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      下拉列表框Spinner

      layout文件

      item.xml

       1 <?xml version="1.0" encoding="utf-8"?>
       2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       3     android:layout_width="match_parent"
       4     android:layout_height="wrap_content"
       5     android:orientation="horizontal" >
       6 
       7     <TextView
       8         android:id="@+id/tv"
       9         android:layout_width="wrap_content"
      10         android:layout_height="wrap_content" />
      11 
      12     <ImageView
      13         android:layout_width="wrap_content"
      14         android:layout_height="wrap_content"
      15         android:src="@drawable/ic_launcher" />
      16 
      17 </LinearLayout>

      main.xml

       1 <?xml version="1.0" encoding="utf-8"?>
       2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       3     android:layout_width="fill_parent"
       4     android:layout_height="fill_parent"
       5     android:background="@drawable/btn_media_player_disabled"
       6     android:orientation="vertical" >
       7 
       8     <Spinner
       9         android:id="@+id/sp"
      10         android:layout_width="fill_parent"
      11         android:layout_height="wrap_content" />
      12 
      13     <AutoCompleteTextView
      14         android:id="@+id/actv"
      15         android:layout_width="fill_parent"
      16         android:layout_height="wrap_content"
      17         android:completionThreshold="1" >
      18     </AutoCompleteTextView>
      19 
      20 </LinearLayout>

      Activity

       1 package cn.itcast.ui;
       2 
       3 import android.app.Activity;
       4 import android.os.Bundle;
       5 import android.view.View;
       6 import android.widget.AdapterView;
       7 import android.widget.AdapterView.OnItemClickListener;
       8 import android.widget.AdapterView.OnItemSelectedListener;
       9 import android.widget.ArrayAdapter;
      10 import android.widget.AutoCompleteTextView;
      11 import android.widget.Spinner;
      12 
      13 public class UiActivity extends Activity {
      14     private Spinner spinner;
      15     private AutoCompleteTextView actv;
      16     @Override
      17     public void onCreate(Bundle savedInstanceState) {
      18         super.onCreate(savedInstanceState);
      19         setContentView(R.layout.main);
      20         spinner = (Spinner) findViewById(R.id.sp);
      21         actv = (AutoCompleteTextView)findViewById(R.id.actv);
      22         String[] names = {"老張", "老方", "老畢", "李明" , "李麗", "陳江", "abc", "acc"};
      23         ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, names);
      24         actv.setAdapter(adapter);
      25 
      26         
      27         spinner.setAdapter(new ArrayAdapter<String>(this, R.layout.item, R.id.tv, new String[]{"java",".net","php"}));
      28         
      29         spinner.setOnItemSelectedListener(new OnItemSelectedListener() {
      30 
      31             @Override
      32             public void onItemSelected(AdapterView<?> parent, View view,
      33                     int position, long id) {
      34                 
      35             }
      36 
      37             @Override
      38             public void onNothingSelected(AdapterView<?> parent) {
      39                 
      40             }
      41         });
      42 
      43     }
      44 }

      基礎/day08/ui

       

      posted @ 2013-01-19 20:22  王世楨  閱讀(220)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 久久一区二区中文字幕| av午夜福利一片看久久| 亚洲欧美综合中文| 国产精品爽爽v在线观看无码 | 中文日产幕无线码一区中文| 丁香五月婷激情综合第九色| 大肉大捧一进一出视频| 色噜噜狠狠一区二区三区果冻| 国产宅男宅女精品A片在线观看| 国产一区在线播放av| 成人国产乱对白在线观看| 国产精品自在线拍国产手青青机版| 肉大捧一进一出免费视频| 亚洲AV成人片在线观看| 性少妇tubevⅰdeos高清| 116美女极品a级毛片| 黄色亚洲一区二区在线观看| 国产精品免费看久久久| 久久免费偷拍视频有没有| 天天做日日做天天添天天欢公交车 | 久久国产免费观看精品3| 狠狠色狠狠色综合日日不卡| 国模精品视频一区二区三区 | 国产日韩精品一区在线不卡| 午夜福利在线观看入口| 中文字幕乱码一区二区免费| 色综合视频一区二区三区| 日本不卡三区| 伊人av超碰伊人久久久| 中文字幕av国产精品| 延津县| 亚洲精品美女一区二区| 中文字幕 欧美日韩| 三人成全免费观看电视剧高清| 国产免费一区二区不卡| 亚洲国产欧美一区二区好看电影| 中文字幕无码视频手机免费看 | 亚洲无?码A片在线观看| 97午夜理论电影影院| 无码精品人妻一区二区三区中| 麻豆蜜桃av蜜臀av色欲av|