This is just a bug, in the future non-editable views will always report
TYPE_NULL.  There is a bug in the current TextView code where it reports
TYPE_CLASS_TEXT even for static fields.

On Sun, Feb 15, 2009 at 11:17 PM, 冰咖啡不加糖 <[email protected]> wrote:

>
> how can i destinguish Button and EditText
> these Editinfo has the same inputType value TYPE_CLASS_TEXT
>
> i know we could set EditText'attribute(such pasword field or number
> only), but that will not always be done.
>
> On Feb 12, 10:11 am, Dianne Hackborn <[email protected]> wrote:
> > On Wed, Feb 11, 2009 at 4:46 PM, gunner <[email protected]> wrote:
> > > Does the IMF implementation provide context information about the edit
> > > box? (Such as it is being a password field or number only field, etc.)
> >
> > Yep, this is the basic API though it will be ultimately be slightly
> > different:
> >
> > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support.  All such questions should be posted on public
> > forums, where I and others can see and answer them.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to