I need to design the search textbox with the fade effects around the edges.(Please look at the picture by link: The fade effect around the edges).
Anybody can give me an idea?
Thanks.
I need to design the search textbox with the fade effects around the edges.(Please look at the picture by link: The fade effect around the edges).
Anybody can give me an idea?
Thanks.
You can to it by simply create a Class lets say YourCustomEditText and extending the default EditText class. You can to it like this:
Then override the OnDraw method, only call the super(canvas) at the end so it wont draw as the default look.
instantiate it in the activity
YourCustomEditText yourCustomEditText;
then on the onCreate of the activity, you can cast it as an YourCustomEditText even with same EditText tag
yourCustomEditText = (YourCustomEditText) findViewById(R.id.customEditText);