|
|
@@ -11,6 +11,7 @@ import android.view.ViewGroup;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.MainContentsBean;
|
|
|
+import kr.co.zumo.app.lifeplus.model.SuperModel;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
@@ -70,6 +71,9 @@ public class MainContentsWeatherHolder extends MainContentsHolder /*implements V
|
|
|
public void init(int index, MainContentsBean bean, IEventListener listener) {
|
|
|
weather = itemView.findViewById(R.id.layout_container_weather);
|
|
|
|
|
|
+ // 첫 번째 카테고리 내용이 약간 가려지도록 일정 높이를 조절한다.
|
|
|
+ ViewGroup.LayoutParams params = itemView.getLayoutParams();
|
|
|
+ params.height = SuperModel.getInstance().getScreenHeight() - ResourceUtil.dpToPx(350);
|
|
|
// itemView.getViewTreeObserver().addOnGlobalLayoutListener(this);
|
|
|
|
|
|
initWeatherY = ResourceUtil.getDimension(R.dimen.main_contents_weather_margin_top); //weather.getY();
|