제가 http://www.androidpub.com/45681 여기 있는 소스를 공부하고 있는데
초성검색 과정에서 홍길동 -> ㅎㄱㄷ 을치면 검색이 되는데
ㄱㄷ만 쳐도 홍길동이 검색되게끔 하려고 하면 어떤식으로 수정해야 될까요 부탁드립니다
private void addContact(List contactsList, String name, String number) throws Exception {
if (contactsList == null) {
throw new NullPointerException("contactList null 입니다.");
}
boolean isAdd = false;
if (searchKeyword != null && "".equals(searchKeyword.trim()) == false) {
String iniName = HangulUtil.getHangulInitialSound(name, searchKeyword);
if (iniName.indexOf(searchKeyword) >= 0) {
isAdd = true;
}}
else {
isAdd = true;
}
if (isAdd) {
contactsList.add(new Contact(name, number));
}
}