|
|
@@ -4,6 +4,7 @@ import android.os.Bundle;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.view.View;
|
|
|
import android.widget.AbsListView;
|
|
|
+import android.widget.LinearLayout;
|
|
|
import android.widget.ListView;
|
|
|
|
|
|
import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
|
|
@@ -19,7 +20,6 @@ import com.tongyu.luck.happywork.ui.mvp.cclient.contacts.JobFavoriteListContacts
|
|
|
import com.tongyu.luck.happywork.ui.mvp.cclient.presenter.JobFavoriteListPresenter;
|
|
|
import com.tongyu.luck.happywork.ui.viewholder.cclient.FooterViewHolder;
|
|
|
|
|
|
-import org.greenrobot.eventbus.EventBus;
|
|
|
import org.greenrobot.eventbus.Subscribe;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -34,6 +34,8 @@ public class JobFavoriteListActivity extends BaseActivity<JobFavoriteListPresent
|
|
|
ListView ivJob;
|
|
|
@BindView(R.id.prl_refresh)
|
|
|
ProgressRefreshLayout prlRefresh;
|
|
|
+ @BindView(R.id.ll_empty)
|
|
|
+ LinearLayout llEmpty;
|
|
|
|
|
|
private FooterViewHolder mFooterHolder;
|
|
|
private JobListAdapter mAdapter;
|
|
|
@@ -64,6 +66,7 @@ public class JobFavoriteListActivity extends BaseActivity<JobFavoriteListPresent
|
|
|
mAdapter.isCreateTime(true);
|
|
|
ivJob.setAdapter(mAdapter);
|
|
|
ivJob.setOnItemClickListener(mAdapter);
|
|
|
+ ivJob.setEmptyView(llEmpty);
|
|
|
ivJob.addFooterView(mFooterHolder.getView());
|
|
|
ivJob.setOnScrollListener(onScrollListener);
|
|
|
} else {
|