|
|
@@ -71,11 +71,16 @@ public class Loading {
|
|
|
FrameLayout frameLayout = activity.findViewById(android.R.id.content);
|
|
|
LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
view = inflater.inflate(R.layout.dialog_loading, null);
|
|
|
+ FrameLayout layoutContainer = view.findViewById(R.id.container_loading);
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
- * navigationBar 있는 경우 하단 마진 추가함
|
|
|
+ * navigationBar 있는 경우 하단 마진 추가, 콘텐츠를 클릭할 때마다 색 반전 방지
|
|
|
*/
|
|
|
- frameLayout.setPadding(0, 0, 0, ResourceUtil.getNavBarHeight());
|
|
|
+
|
|
|
+ FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) layoutContainer.getLayoutParams();
|
|
|
+ layoutParams.setMargins(0, 0, 0, ResourceUtil.getNavBarHeight());
|
|
|
+ layoutContainer.setLayoutParams(layoutParams);
|
|
|
|
|
|
view.setClickable(true);
|
|
|
view.setAlpha(0f);
|