主要內容:
壓縮模式:android:windowSoftInputMode="adjustResize",可以根據onSizeChanged()監聽鍵盤開啓與隱藏
平移模式:android:windowSoftInputMode="adjustPan"
自動模式:android:windowSoftInputMode="adjustUnspecified"
參考文章:http://www.cnblogs.com/youjun/archive/2012/07/15/2592002.html