|
|
@@ -18,6 +18,7 @@ import kr.co.zumo.app.lifeplus.supervisor.AnimatorManager;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
+import kr.co.zumo.app.lifeplus.view.screen.category.CategoryID;
|
|
|
|
|
|
/**
|
|
|
* MainContentsCategoryHolder
|
|
|
@@ -72,12 +73,23 @@ public class MainContentsCategoryHolder extends MainContentsHolder {
|
|
|
this.index = index;
|
|
|
|
|
|
textView.setText(bean.getCategoryName());
|
|
|
- textMore.setOnClickListener(v -> {
|
|
|
- listener.onEvent(new Event.Builder(Event.MORE).string(bean.getCategoryNumber()).build());
|
|
|
- });
|
|
|
- imageMore.setOnClickListener(v -> {
|
|
|
- listener.onEvent(new Event.Builder(Event.MORE).string(bean.getCategoryNumber()).build());
|
|
|
- });
|
|
|
+ // 기본 카테고리가 아닌 경우 (2~6 이외) 더보기 버튼 없음.
|
|
|
+ int categoryNo = Integer.parseInt(bean.getCategoryNumber());
|
|
|
+ if (categoryNo < Integer.parseInt(CategoryID.CATEGORY_1) || categoryNo > Integer.parseInt(CategoryID.CATEGORY_5)) {
|
|
|
+ // 더보기 없음.
|
|
|
+ textMore.setVisibility(View.GONE);
|
|
|
+ imageMore.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ textMore.setVisibility(View.VISIBLE);
|
|
|
+ imageMore.setVisibility(View.VISIBLE);
|
|
|
+ textMore.setOnClickListener(v -> {
|
|
|
+ listener.onEvent(new Event.Builder(Event.MORE).string(bean.getCategoryNumber()).build());
|
|
|
+ });
|
|
|
+ imageMore.setOnClickListener(v -> {
|
|
|
+ listener.onEvent(new Event.Builder(Event.MORE).string(bean.getCategoryNumber()).build());
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
// 첫 번째 카테고리만 에니메이션 적용
|
|
|
if (this.index == 1 && AnimatorManager.getInstance().isCompleted() == false) {
|