I have bad news and good news. There is no direct API to detect this.
But you can detect if your layout is forcibly changed by Android due
to the soft keyboard [dis]appearing, which you can detect.
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.