MCPcopy Create free account

hub / github.com/demongel/SoftKeyboardHeight / types & classes

Types & classes10 in github.com/demongel/SoftKeyboardHeight

ClassAndroidBug5497Workaround
app/src/main/java/com/shakespace/softkeyboarddemo/loginwith5497/AndroidBug5497Workaround.java:13
ClassExampleInstrumentedTest
Instrumented test, which will execute on an Android device. @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
app/src/androidTest/java/com/shakespace/softkeyboarddemo/ExampleInstrumentedTest.java:17
ClassExampleUnitTest
Example local unit test, which will execute on the development machine (host). @see <a href="http://d.android.com/tools/testing">Testing documentatio
app/src/test/java/com/shakespace/softkeyboarddemo/ExampleUnitTest.java:12
ClassFullScreen5497Activity
实现全屏效果,不显示statusbar 全屏效果与adjustResize冲突, 使用AndroidBug5497Workaround,大部分机型可以适配,但是红米note2不行。 缺点: 除了个别适配问题外,也可能出现错误判定,例如如果底部view有大小调整或者消失之类,可能出现误调整。
app/src/main/java/com/shakespace/softkeyboarddemo/loginwith5497/FullScreen5497Activity.java:18
ClassImmersedStatusActivity
设置了状态栏透明后,同样会导致adjustResize无效,(并且出现了类似adjustNothing的效果) 此时使用5497类处理,对红米note有效。
app/src/main/java/com/shakespace/softkeyboarddemo/immersedstatus/ImmersedStatusActivity.java:18
InterfaceKeyboardHeightObserver
The observer that will be notified when the height of the keyboard has changed
app/src/main/java/com/shakespace/softkeyboarddemo/loginwithpopwindow/KeyboardHeightObserver.java:24
ClassKeyboardHeightProvider
The keyboard height provider, this class uses a PopupWindow to calculate the window height when the floating keyboard is opened and closed.
app/src/main/java/com/shakespace/softkeyboarddemo/loginwithpopwindow/KeyboardHeightProvider.java:39
ClassLoginWithPopWindowActivity
app/src/main/java/com/shakespace/softkeyboarddemo/loginwithpopwindow/LoginWithPopWindowActivity.java:19
ClassMainActivity
app/src/main/java/com/shakespace/softkeyboarddemo/MainActivity.java:17
ClassNoFullScreenLoginActivity
非全屏,直接设置adjustResize即可 只需要将中间空间留足即可 把背景和主题色改成一样,使用AppTheme(MD)系列主题,可以实现类似沉浸式效果 AppTheme没有NoAcionBar主题,需要自己新建 缺点:当背景是图片时,无法实现头部透明效果,使图片充满屏幕
app/src/main/java/com/shakespace/softkeyboarddemo/login/NoFullScreenLoginActivity.java:20