Android界面控件 下载本文

38. @Override

39. public void onTextChanged(CharSequence s, int start, int before, int count) { 40. SwitcherActivity.this.myTextSwitcher.setText(SwitcherActivity.this.myDigitalClo

ck.getText()); 41. } 42.

43. @Override

44. public void beforeTextChanged(CharSequence s, int start, int count, int after) { 45. } 46.

47. @Override

48. public void afterTextChanged(Editable s) { 49. } 50. }; 51. } Xml代码

1.

2.

6. android:gravity=\> 7.

8.