• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Fail to Invalidate a Dialog

 
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hello,

I have a Dialog (MyDialog) called from Activity. MyDialg shows a ProgressDialog in AsyncTask process. It has 1 TextView to display message and 2 editboxes below it. The layout is so :


The problem that I face is :
In AsyncTask process, if at all any error occurs, I display it in messageText textView. I have already made it of 2 lines and 70dp height. Yet when some message of more than 1 line comes up, the below 2 editText's are gone i.e. invisible. On finishing AsyncTask, I call this.getCurrentFocus().invalidate();, but that alos has no affect.

How do I get rid of this problem and make the 2 edittext's visible even after ProgressDialog is gone and message is dispaled in TextVew. Am I going wrong anywhere ? Please help me out.

Thanks
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally, I would start by converting your TableLayout to a Relative or Linear Layout. Table Layout is such and eyesore and pain.

I'm kind of curious what you're trying to accomplish here. From what I'm reading, you're just trying to make an input Dialog. Can you post the java code as well?
 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Michael Hari wrote:Personally, I would start by converting your TableLayout to a Relative or Linear Layout. Table Layout is such and eyesore and pain.

I'm kind of curious what you're trying to accomplish here. From what I'm reading, you're just trying to make an input Dialog. Can you post the java code as well?





This is my Java code related the issue. NOTE: If the text of mMessage is just a small text that fits in a line, then all stays fine. But if more than 1 line text is there the problem arises i.e. both the text fields are lost. Surprising, when I click Login button again a nd again the ProgressDialog comes up, I can see the both editText's behin the ProgressDialog.

 
A tiny monkey bit me and I got tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic