Reputation: 43
I have Table of buttons at the bottom of my activity, but soft back and home buttons are overlapping activity and obstructing the buttons.I searched a lot but could't find how to avoid this
Upvotes: 0
Views: 881
Reputation: 8670
Use fitsSystemWindows to make your activity interactive to system Window size.
Add below code in your mainactivity_layout.xml
root
android:fitsSystemWindows = "true"
Upvotes: 0
Reputation: 43
Solved by adding the following in theme
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
Upvotes: 1