Many people (including myself) have encountered the problem of having an activity with a Tabhost aligned at the bottom of screen instead of its top.
What happens when you have an EditText or any other input method!
A soft keyboard will appear and push your TabHost above itself.
What's the solution for this? Turns out to be simple!
The cause of this problem is the android:windowSoftInputMethod property of your activity's tag in the manifest file.
To solve it use android:windowSoftInputMode="adjustPan|adjustResize".
Now your tabs will not float above the keyboard when an input starts.
This is really simple and does not need any further explanation. Whenever you decide to use a Tabbed Activity and you place your tabs on the bottom of the screen, use this code to disable the floating behavior.
Ba bye
Thanks, you really helped me out a lot with this.
ReplyDeleteGreat Article android based projects
DeleteJava Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training Project Centers in Chennai
This is bot always working.. and least not for me!
ReplyDeleteIt is!
ReplyDeleteIf using an ActivityGroup put android:windowSoftInputMode="adjustPan|adjustResize" in your main activity.
Gud cheers bru
ReplyDeleteThank you, really helped me out a lot with this.
ReplyDeleteThis solution is not working, will you please give me some another solution.
ReplyDeletedoes this work on a full screen app?
ReplyDeleteThank you this solution really helps, and thanks too for the Anonymous comment who said put this in main activity.
ReplyDeleteThanks so much
ReplyDeletePlease refer below if you are looking for best Online job support and proxy interview from India
ReplyDeleteDevOps Online Job Support From India | PHP Online Job Support From India | Selenium Online Job Support From India | Hadoop Online Job Support From India | Java Online Job Support From India | Angular Online Job Support From India | Python Online Job Support From India | Android Online Job Support From India
Thank you for excellent article.
Internet Business Ideas for 2020
ReplyDeleteAs leaders in the field, we specialise in close protection in London.private security But what is a close protection officer and how is one different from a bodyguard?
ReplyDeleteAfter reading your whole article, I was very impressed. This is one of the most useful blogs i've ever seen. Thanks for posting, I look forward to learning more.
ReplyDeletePlease see the profile to learn more about Click Test. Please see the profile for more information. Here is my profile, where you can see how to set up a mouse click on Windows.
After a long time, I read a gorgeous and essential article that I enjoyed reading. I have found that this article has many important points. I sincerely thank the admin of this website for sharing it. If you are looking for tailor made erp software for your businesses, get a free consultation custom erp software development
ReplyDelete