Selaa lähdekoodia

[공통][Bug] 액션바 - 프로그래스 바의 높이는 콘텐츠 레이아웃 높이 계산에 고려되지 않도록 수정

hyodong.min 7 vuotta sitten
vanhempi
commit
651f596e53

+ 4 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/CustomScrollingViewBehavior.java

@@ -12,6 +12,9 @@ import android.view.ViewGroup;
 
 import java.util.List;
 
+import kr.co.zumo.app.R;
+import kr.co.zumo.app.lifeplus.util.ResourceUtil;
+
 /**
  * CustomScrollingViewBehavior
  * <pre>
@@ -77,7 +80,7 @@ public class CustomScrollingViewBehavior extends AppBarLayout.ScrollingViewBehav
         }
 
         // 스크롤 범위를 더하지 않아 레이아웃 영역이 화면을 넘지 않도록 수정
-        final int height = availableHeight - header.getMeasuredHeight(); // + header.getMeasuredHeight();
+        final int height = availableHeight - ResourceUtil.getDimension(R.dimen.action_bar_height); // + header.getMeasuredHeight();
         final int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(height, childLpHeight == ViewGroup.LayoutParams.MATCH_PARENT
           ? View.MeasureSpec.EXACTLY
           : View.MeasureSpec.AT_MOST);