本文整理汇总了Java中org.androidannotations.annotations.AfterTextChange类的典型用法代码示例。如果您正苦于以下问题:Java AfterTextChange类的具体用法?Java AfterTextChange怎么用?Java AfterTextChange使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AfterTextChange类属于org.androidannotations.annotations包,在下文中一共展示了AfterTextChange类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: dealPhoneChange
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(R.id.phoneEdit)
public void dealPhoneChange(){
String phone = phoneEdit.getText().toString();
// 取出用户
List<User> users = sqliteHelper.get(ModelFactory.getUserTableName(), null,
SqlBuilder.geneWhere("=","phone"), new String[]{phone}
, null, null, null, null);
if(null!=users&&users.size()>0) {
String avatarPath = users.get(0).getAvatar();
if(!CommonUtil.isEmpty(avatarPath)) {
File file = new File(avatarPath);
Uri uri = Uri.fromFile(file);
Bitmap bitmap = DecodeUtil.decode(getApplicationContext(), uri, 400, 400);
Drawable drawable = new BitmapDrawable(getResources(), bitmap);
avatar.setImageDrawable(drawable);
}
} else {
avatar.setImageResource(R.drawable.avatar_default);
}
}
开发者ID:ccliu2015,项目名称:love,代码行数:21,代码来源:LoginActivity.java
示例2: setSxEditChange
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(R.id.sxAcountEdit)
void setSxEditChange(TextView editText) {
if (CheckUtils.sxAcountIsValid(editText.getText().toString().toUpperCase())) {
sxAcountValid = true;
editText.setBackgroundResource(R.drawable.bg_view_frame_green);
} else {
sxAcountValid = false;
editText.setBackgroundResource(R.drawable.bg_view_frame_red);
}
}
开发者ID:WrBug,项目名称:wtshanxun,代码行数:12,代码来源:MainActivity.java
示例3: OnTextChangeListener
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
/**
* Search bank by input.
* @param text
* @param hello
*/
@AfterTextChange(R.id.search_bank_et)
void OnTextChangeListener(Editable text, TextView hello){
String string = text.toString();
if(string != null && string.length()>0){
mClearLayout.setVisibility(View.VISIBLE);
mBankList = BankListDBUtil.getInstance().getBankList(string);
}else {
mClearLayout.setVisibility(View.INVISIBLE);
mBankList = BankListDBUtil.getInstance().getBankList("");
}
mAdapter = new ArrayAdapter<String>(getActivity(),R.layout.item_dialog_select, R.id.dialog_select_text, mBankList);
mListView.setAdapter(mAdapter);
}
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:19,代码来源:BankSelectFragment.java
示例4: afterTextChange
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(resName = {"txtEmail", "txtPassword"})
void afterTextChange(TextView txtView) {
if (txtEmail.getText().length() != 0 && txtPassword.getText().length() != 0) {
btnLogin.setEnabled(true);
} else {
btnLogin.setEnabled(false);
}
}
开发者ID:tausiq,项目名称:DroidPlate,代码行数:9,代码来源:DPLoginFragment.java
示例5: afterTextChange
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(R.id.userPhoneEditText) void afterTextChange(Editable s) {
if (s.toString().trim().length() == 0) {
btnLogin.setEnabled(false);
} else {
btnLogin.setEnabled(true);
}
}
开发者ID:indexer,项目名称:popa,代码行数:8,代码来源:LoginActivity.java
示例6: setSxPassEditChange
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(R.id.sxPasswordEdit)
void setSxPassEditChange(TextView editText) {
preference.putString(Preference.SX_PASS, editText.getText().toString());
}
开发者ID:WrBug,项目名称:wtshanxun,代码行数:5,代码来源:MainActivity.java
示例7: onSearchTextChange
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(R.id.etSearch)
void onSearchTextChange() {
// Something Here
String text = etSearch.getText().toString();
NetworkInterface.searchPlace(mContext, text, "wuxi", searchPlaceListener);
}
开发者ID:bangqu,项目名称:eshow-android,代码行数:7,代码来源:SearchLocationActivity.java
示例8: descriptionChanged
import org.androidannotations.annotations.AfterTextChange; //导入依赖的package包/类
@AfterTextChange(R.id.edttxtDescription)
void descriptionChanged()
{
invalidateOptionsMenu();
}
开发者ID:ChristopherGittner,项目名称:OSMBugs,代码行数:6,代码来源:AddOsmNoteActivity.java
注:本文中的org.androidannotations.annotations.AfterTextChange类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论