自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

驗(yàn)證碼倒計(jì)時(shí)

移動(dòng)開發(fā)
驗(yàn)證碼相關(guān): 1、發(fā)送短信驗(yàn)證碼按鈕的倒計(jì)時(shí) 2、按鈕的并行監(jiān)聽 3、finish之后,后臺(tái)線程依舊進(jìn)行計(jì)時(shí) 【附注:】此源碼與之前 子豪 的機(jī)制完全不一樣,因此不是重復(fù)代碼,可以放心下載!


源碼簡(jiǎn)介

驗(yàn)證碼相關(guān): 1、發(fā)送短信驗(yàn)證碼按鈕的倒計(jì)時(shí) 2、按鈕的并行監(jiān)聽 3、finish之后,后臺(tái)線程依舊進(jìn)行計(jì)時(shí) 【附注:】此源碼與之前 子豪 的機(jī)制完全不一樣,因此不是重復(fù)代碼,可以放心下載!
源碼截圖

源碼片段:

  1. public class TestMainActivity extends Activity implements OnClickListener { 
  2.   
  3.     private MyCodeButton v; 
  4.   
  5.     @Override 
  6.     protected void onCreate(Bundle savedInstanceState) { 
  7.         super.onCreate(savedInstanceState); 
  8.         setContentView(R.layout.activity_main); 
  9.         v = (MyCodeButton) findViewById(R.id.button1); 
  10.         v.onCreate(savedInstanceState); 
  11.         v.setTextAfter("s后重新獲取").setTextBefore("獲取驗(yàn)證碼").setLenght(60 * 1000); 
  12.         v.setOnClickListener(this); 
  13.     } 
  14.   
  15.     @Override 
  16.     public void onClick(View v) { 
  17.         // TODO Auto-generated method stub 
  18.         Toast.makeText(TestMainActivity.this"并行處理點(diǎn)擊事件..."
  19.                 Toast.LENGTH_SHORT).show(); 
  20.     } 
  21.   
  22.     @Override 
  23.     protected void onDestroy() { 
  24.         // TODO Auto-generated method stub 
  25.         v.onDestroy(); 
  26.         super.onDestroy(); 
  27.     } 

源碼鏈接:http://down.51cto.com/upload

責(zé)任編輯:chenqingxiang 來源: 網(wǎng)絡(luò)整理
相關(guān)推薦

2015-01-21 16:07:57

Android源碼驗(yàn)證碼倒計(jì)時(shí)

2019-08-23 09:52:59

Axure 產(chǎn)品經(jīng)理

2017-07-20 16:21:52

UICountDownTidelay

2022-10-21 15:42:21

倒計(jì)時(shí)鴻蒙

2011-04-11 09:17:28

Ubuntu倒計(jì)時(shí)

2014-03-21 13:46:45

2014-08-18 14:30:27

Android倒計(jì)時(shí)

2011-04-11 09:50:56

Ubuntu 11.0

2014-02-18 10:36:33

2013-04-09 10:01:18

微軟Windows XP

2013-10-10 09:23:15

Android 4.4Kitkat

2019-12-13 19:37:00

BashLinux命令

2020-10-28 17:54:49

成都信息安全

2013-10-08 09:24:39

Windows 8.1Windows 8

2022-06-14 08:45:27

瀏覽器IEWindows

2023-08-16 11:23:59

2013-06-06 11:27:52

iRadioWWDC2013

2019-11-22 11:54:04

數(shù)字時(shí)代數(shù)字中國數(shù)字產(chǎn)業(yè)

2017-02-09 16:35:17

戴爾
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)