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. GK: How to achive handwriting recognition in Android.

Hi All,
 I need a simple Example program on handwriting recognition and
Gestures.


Can any one  provide me some info to achive this ?

Whether its possible in Android ?


Cheers,
Ganesh

-- 

2. passing params from ksoap2 to .net web service, always passes nulls

i've searched and googled to no avail....

i can call my.net c# web service just fine without parameters, as soon
as i add a param that param is null when it hits the service.. i've
tried passing objects, classes. I've tried every single
SoapSerializationEnvelope type..  everything i could read on ksoap2.

.net code below

        [SoapRpcMethod, WebMethod]
        public string ReturnResources(string Facility)
        {
            if (Facility == null) {
                System.Diagnostics.EventLog.Wri{*filter*}try("Application",
"Null!!!!!!!!!!!!");
                return "Nothing Found";
            }
        }



android code below (i assure you it works fine without params)

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("Facility", Facilities[0]);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC ;
envelope.setOutputSoapObject(request);

HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
java.lang.String receivedString = (String)envelope.getResponse();


i have no errors client or server side, just a null passed as param.
i read xml is the only standard between languages, is this true? is it
the <d:string> not matching up to <s:string>? if so why do i get a
lang.string back just fine? sorry i'm just getting into android since
the droid, but any help would be much appreciated..  Thanks

-- 

3. notification which will be shown in place other than status

4. Architectural design question

5. Line Breakdown

6. Why R,java file is missing from Android open source apps

7. Debug.startMethodTracing(); leaves empty file