本文整理汇总了Java中com.csipsimple.utils.contacts.ContactsSearchAdapter类的典型用法代码示例。如果您正苦于以下问题:Java ContactsSearchAdapter类的具体用法?Java ContactsSearchAdapter怎么用?Java ContactsSearchAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ContactsSearchAdapter类属于com.csipsimple.utils.contacts包,在下文中一共展示了ContactsSearchAdapter类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.csipsimple.utils.contacts.ContactsSearchAdapter; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mDualPane = getResources().getBoolean(R.bool.use_dual_panes);
digitFormater = new PhoneNumberFormattingTextWatcher();
// Auto complete list in case of text
autoCompleteAdapter = new ContactsSearchAdapter(getActivity());
autoCompleteListItemListener = new OnAutoCompleteListItemClicked(autoCompleteAdapter);
if(isDigit == null) {
isDigit = !prefsWrapper.getPreferenceBooleanValue(SipConfigManager.START_WITH_TEXT_DIALER);
}
setHasOptionsMenu(true);
}
示例2: onAttachedToWindow
import com.csipsimple.utils.contacts.ContactsSearchAdapter; //导入依赖的package包/类
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
if(isInEditMode()) {
// Don't bind cursor in this case
return;
}
contactsAdapter = new ContactsSearchAdapter(getContext());
completeList.setAdapter(contactsAdapter);
completeList.setOnItemClickListener(this);
// autoCompleteAdapter = new ContactsAutocompleteAdapter(getContext());
// dialUser.setAdapter(autoCompleteAdapter);
}
示例3: onCreate
import com.csipsimple.utils.contacts.ContactsSearchAdapter; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
autoCompleteAdapter = new ContactsSearchAdapter(getActivity());
}
示例4: OnAutoCompleteListItemClicked
import com.csipsimple.utils.contacts.ContactsSearchAdapter; //导入依赖的package包/类
/**
* Instanciate with a ContactsSearchAdapter adapter to search in when a
* contact entry is clicked
*
* @param adapter the adapter to use
*/
public OnAutoCompleteListItemClicked(ContactsSearchAdapter adapter) {
searchAdapter = adapter;
}