[android-developers] Re: soft keyboard does not show when creating EditText inside a TableRow dynamically (programmatically )

2010-02-02 Thread Justin Matthews
Looks like this is being caused by the call to txt.requestFocus(). Changing to txt.requestFocusFromTouch() solves this problem. -justin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers

[android-developers] Re: TableLayout will not draw new row addition

2010-02-02 Thread Justin Matthews
Try changing the class type when supplying the LayoutParams, see: http://caguilartech.blogspot.com/2009/08/notes-on-android-tablelayouts-and.html private TableRow createNewTableRow(TableRow newRow){ newRow.setLayoutParams(new TableLayout.LayoutParams (TableLayout.LayoutParams.WRAP_CONTENT

[android-developers] Re: TableLayout will not draw new row addition

2010-02-02 Thread Justin Matthews
Try changing the class type when supplying the LayoutParams, see: http://caguilartech.blogspot.com/2009/08/notes-on-android-tablelayouts-and.html. private TableRow createNewTableRow(TableRow newRow){ newRow.setLayoutParams(new TableLayout.LayoutParams (TableLayout.LayoutParams.WRAP_CONTEN

[android-developers] Re: soft keyboard does not show when creating EditText inside a TableRow dynamically (programmatically )

2010-02-02 Thread Justin Matthews
If a EditText is created not within the TableLayout, this dynamically created EditText works as expected. The soft keyboard pops up when first clicking into the newly created EditText. This must have something to do with the way the EditText is created inside a new row. Any ideas? Thanks. Code

[android-developers] soft keyboard does not show when creating EditText inside a TableRow dynamically (programmatically )

2010-01-26 Thread Justin Matthews
Hi, Below is some test code that tries to create a TableRow dynamically. One of the columns contains an EditText the other a single button. Initially the TableLayout contains a single row from the main.xml layout. There is a button on the screen (plus icon) adds a new row. The problem is that if

[android-developers] Re: EditText default soft keyboard (alpha vs. digit)?

2010-01-07 Thread Justin Matthews
Has anyone been able to find a solution for this? It has now been asked a couple times: http://groups.google.com/group/android-developers/browse_thread/thread/c3e5971c110faa95/c58de37e472fe2c4?lnk=gst&q=soft+keyboard+ime#c58de37e472fe2c4 Thanks. -justin On Dec 24 2009, 3:07 pm, Keith Wiley wrot