0

I have an EditText with a TextWatcher attached to it and the onChangeText method works flawlessly.

I'd like to add a mini icon/button at the very right end of the EditText, which clears the text and then disappears.

May I have some direction on how to implement this? I don't want source code, but an idea on what mechanism to use. Thank you in advance.

4

1 に答える 1

1

私はあなたがそれをあなたが望むようにあなたのレイアウトに永久に持っていると言いますが、あなたは通常可視性をGONEに設定し、それを表示したいときにそれをVISIBLEに設定するだけです.

于 2011-10-13T08:04:17.733 に答える