|
|
@@ -10,7 +10,6 @@ import android.view.View;
|
|
|
import android.view.WindowManager;
|
|
|
import android.widget.FrameLayout;
|
|
|
|
|
|
-import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.application.App;
|
|
|
import kr.co.zumo.app.lifeplus.util.AppUtil;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
@@ -38,13 +37,12 @@ public class FullScreenWithKeyBoardLayout {
|
|
|
private FrameLayout.LayoutParams frameLayoutParams;
|
|
|
private int statusBarHeight = ResourceUtil.getStatusBarHeight();
|
|
|
private Runnable listener;
|
|
|
- private FrameLayout parentContent;
|
|
|
|
|
|
private FullScreenWithKeyBoardLayout(Activity activity, Runnable listener) {
|
|
|
this.listener = listener;
|
|
|
isFullScreenVersion = AppUtil.isFullScreenVersion();
|
|
|
|
|
|
- parentContent = activity.findViewById(android.R.id.content);
|
|
|
+ FrameLayout parentContent = activity.findViewById(android.R.id.content);
|
|
|
childContent = parentContent.getChildAt(0);
|
|
|
childContent.getViewTreeObserver().addOnGlobalLayoutListener(this::possiblyResizeChildOfContent);
|
|
|
|
|
|
@@ -67,8 +65,6 @@ public class FullScreenWithKeyBoardLayout {
|
|
|
//keyboard probably just became visible
|
|
|
heightDifference = heightDifference - ResourceUtil.getStatusBarHeightManual();
|
|
|
frameLayoutParams.height = usableHeightSansKeyboard - heightDifference;
|
|
|
- //키보드 등장시 검은색 -> 흰색 변경
|
|
|
- parentContent.setBackgroundColor(ResourceUtil.getColor(R.color.CFFFFFF));
|
|
|
}
|
|
|
else {
|
|
|
//keyboard probably just became hidden
|