|
|
@@ -62,6 +62,7 @@ public class NoticesActivity extends BaseActivity {
|
|
|
public void initView() {
|
|
|
TAG = "NoticesActivity";
|
|
|
ct = this;
|
|
|
+
|
|
|
getSupportActionBar().setTitle("通知");
|
|
|
mEmptyLayout = new EmptyLayout(this, mlist.getRefreshableView());
|
|
|
mEmptyLayout.setShowEmptyButton(false);
|
|
|
@@ -119,7 +120,9 @@ public class NoticesActivity extends BaseActivity {
|
|
|
|
|
|
|
|
|
public void initData() {
|
|
|
- String url = Constants.getAppBaseUrl(ct) + "common/desktop/note/notice.action";
|
|
|
+ mlist.setVisibility(View.GONE);
|
|
|
+ progress_bar.setVisibility(View.VISIBLE);
|
|
|
+ String url =null;
|
|
|
final Map<String, Object> param = new HashMap<>();
|
|
|
param.put("count", "1000");
|
|
|
param.put("sessionId", CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
@@ -164,12 +167,15 @@ public class NoticesActivity extends BaseActivity {
|
|
|
// newsEntity.setData(fiterdata);
|
|
|
adapter = new CardItemAdapter(ct, newsEntity);
|
|
|
mlist.getRefreshableView().setAdapter(adapter);
|
|
|
+ mlist.setVisibility(View.VISIBLE);
|
|
|
progress_bar.setVisibility(View.GONE);
|
|
|
|
|
|
- TextView text;
|
|
|
} else {
|
|
|
adapter.notifyDataSetChanged();
|
|
|
}
|
|
|
+ if(adapter.getCount()==0){
|
|
|
+ mEmptyLayout.showEmpty();
|
|
|
+ }
|
|
|
Log.i(TAG, result);
|
|
|
break;
|
|
|
case Constants.APP_SOCKETIMEOUTEXCEPTION:
|