|
@@ -6,6 +6,7 @@ import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
import android.widget.FrameLayout;
|
|
import android.widget.FrameLayout;
|
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
|
|
|
+import android.widget.LinearLayout;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
import com.wiipu.commonlib.base.BaseMvpActivity;
|
|
import com.wiipu.commonlib.base.BaseMvpActivity;
|
|
@@ -25,9 +26,10 @@ public class researchResultActivity extends BaseMvpActivity implements researchR
|
|
|
ImageView iv_back;
|
|
ImageView iv_back;
|
|
|
|
|
|
|
|
@BindView(R.id.research_frame)
|
|
@BindView(R.id.research_frame)
|
|
|
- FrameLayout mFrameLayout;
|
|
|
|
|
|
|
+ LinearLayout mFrameLayout;
|
|
|
|
|
|
|
|
private researchResultPresenter mResearchResultPresenter;
|
|
private researchResultPresenter mResearchResultPresenter;
|
|
|
|
|
+ private researchResultResponse mResearchResultResponse;
|
|
|
|
|
|
|
|
private View itemView;
|
|
private View itemView;
|
|
|
|
|
|
|
@@ -41,12 +43,27 @@ public class researchResultActivity extends BaseMvpActivity implements researchR
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void showResearchResult(researchResultResponse researchResultResponse) {
|
|
public void showResearchResult(researchResultResponse researchResultResponse) {
|
|
|
|
|
+ mResearchResultResponse = researchResultResponse;
|
|
|
|
|
+ /*
|
|
|
itemView = LayoutInflater.from(researchResultActivity.this).inflate(R.layout.item_research_result, null);
|
|
itemView = LayoutInflater.from(researchResultActivity.this).inflate(R.layout.item_research_result, null);
|
|
|
TextView title = itemView.findViewById(R.id.item_research_title);
|
|
TextView title = itemView.findViewById(R.id.item_research_title);
|
|
|
- title.setText("索引号");
|
|
|
|
|
TextView content = itemView.findViewById(R.id.item_research_content);
|
|
TextView content = itemView.findViewById(R.id.item_research_content);
|
|
|
- content.setText(researchResultResponse.getIndex());
|
|
|
|
|
|
|
+ ImageView iv = itemView.findViewById(R.id.item_research_iv);
|
|
|
|
|
+
|
|
|
|
|
+ title.setText("索引号");
|
|
|
|
|
+ content.setText(researchResultResponse.getIndex());
|
|
|
|
|
+ mFrameLayout.addView(itemView);
|
|
|
|
|
+ itemView = LayoutInflater.from(researchResultActivity.this).inflate(R.layout.item_research_result, null);
|
|
|
|
|
+ title.setText("content");
|
|
|
|
|
+ content.setText(researchResultResponse.getContent());
|
|
|
|
|
+ mFrameLayout.addView(itemView);
|
|
|
|
|
+ itemView = LayoutInflater.from(researchResultActivity.this).inflate(R.layout.item_research_result, null);
|
|
|
|
|
+ title.setText("process");
|
|
|
|
|
+ content.setText(researchResultResponse.getProcess());
|
|
|
|
|
+ iv.setVisibility(View.VISIBLE);
|
|
|
mFrameLayout.addView(itemView);
|
|
mFrameLayout.addView(itemView);
|
|
|
|
|
+*/
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -81,7 +98,7 @@ public class researchResultActivity extends BaseMvpActivity implements researchR
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
protected void initListeners() {
|
|
protected void initListeners() {
|
|
|
-
|
|
|
|
|
|
|
+ iv_back.setOnClickListener(this);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -96,7 +113,14 @@ public class researchResultActivity extends BaseMvpActivity implements researchR
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
switch (v.getId()) {
|
|
switch (v.getId()) {
|
|
|
case R.id.iv_back:
|
|
case R.id.iv_back:
|
|
|
- finish();
|
|
|
|
|
|
|
+ itemView = LayoutInflater.from(researchResultActivity.this).inflate(R.layout.item_research_result, null);
|
|
|
|
|
+ TextView title = itemView.findViewById(R.id.item_research_title);
|
|
|
|
|
+ TextView content = itemView.findViewById(R.id.item_research_content);
|
|
|
|
|
+ ImageView iv = itemView.findViewById(R.id.item_research_iv);
|
|
|
|
|
+
|
|
|
|
|
+ title.setText("索引号");
|
|
|
|
|
+ content.setText(mResearchResultResponse.getIndex());
|
|
|
|
|
+ mFrameLayout.addView(itemView);
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|