Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Fields hidden due to keyboard

 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application there are some user input fields. Once the keyboard appears, some fields are hidden until I scroll using down arrow. How can I make sure the fields are visible. Is there a way to make the size small? Following code is from one layout file. How can I make it appear smaller so users can see everything.

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure but try to understand the semantics of android:windowSoftInputMode attribute of the <activity> tag in the manifest file. Maybe that can help.
 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all I know its an old thread but I started it and I am still unable to find a solution for this so rather than starting a new thread I am continuing here. I hope bartender won't mind.

Monu, based on your reply I used windowSoftInputMode and it did help a little. but still one or two buttons are hidden. I want my page to become scrollable just like web pages. I don't expect the keyboard to not hide but if user scroll then it would be acceptable.

Thanks
Imad

 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer. I had to put my tablelayout inside scrollview.

Here is the new code in case it might help someone.

 
Why is the word "abbreviation" so long? And this ad is so short?
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!