> I know that it is easier to make with some Layout. But It would be much
> more intelligent if it is done within the EditText !
>
Why would it be more "intelligent" to do it within EditText?  Just override
a LinearLayout, put the components in it that you want, and then create a
custom class for that LinearLayout that contains the methods you want.

I have done this on many occasions...  It is simple, it is elegant, you
treat it like a single object, and it works.  A wise developer once told me
"Do the simplest thing that could possibly work."

In your case I personally think it would be overkill to EditText.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jun 20, 2012 at 3:00 PM, danaimset <[email protected]> wrote:

> Hi everybody.
>
>
> <https://lh5.googleusercontent.com/-h1aHV5o1odw/T-I4m0Bjj9I/AAAAAAAAD78/yW-vS2iJvSo/s1600/edit_text.png>
>
> I'd like to extend EditText to make my own Error Notification. I know that
> Android provides error notification in TextView but it is not really what I
> want.
>
> Is it possible to make it by extending EditText ?
>
> I know that it is easier to make with some Layout. But It would be much
> more intelligent if it is done within the EditText !
>
>
> Thank you.
>
> Dan.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to