|
|
@@ -2,6 +2,7 @@ package kr.co.zumo.app.lifeplus.view.custom;
|
|
|
|
|
|
import android.app.Activity;
|
|
|
import android.graphics.Rect;
|
|
|
+import android.util.Log;
|
|
|
import android.view.View;
|
|
|
import android.widget.FrameLayout;
|
|
|
|
|
|
@@ -21,8 +22,8 @@ import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
public class FullScreenWithKeyBoardLayout {
|
|
|
|
|
|
|
|
|
- public static void assistActivity(Activity activity) {
|
|
|
- new FullScreenWithKeyBoardLayout(activity);
|
|
|
+ public static void assistActivity(Activity activity, Runnable listener) {
|
|
|
+ new FullScreenWithKeyBoardLayout(activity, listener);
|
|
|
}
|
|
|
|
|
|
private boolean isFullScreenVersion;
|
|
|
@@ -30,8 +31,10 @@ public class FullScreenWithKeyBoardLayout {
|
|
|
private int usableHeightPrevious;
|
|
|
private FrameLayout.LayoutParams frameLayoutParams;
|
|
|
private int statusBarHeight = ResourceUtil.getStatusBarHeight();
|
|
|
+ private Runnable listener;
|
|
|
|
|
|
- private FullScreenWithKeyBoardLayout(Activity activity) {
|
|
|
+ private FullScreenWithKeyBoardLayout(Activity activity, Runnable listener) {
|
|
|
+ this.listener = listener;
|
|
|
isFullScreenVersion = AppUtil.isFullScreenVersion();
|
|
|
|
|
|
FrameLayout parentContent = activity.findViewById(android.R.id.content);
|
|
|
@@ -74,6 +77,8 @@ public class FullScreenWithKeyBoardLayout {
|
|
|
}
|
|
|
frameLayoutParams.height = h;
|
|
|
}
|
|
|
+ Log.d("APP# FullScreenWithKeyBoardLayout | possiblyResizeChildOfContent", "|" + " h: " + frameLayoutParams.height);
|
|
|
+ listener.run();
|
|
|
childContent.requestLayout();
|
|
|
}
|
|
|
usableHeightPrevious = usableHeightNow;
|