set single line and max length for edittext