2014-05-25 2 views

답변

0

난 당신이 내가 있음이 도움말을 희망이

if(i==yourItem){ 
     try{ 
      Field selectorWheelPaintField = numberPicker.getClass() 
       .getDeclaredField("mSelectorWheelPaint"); 
      selectorWheelPaintField.setAccessible(true); 
      ((Paint)selectorWheelPaintField.get(numberPicker)).setColor(color); 
      ((EditText)child).setTextColor(color); 
      numberPicker.invalidate(); 
      return true; 
     } 
     catch(NoSuchFieldException e){ 
      Log.w("setNumberPickerTextColor", e); 
     } 
     catch(IllegalAccessException e){ 
      Log.w("setNumberPickerTextColor", e); 
     } 
     catch(IllegalArgumentException e){ 
      Log.w("setNumberPickerTextColor", e); 
     } 
} 

을하고 싶은 생각합니다.

+0

작동하지 않음 ... – user1004147

관련 문제