編輯:關於Android編程
需求是輸入點額才出現確定按鈕,因此要監聽EditText的輸入。而EditText的監聽輸入是:
priceReplyE.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
yesBtn.setVisibility(Button.VISIBLE);
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
}
@Override
public void afterTextChanged(Editable s) {
// TODO Auto-generated method stub
}
});
}
AsyncTask源碼分析
前置內容:Callable、Future、FutureTask Executor子類的execute方法接收一個Runnable作為參數,會在新線程中執行Ru
android:exported 屬性分析
昨天在用360掃描應用漏洞時,掃描結果,出來一個android:exported屬性,其實之前根本不知道這個屬性,更不知道這個屬性用來干嘛
Android Notification(通知)
通知基本用法通知的必要屬性一個通知必須包含以下三項屬性:小圖標,對應 setSmallIcon()通知標題,對應 setContentTitle()詳細信息,對應 set
Android 自定義ProgressDialog示例實現
閒來無事,總結了兩個自定義的ProgressDialog,大家可以參考下,根據自己需要進行選擇修改:實現效果:示例1:示例2: 代碼如下:MainA