예제 #1
0
 public void setFocus(View focus) {
   assert (focus != null);
   clearFocus();
   mFocus = focus;
   moveToTopOfPile(focus);
   setHighlight(focus, true);
   scheduleFocusReaper(mMaxFocusTime);
 }
예제 #2
0
 public void clearFocus() {
   if (hasFocus()) {
     setHighlight(getFocus(), false);
   }
   mFocus = null;
 }