2010-07-20 62 views

回答

2

我會用一個MatchFilter,這樣

MatchFilter matcher = new MatchFilter() { 
     boolean firstTime; 
     @Override 
     public boolean acceptMatch(CharSequence s, int start, int end) { 
      if(firstTime) { 
       return true; 
       firstTime = false; 
      } else { 
       return false; 
      } 
     } 
    }; 

希望它可以幫助