1

私はこのコードを使用しようとしています:

actionToggleButton=new ToggleButton(context);
actionToggleButton.setTextOn(null);
actionToggleButton.setTextOff(null);

しかし、私はまだデフォルトのテキストを取得しています! どうすればクリアできますか?ありがとう。

4

2 に答える 2

2

これを試して:

    ToggleButton button = new ToggleButton(this);
    button.setText(null);
    button.setTextOn(null);
    button.setTextOff(null);
于 2012-05-28T18:58:41.113 に答える