|
|
@@ -5,7 +5,11 @@ package kr.co.zumo.app.lifeplus.view.screen.search;
|
|
|
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
import android.view.View;
|
|
|
+import android.widget.TextView;
|
|
|
|
|
|
+import kr.co.zumo.app.R;
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.APIData;
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.FlagContentsBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.SearchContentsBean;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
|
|
|
@@ -25,4 +29,19 @@ public abstract class SearchResultHolder extends RecyclerView.ViewHolder {
|
|
|
}
|
|
|
|
|
|
public abstract void bind(SearchContentsBean bean, IEventListener listener);
|
|
|
+
|
|
|
+ protected void showFlag(TextView textFlag, SearchContentsBean bean) {
|
|
|
+
|
|
|
+ // flag 노출
|
|
|
+ /*
|
|
|
+ 스페셜 최우선, 나머지는 중복되지 않음.
|
|
|
+ */
|
|
|
+ textFlag.setAlpha(1f);
|
|
|
+ if(APIData.isTrue(bean.getExpsBnfYn())) {
|
|
|
+ textFlag.setText(R.string.main_flag_benefit);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ textFlag.setAlpha(0f);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|