|
|
@@ -4,6 +4,7 @@ import android.support.constraint.ConstraintLayout;
|
|
|
import android.view.View;
|
|
|
import android.widget.LinearLayout;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
@@ -52,6 +53,25 @@ public class ContentsListicleHolder extends ContentsHolder<ContentsItemBean> {
|
|
|
if (null != layoutContainer) {
|
|
|
layoutContainer.removeAllViews();
|
|
|
}
|
|
|
+ if (null != bean.getDescriptionList() && bean.getDescriptionList().size() > 0) {
|
|
|
+ // 첫 번째 항목에 모든 데이터가 들어있다.
|
|
|
+ List<ContentsDescriptionBean> list = new ArrayList<>();
|
|
|
+ ContentsDescriptionBean descriptionBean = bean.getDescriptionList().get(0);
|
|
|
+ if (null != descriptionBean) {
|
|
|
+ String description = descriptionBean.getDescription();
|
|
|
+
|
|
|
+ // "ㄹㅇㄴㅁㄹㅇㄴ\nㄹㅇㄴㅁㄹㅇ\n\nㄹㅇㄴㅁ\n\nㄹㅇㄴㅁ\n\n\nㄹㅇㄴㅁㄹㅇ"
|
|
|
+ String[] strs = description.split("\n\n");
|
|
|
+ int len = strs.length;
|
|
|
+ for (int i = 0; i < len; ++i) {
|
|
|
+ ContentsDescriptionBean contentsDescriptionBean = new ContentsDescriptionBean();
|
|
|
+ contentsDescriptionBean.setDescription(strs[i]);
|
|
|
+ list.add(contentsDescriptionBean);
|
|
|
+ }
|
|
|
+
|
|
|
+ bean.setDescriptionList(list);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
for (int i = 0; i < bean.getDescriptionList().size(); i++) {
|
|
|
ContentsDescriptionBean contentsDescriptionBean = bean.getDescriptionList().get(i);
|