2.6测试 BUG修改
This commit is contained in:
@ -5,6 +5,9 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.gamecenter.adapter.CommentDetailAdapter;
|
||||
@ -18,6 +21,10 @@ public class CommentDetailActivity extends BaseActivity {
|
||||
|
||||
@BindView(R.id.comment_detail_rv)
|
||||
RecyclerView mRecyclerView;
|
||||
@BindView(R.id.reuse_none_data)
|
||||
LinearLayout mNoData;
|
||||
@BindView(R.id.reuse_tv_none_data)
|
||||
TextView mNoDataTv;
|
||||
|
||||
private CommentDetailAdapter mAdapter;
|
||||
private LinearLayoutManager mLayoutManager;
|
||||
@ -41,7 +48,7 @@ public class CommentDetailActivity extends BaseActivity {
|
||||
|
||||
String commentId = getIntent().getExtras().getString("commentId");
|
||||
|
||||
mAdapter = new CommentDetailAdapter(this, commentId);
|
||||
mAdapter = new CommentDetailAdapter(this, this, commentId);
|
||||
mLayoutManager = new LinearLayoutManager(this);
|
||||
mRecyclerView.setLayoutManager(mLayoutManager);
|
||||
mRecyclerView.setAdapter(mAdapter);
|
||||
@ -56,4 +63,12 @@ public class CommentDetailActivity extends BaseActivity {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadEmpty() {
|
||||
super.loadEmpty();
|
||||
mNoData.setVisibility(View.VISIBLE);
|
||||
mNoDataTv.setText("天了噜~页面不见了");
|
||||
mRecyclerView.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user