久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='4F92O'><style id='4F92O'><dir id='4F92O'><q id='4F92O'></q></dir></style></legend>
<tfoot id='4F92O'></tfoot>
  • <i id='4F92O'><tr id='4F92O'><dt id='4F92O'><q id='4F92O'><span id='4F92O'><b id='4F92O'><form id='4F92O'><ins id='4F92O'></ins><ul id='4F92O'></ul><sub id='4F92O'></sub></form><legend id='4F92O'></legend><bdo id='4F92O'><pre id='4F92O'><center id='4F92O'></center></pre></bdo></b><th id='4F92O'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4F92O'><tfoot id='4F92O'></tfoot><dl id='4F92O'><fieldset id='4F92O'></fieldset></dl></div>

      <small id='4F92O'></small><noframes id='4F92O'>

        <bdo id='4F92O'></bdo><ul id='4F92O'></ul>

        對話框android上的輪子選擇器

        Wheel picker on dialog box android(對話框android上的輪子選擇器)

        <i id='Aqxpx'><tr id='Aqxpx'><dt id='Aqxpx'><q id='Aqxpx'><span id='Aqxpx'><b id='Aqxpx'><form id='Aqxpx'><ins id='Aqxpx'></ins><ul id='Aqxpx'></ul><sub id='Aqxpx'></sub></form><legend id='Aqxpx'></legend><bdo id='Aqxpx'><pre id='Aqxpx'><center id='Aqxpx'></center></pre></bdo></b><th id='Aqxpx'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Aqxpx'><tfoot id='Aqxpx'></tfoot><dl id='Aqxpx'><fieldset id='Aqxpx'></fieldset></dl></div>

      1. <legend id='Aqxpx'><style id='Aqxpx'><dir id='Aqxpx'><q id='Aqxpx'></q></dir></style></legend>
        <tfoot id='Aqxpx'></tfoot>

          <small id='Aqxpx'></small><noframes id='Aqxpx'>

                  <tbody id='Aqxpx'></tbody>
                  <bdo id='Aqxpx'></bdo><ul id='Aqxpx'></ul>
                  本文介紹了對話框android上的輪子選擇器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想從旋轉輪獲取文本作為密碼.你能給我任何旋轉輪的例子來從中獲取文本嗎?我沒有得到任何好的例子.提前致謝.

                  I want to get text from spin wheel as password. Can you please give me any example of spin wheel for getting text from it. I didn't get any good example. Thanks in advance.

                  推薦答案

                  我試圖得到這個旋轉輪,最后我已經建立了我的輪子來從用戶那里獲取文本.我舉了四個整數的例子.

                  I was trying to get this spin wheel at last I have build my wheel for getting the texts from the users. I am giving a example for four integers.

                   package com.example.wheel;
                  
                   import kankan.wheel.widget.ArrayWheelAdapter;
                   import kankan.wheel.widget.OnWheelChangedListener;
                   import kankan.wheel.widget.OnWheelScrollListener;
                   import kankan.wheel.widget.WheelView;
                   import android.R.color;
                   import android.app.Activity;
                   import android.app.Dialog;
                   import android.os.Bundle;
                   import android.view.View;
                   import android.view.Window;
                   import android.widget.Button;
                  
                  public class Wheelboxtcr extends Dialog implements
                      android.view.View.OnClickListener {
                  
                  String wheelMenu1[] = new String[] { "0", "1", "2", "3", "4", "5", "6",
                          "7", "8", "9" };
                  /*String wheelMenu2[] = new String[] { "A", "B", "C", "D", "E", "F", "G",
                          "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T",
                          "U", "V", "W", "X", "Y", "Z" };*/
                  
                  boolean wheelScrolled = false;
                  public Activity c;
                  public Dialog d;
                  public Button button;
                  
                  public Wheelboxtcr(Activity a) {
                      super(a);
                      // TODO Auto-generated constructor stub
                      this.c = a;
                  }
                  
                  @Override
                  protected void onCreate(Bundle savedInstanceState) {
                      super.onCreate(savedInstanceState);
                      requestWindowFeature(color.transparent);
                      requestWindowFeature(Window.FEATURE_NO_TITLE);
                      setContentView(R.layout.wheellayouttcr);
                      button = (Button) findViewById(R.id.btn);
                      button.setOnClickListener(this);
                      initWheel1(R.id.p1);
                      initWheel2(R.id.p2);
                      initWheel3(R.id.p3);
                      initWheel4(R.id.p4);
                  
                  }
                  
                  OnWheelScrollListener scrolledListener = new OnWheelScrollListener() {
                      public void onScrollStarts(WheelView wheel) {
                          wheelScrolled = true;
                      }
                  
                      public void onScrollEnds(WheelView wheel) {
                          wheelScrolled = false;
                          updateStatus();
                      }
                  };
                  
                  // Wheel changed listener
                  private final OnWheelChangedListener changedListener = new OnWheelChangedListener() {
                      public void onChanged(WheelView wheel, int oldValue, int newValue) {
                          if (!wheelScrolled) {
                              updateStatus();
                          }
                      }
                  };
                  
                  /**
                   * Updates entered PIN status
                   */
                  private void updateStatus() {
                      // Main.text3.setText(wheelMenu2[getWheel(R.id.p3).getCurrentItem()]);
                  
                  }
                  
                  private void initWheel1(int id) {
                      WheelView wheel = (WheelView) findViewById(id);
                  
                      wheel.setAdapter(new ArrayWheelAdapter<String>(wheelMenu1));
                      wheel.setVisibleItems(2);
                      wheel.setCurrentItem(0);
                      wheel.addChangingListener(changedListener);
                      wheel.addScrollingListener(scrolledListener);
                  }
                  
                  private void initWheel2(int id) {
                      WheelView wheel = (WheelView) findViewById(id);
                  
                      wheel.setAdapter(new ArrayWheelAdapter<String>(wheelMenu1));
                      wheel.setVisibleItems(2);
                      wheel.setCurrentItem(0);
                      wheel.addChangingListener(changedListener);
                      wheel.addScrollingListener(scrolledListener);
                  }
                  
                  private void initWheel3(int id) {
                      WheelView wheel = (WheelView) findViewById(id);
                  
                      wheel.setAdapter(new ArrayWheelAdapter<String>(wheelMenu1));
                      wheel.setVisibleItems(2);
                      wheel.setCurrentItem(0);
                      wheel.addChangingListener(changedListener);
                      wheel.addScrollingListener(scrolledListener);
                  }
                  
                  private void initWheel4(int id) {
                      WheelView wheel = (WheelView) findViewById(id);
                  
                      wheel.setAdapter(new ArrayWheelAdapter<String>(wheelMenu1));
                      wheel.setVisibleItems(2);
                      wheel.setCurrentItem(0);
                      wheel.addChangingListener(changedListener);
                      wheel.addScrollingListener(scrolledListener);
                  }
                  
                  
                  private WheelView getWheel(int id) {
                      return (WheelView) findViewById(id);
                  }
                  
                  private int getWheelValue(int id) {
                      return getWheel(id).getCurrentItem();
                  }
                  
                  @Override
                  public void onClick(View v) {
                      switch (v.getId()) {
                      case R.id.btn: {
                          String s = wheelMenu1[getWheel(R.id.p1).getCurrentItem()]
                                  + wheelMenu1[getWheel(R.id.p2).getCurrentItem()]
                                  + wheelMenu1[getWheel(R.id.p3).getCurrentItem()]
                                  + wheelMenu1[getWheel(R.id.p4).getCurrentItem()]
                                  ;
                  
                          Display.jno.setText(s);
                          break;
                      }
                  
                      default:
                          break;
                      }
                      dismiss();
                  }
                  }
                  

                  這是布局

                  <?xml version="1.0" encoding="utf-8"?>
                   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_width="wrap_content"
                  android:layout_height="103dp"
                  android:background="@android:color/background_dark"
                  android:orientation="vertical" >
                  
                  <LinearLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:background="@android:color/transparent" >
                  
                      <kankan.wheel.widget.WheelView
                          android:id="@+id/p1"
                          android:layout_width="33dp"
                          android:layout_height="wrap_content" />
                  
                      <kankan.wheel.widget.WheelView
                          android:id="@+id/p2"
                          android:layout_width="33dp"
                          android:layout_height="wrap_content" />
                  
                      <kankan.wheel.widget.WheelView
                          android:id="@+id/p3"
                          android:layout_width="33dp"
                          android:layout_height="wrap_content" />
                  
                      <kankan.wheel.widget.WheelView
                          android:id="@+id/p4"
                          android:layout_width="33dp"
                          android:layout_height="wrap_content" />
                  
                      <Button
                          android:id="@+id/btn"
                          android:layout_width="fill_parent"
                          android:layout_height="38dp"
                          android:clickable="true"
                          android:gravity="center"
                          android:text="Set"
                          android:textColor="#eaa932"
                          android:textSize="20dp"
                          android:textStyle="bold" />
                  </LinearLayout>
                  </LinearLayout>
                  

                  這篇關于對話框android上的輪子選擇器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                    <bdo id='GksR2'></bdo><ul id='GksR2'></ul>

                  • <i id='GksR2'><tr id='GksR2'><dt id='GksR2'><q id='GksR2'><span id='GksR2'><b id='GksR2'><form id='GksR2'><ins id='GksR2'></ins><ul id='GksR2'></ul><sub id='GksR2'></sub></form><legend id='GksR2'></legend><bdo id='GksR2'><pre id='GksR2'><center id='GksR2'></center></pre></bdo></b><th id='GksR2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GksR2'><tfoot id='GksR2'></tfoot><dl id='GksR2'><fieldset id='GksR2'></fieldset></dl></div>

                    <legend id='GksR2'><style id='GksR2'><dir id='GksR2'><q id='GksR2'></q></dir></style></legend>
                      <tbody id='GksR2'></tbody>
                  • <tfoot id='GksR2'></tfoot>
                      • <small id='GksR2'></small><noframes id='GksR2'>

                          1. 主站蜘蛛池模板: 亚洲精品乱码久久久久v最新版 | 国产精品视频一二三区 | 欧美另类视频在线 | 久久99精品久久久久 | 欧美精品在线免费 | 69性欧美高清影院 | 久久久久久亚洲 | 国产精品一区一区 | 黄色av网站在线免费观看 | 搞av.com | 992人人草 | 午夜精品福利视频 | 男人的天堂久久 | 久久国际精品 | 中文字幕一区二区三区四区五区 | 91精品国产91久久久久久吃药 | 精品国产乱码久久久久久88av | 久久精品一级 | 久久69精品久久久久久久电影好 | 激情av| 久久久久久久av | 成人夜晚看av | 国产成人99久久亚洲综合精品 | 精品亚洲永久免费精品 | 亚洲成人免费 | av国产精品 | 国产免费一区二区三区 | 99精品在线观看 | 国产精品久久久久久久久久久久久 | 日韩国产在线观看 | 国产精品a一区二区三区网址 | 亚洲欧美一区二区三区国产精品 | 鲁一鲁资源影视 | 亚洲欧洲av在线 | 亚洲免费在线观看 | 日韩有码一区 | 91精品国产综合久久久动漫日韩 | 精品国产一区二区三区性色av | 欧美在线视频一区 | 一区二区三区四区免费观看 | 亚洲成人av在线播放 |