I want to have a button or clickable view in my EditText so that I can perform some actions when I click on it. I managed to add Marcosbeirigo EditText to this text for my answer. But now I want to make it clickable so that I can perform some actions on it. I know this is possible since HTC uses buttons inside EditText in its sms application in stock, as shown in the following figure -

In my case, the button will be located anywhere, it can also be in the center. But most importantly, how can I put a button in an EditText?
android android-edittext button
Rajkiran
source share