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
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
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
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
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
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
6 matches
Mail list logo