Problem with TextEdit.setError (Bug?)

by Aaron Isotton » Sat, 27 Dec 2008 07:08:14 GMT


Sponsored Links
 Hi,

I'm developing a calculator-like application and I have a strange problem
with error popups. I won't say that it is a bug in android yet, but I think
it could be.

The UI of the application consists of a ListView at the top and an EditText
at the bottom. The ListView is configured to expand to the whole screen
except the space needed by the EditText; the EditText is always at the
bottom (it looks roughly like the thread view in the SMS application).

Now whenever I use setError on the EditText, the popup appears, but the
arrow is oriented wrong (upwards, pointing into nowhere). Screenshot:

 http://thenew.isotton.com/ ~aisotton/error.png

Does anyone have an idea of what could be wrong here? Is there something
obvious I'm missing?

The source is available here:

 http://thenew.isotton.com/ ~aisotton/pcalc.tar.gz

The compiled binary is here:

 http://thenew.isotton.com/ ~aisotton/pcalc.apk

Thanks,
Aaron
-- 
Aaron Isotton -  http://www.isotton.com/ 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. referring to res-id across packages

Hi:

  In the example
http://code.google.com/android/samples/ApiDemos/src/com/google/android/samples/view/LabelView.html
refers to
http://code.google.com/android/samples/ApiDemos/res/layout/custom_view_1.html

In java file, I see code to access new derived attributes using
"R.styleable.LabelView_textColor"

Can I access "android:background" in Java??
Given that the LabelView resides in a different package, what is the
programmatic way to access android:background in java code?  Is this
prohibited?

thanks
Jey

--~--~---------~--~----~------------~-------~--~----~

2. How to use a WindowAnimation?

This seems like a necessary feature to use in order to transition from
one activity to another in such a way that they animate synchronously
(one slides out while the other slides in, etc).

http://code.google.com/android/reference/android/R.styleable.html#WindowAnimation

--~--~---------~--~----~------------~-------~--~----~

3. Android Reviews

4. scalable vector graphics scalable vector graphics scalable vector graphics

5. scalable vector graphics scalable vector graphics scalable vector graphics

6. (D)GPS good to 10 cm

7. How to detect item selected in Spinner View as selecting different items