のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

zen mode

    435     public void onConfigurationChanged(Configuration newConfig) {
    436         updateWidth();
    437         if (mZenPanel != null) {
    438             mZenPanel.updateLocale();
    439         }
    440     }
    244     public void updateLocale() {
    245         mZenButtons.updateLocale();
    246     }
     91     public void updateLocale() {
     92         for (int i = 0; i < getChildCount(); i++) {
     93             final Button b = (Button) getChildAt(i);
     94             final int labelResId = (Integer) b.getTag(LABEL_RES_KEY);
     95             b.setText(labelResId);
     96         }
     97     }