2017-04-04 10 views
0

次の方法をコードネーム1カレンダーで使用するにはどうすればよいですか?コードネーム1カレンダーの発行

protected void updateButtonDayDate(Button dayButton, int currentMonth, int day); 
protected Button createDay(); 
+0

は、なぜあなたは、これらのメソッドを「使用」したいん以下のコードに示すように、このメソッドをオーバーライドすることができますか?あなたは彼らに電話をかけたいですか、それを無効にして仕事の仕方を変えますか? –

答えて

1

独自のクラスを作成し、

class OwnCalendar extends Calendar{ 

      @Override 
      protected void updateButtonDayDate(Button dayButton, int currentMonth, int day) { 
// add your code 
       // super.updateButtonDayDate(dayButton, currentMonth, day); //To change body of generated methods, choose Tools | Templates. 
      } 


     } 
関連する問題