views:

50

answers:

1

Hi All,

I have a small problem. In my activity i have a edittext and button. Clicking on button I am changing the inputtype of the edittext. Now whats when i click button the input type changes but the cursor goes to the begining of the text in edittext. Can i retain the same position of the cursor or can i bring the cursor to the end of the text. I tried setSelection(edittextobj.getText().length()) but doesnot work how can i achive this....

A: 

I have the same problem . Anyone ?