|
|
@@ -10,6 +10,7 @@ import com.core.app.MyApplication;
|
|
|
import com.core.base.BaseActivity;
|
|
|
import com.core.utils.CommonUtil;
|
|
|
import com.core.utils.helper.AvatarHelper;
|
|
|
+import com.core.widget.MyListView;
|
|
|
import com.handmark.pulltorefresh.library.PullToRefreshListView;
|
|
|
import com.uas.appme.R;
|
|
|
import com.uas.appme.pedometer.adapter.UURankingAdapter;
|
|
|
@@ -37,13 +38,14 @@ public class UURanking extends BaseActivity {
|
|
|
private View mHideAboveAf;
|
|
|
private LinearLayout mAttentionLl;
|
|
|
private PullToRefreshListView mAttentionPtlv;
|
|
|
- private PullToRefreshListView mAllPtlv;
|
|
|
+ private MyListView mAllPtlv;
|
|
|
private TextView mInviteFriendsTv;
|
|
|
private StepDataDao stepDataDao;
|
|
|
private String curSelDate;
|
|
|
private String myem_name;
|
|
|
private List<StepEntity> stepEntityList;
|
|
|
private UURankingAdapter mRankAdapter;
|
|
|
+ private ImageView mHeaderImg;
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
@@ -55,6 +57,7 @@ public class UURanking extends BaseActivity {
|
|
|
|
|
|
private void initView() {
|
|
|
|
|
|
+ mHeaderImg = (ImageView) findViewById(R.id.header_background_im);
|
|
|
mPhotoImg = (CircleImageView) findViewById(R.id.photo_img);
|
|
|
mNameTv = (TextView) findViewById(R.id.name_tv);
|
|
|
mRankingTv = (TextView) findViewById(R.id.ranking_tv);
|
|
|
@@ -64,14 +67,15 @@ public class UURanking extends BaseActivity {
|
|
|
mHideAboveAf = (View) findViewById(R.id.hide_above_af);
|
|
|
mAttentionLl = (LinearLayout) findViewById(R.id.attention_ll);
|
|
|
mAttentionPtlv = (PullToRefreshListView) findViewById(R.id.attention_ptlv);
|
|
|
- mAllPtlv = (PullToRefreshListView) findViewById(R.id.all_ptlv);
|
|
|
+ mAllPtlv = (MyListView) findViewById(R.id.all_ptlv);
|
|
|
mInviteFriendsTv = (TextView) findViewById(R.id.invite_friends_tv);
|
|
|
stepDataDao = new StepDataDao(this);
|
|
|
curSelDate = TimeUtil.getCurrentDate();
|
|
|
stepEntityList = new ArrayList<>();
|
|
|
mRankAdapter = new UURankingAdapter(this);
|
|
|
- mAllPtlv.getRefreshableView().setAdapter(mRankAdapter);
|
|
|
+ mAllPtlv.setAdapter(mRankAdapter);
|
|
|
|
|
|
+ mHeaderImg.requestFocus();
|
|
|
mAttentionLl.setVisibility(View.GONE);
|
|
|
|
|
|
myem_name = CommonUtil.getSharedPreferences(MyApplication.getInstance(), "erp_emname");
|