Java Code Examples for android.support.v7.widget.LinearLayoutManager#setSmoothScrollbarEnabled()
The following examples show how to use
android.support.v7.widget.LinearLayoutManager#setSmoothScrollbarEnabled() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BasePopupWindow.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 6 votes |
public boolean setNewsCoinData(final Context context, List<CoinBean.DataBean> mCoinBeen, final String coinid, final ImageView lookMore, final boolean isSHow) { mRecyclerView = getContentView().findViewById(R.id.exchange_two_type); LinearLayoutManager layoutManager = new LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecyclerView.setLayoutManager(layoutManager); CommonAdapter commonAdapter = AdapterManger.getNewsCoinTypeAdapter(context, mCoinBeen, coinid); mRecyclerView.setAdapter(commonAdapter); baseIsShow = isSHow; getContentView().findViewById(R.id.dismiss).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { dismiss(); baseIsShow = !isSHow; RotateUtils.rotateArrow(lookMore, baseIsShow); } }); return baseIsShow; }
Example 2
Source File: NodeVoteActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected void initViews(Bundle savedInstanceState) { setCenterTitle(getString(R.string.node_vote)); LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mVoteDetailsRecycleview.setLayoutManager(layoutManager); mVoteDetailsRecycleview.addItemDecoration(new RecycleViewDivider(this, LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.white_line))); mVoteDetailsRecycleview.setPullRefreshEnabled(false); mVoteDetailsRecycleview.setLoadingMoreEnabled(false); LayoutInflater mInflater = LayoutInflater.from(this); View contentView = mInflater.inflate(R.layout.nodevote_header, null); mAccount = (TextView) contentView.findViewById(R.id.account); mVoteAccount = (TextView) contentView.findViewById(R.id.vote_amount); mAmount = (TextView) contentView.findViewById(R.id.amount); mVoteDetailsRecycleview.addHeaderView(contentView); }
Example 3
Source File: SwitchFriendActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected void initData() { presenter.getData();//获取关注好友账号列表 LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycle.setLayoutManager(layoutManager); mRecycle.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); if (Utils.getSpUtils().getString("loginmode","").equals("phone")) { mRecycle.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); }else { mRecycle.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.blackbox_line))); } mCommonAdapter = new EmptyWrapper(AdapterManger.getFriendListAdapter(this, mDataBeanList, getIntent().getStringExtra("account"))); mCommonAdapter.setEmptyView(R.layout.empty_project); mRecycle.setAdapter(mCommonAdapter); }
Example 4
Source File: MainActivity.java From AndroidOperationQueue with MIT License | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); RecyclerView recyclerView = (RecyclerView)findViewById(R.id.recyclerView); LinearLayoutManager layoutManager = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); recyclerView.setLayoutManager(layoutManager); List<CardItem> items = new ArrayList<>(); for(String url : urls) { items.add(new CardItem(url)); } recyclerView.setAdapter(new RecyclerAdapter(items)); }
Example 5
Source File: ExistBlackBoxLoginActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void initData() { mUserBeanList = MyApplication.getDaoInstant().getUserBeanDao().loadAll(); LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mWallet.setLayoutManager(layoutManager); if (Utils.getSpUtils().getString("loginmode", "").equals("phone")) { mWallet.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); } else { mWallet.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.blackbox_line))); } mCommonAdapter = AdapterManger.getWalletListAdapter(this, mUserBeanList); mWallet.setAdapter(mCommonAdapter); }
Example 6
Source File: TwoFragment.java From CollapsingRefresh with Apache License 2.0 | 5 votes |
protected void setAdapter() { mAdapter = new MyAdapter(getContext()); LinearLayoutManager layout = new LinearLayoutManager(getContext()); layout.setSmoothScrollbarEnabled(true); layout.setAutoMeasureEnabled(true); recyclerView.setItemAnimator(new DefaultItemAnimator()); recyclerView.setLayoutManager(layout); recyclerView.setAdapter(mAdapter); initData(); }
Example 7
Source File: SuggestionFeedbackActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void initViews(Bundle savedInstanceState) { setCenterTitle(getString(R.string.suggestion_feedback)); setRightTitle(getString(R.string.question_commit), true); LinearLayoutManager layoutManager = new LinearLayoutManager(SuggestionFeedbackActivity.this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycleSuggertionHistory.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); mRecycleSuggertionHistory.setLayoutManager(layoutManager); mRecycleSuggertionHistory.setRefreshProgressStyle(ProgressStyle.LineSpinFadeLoader); mRecycleSuggertionHistory.setLoadingMoreProgressStyle(ProgressStyle.CubeTransition); mRecycleSuggertionHistory.setLoadingMoreEnabled(true); mRecycleSuggertionHistory.setPullRefreshEnabled(true); mRecycleSuggertionHistory.setArrowImageView(R.drawable.arrow); mRecycleSuggertionHistory.setLoadingListener(new XRecyclerView.LoadingListener() { @Override public void onRefresh() { mDataBeans.clear(); offset = 0; presenter.getSuggestionList(offset); } @Override public void onLoadMore() { presenter.getSuggestionList(offset + mDataBeans.size()); } }); }
Example 8
Source File: SwitchUserNumberActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void initData() { if (getIntent().getStringExtra("from").equals("home")) { mAccountInfoBeanList = JsonUtil.parseJsonToArrayList(MyApplication.getInstance().getUserBean().getAccount_info(), AccountInfoBean.class); } else { mAccountInfoBeanList = getIntent().getParcelableArrayListExtra("allaccount"); } LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycleUserNumber.setLayoutManager(layoutManager); mRecycleUserNumber.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); mAccountAdapter = new EmptyWrapper(AdapterManger.getSwitchUserNumberAdapter(this,mAccountInfoBeanList,getIntent().getStringExtra("account"))); mAccountAdapter.setEmptyView(R.layout.empty_project); mRecycleUserNumber.setAdapter(mAccountAdapter); }
Example 9
Source File: MainActivity.java From kernel_adiutor with Apache License 2.0 | 5 votes |
/** * Define all views */ private void setView() { mScrimInsetsFrameLayout = (ScrimInsetsFrameLayout) findViewById(R.id.scrimInsetsFrameLayout); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); if (mDrawerLayout != null) { mDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.statusbar_color)); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); } mDrawerList = (RecyclerView) findViewById(R.id.drawer_list); mSplashView = (SplashView) findViewById(R.id.splash_view); LinearLayoutManager mLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); mLayoutManager.setSmoothScrollbarEnabled(true); mDrawerList.setLayoutManager(mLayoutManager); mDrawerList.setHasFixedSize(true); mDrawerList.setAdapter(new RecyclerView.Adapter() { @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { return null; } @Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { } @Override public int getItemCount() { return 0; } }); }
Example 10
Source File: RecyclerViewUtil.java From diycode with Apache License 2.0 | 5 votes |
public static <T extends SingleTypeAdapter> void init(Context context, RecyclerView recyclerView, T adapter) { LinearLayoutManager layoutManager = new LinearLayoutManager(context); layoutManager.setSmoothScrollbarEnabled(true); layoutManager.setAutoMeasureEnabled(true); recyclerView.setAdapter(adapter); recyclerView.setLayoutManager(layoutManager); recyclerView.setHasFixedSize(true); recyclerView.setNestedScrollingEnabled(false); }
Example 11
Source File: FriendsDetailsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void initData() { LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycleIcon.setLayoutManager(layoutManager); mCoinAdapter = AdapterManger.getCoinAdapter(this, mAccountWithCoinBeen); mRecycleIcon.setAdapter(mCoinAdapter); }
Example 12
Source File: MainActivity.java From AndroidOperationQueue with MIT License | 5 votes |
private void run() { RecyclerView recyclerView = (RecyclerView)findViewById(R.id.recyclerView); LinearLayoutManager layoutManager = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); recyclerView.setLayoutManager(layoutManager); List<CardItem> items = new ArrayList<>(); for(String url : urls) { items.add(new CardItem(url)); } recyclerView.setAdapter(new RecyclerAdapter(items)); }
Example 13
Source File: PelistActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void initViews(Bundle savedInstanceState) { if (getIntent().getStringExtra("type").equals("0")) { setCenterTitle(getResources().getString(R.string.pe_list)); } else { setCenterTitle(getResources().getString(R.string.company_list)); } LinearLayoutManager layoutManager = new LinearLayoutManager(PelistActivity.this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycle.setLayoutManager(layoutManager); mRecycle.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); mRecycle.setRefreshProgressStyle(ProgressStyle.LineSpinFadeLoader); mRecycle.setLoadingMoreProgressStyle(ProgressStyle.CubeTransition); mRecycle.setLoadingMoreEnabled(true); mRecycle.setPullRefreshEnabled(true); mRecycle.setArrowImageView(R.drawable.arrow); mRecycle.setLoadingListener(new XRecyclerView.LoadingListener() { @Override public void onRefresh() { mDataBeanList.clear(); offset = 0; presenter.getData(getIntent().getStringExtra("type"), offset); } @Override public void onLoadMore() { presenter.getData(getIntent().getStringExtra("type"), offset + mDataBeanList.size()); } }); }
Example 14
Source File: MainActivity.java From KA27 with Apache License 2.0 | 5 votes |
/** * Define all views */ private void setView() { mScrimInsetsFrameLayout = (ScrimInsetsFrameLayout) findViewById(R.id.scrimInsetsFrameLayout); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); if (mDrawerLayout != null) { mDrawerLayout.setStatusBarBackgroundColor(ContextCompat.getColor(MainActivity.this, R.color.statusbar_color)); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); } mDrawerList = (RecyclerView) findViewById(R.id.drawer_list); mSplashView = (SplashView) findViewById(R.id.splash_view); LinearLayoutManager mLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); mLayoutManager.setSmoothScrollbarEnabled(true); mDrawerList.setLayoutManager(mLayoutManager); mDrawerList.setHasFixedSize(true); mDrawerList.setAdapter(new RecyclerView.Adapter() { @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { return null; } @Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {} @Override public int getItemCount() { return 0; } }); }
Example 15
Source File: SettingFragment.java From Flora with MIT License | 5 votes |
private void initView() { LinearLayoutManager manager = new LinearLayoutManager(this.getContext()); manager.setSmoothScrollbarEnabled(true); recyclerView.addItemDecoration(new RecyclerView.ItemDecoration() { @Override public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) { final int padding = getResources().getDimensionPixelOffset(R.dimen.padding_half); RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams(); final int position = layoutParams.getViewLayoutPosition(); if (position == 0) { outRect.left = outRect.top = outRect.right = padding; outRect.bottom = padding >> 1; } else if (position == state.getItemCount() - 1) { outRect.left = outRect.bottom = outRect.right = padding; outRect.top = padding >> 1; } else { outRect.left = outRect.right = padding; outRect.top = outRect.bottom = padding >> 1; } } }); recyclerView.setLayoutManager(manager); GroupAdapter adapter = new GroupAdapter(handler); recyclerView.setAdapter(adapter); adapter.addViewHolderType( ViewHolder.HOLDER_HEADER, ViewHolder.HOLDER_THEME_SWITCHER, ViewHolder.HOLDER_HEADER, ViewHolder.HOLDER_LIST ); }
Example 16
Source File: OneFragment.java From CollapsingRefresh with Apache License 2.0 | 5 votes |
protected void setAdapter() { mAdapter = new MyAdapter(getContext()); LinearLayoutManager layout = new LinearLayoutManager(getContext()); layout.setSmoothScrollbarEnabled(true); layout.setAutoMeasureEnabled(true); recyclerView.setItemAnimator(new DefaultItemAnimator()); recyclerView.setLayoutManager(layout); recyclerView.setAdapter(mAdapter); initData(); }
Example 17
Source File: TransferAccountsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void initViews(Bundle savedInstanceState) { AndroidBug5497Workaround.assistActivity(activity); mSwitchNumber.setText(getIntent().getStringExtra("account")); mSwitchProperty.setText(getIntent().getStringExtra("coin")); if (getIntent().getStringExtra("from").equals("qrcode")) { QrCodeMakeCollectionBean qrCodeMakeCollectionBean = getIntent().getParcelableExtra("info"); mPropertyPerson.setText(qrCodeMakeCollectionBean.getAccount_name()); mPropertyPerson.setSelection(mPropertyPerson.getText().length()); mTakePropertyNumber.setText(qrCodeMakeCollectionBean.getMoney()); mSwitchProperty.setText(qrCodeMakeCollectionBean.getCoin()); mGoTransferAccounts.setBackgroundColor(getResources().getColor(R.color.theme_color)); } else if (getIntent().getStringExtra("from").equals("frienddetails")) { mPropertyPerson.setText(getIntent().getStringExtra("getmoneyperson")); mPropertyPerson.setSelection(mPropertyPerson.getText().length()); } setCenterTitle(getString(R.string.title_transfer_accounts)); if (Utils.getSpUtils().getString("loginmode", "").equals("phone")) { setRightImg(true); } else { setRightImg(false); } mImgRight.setImageDrawable(getResources().getDrawable(R.mipmap.scan)); LinearLayoutManager layoutManager = new LinearLayoutManager(TransferAccountsActivity.this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycleTransferaccountsHistory.setLayoutManager(layoutManager); if (Utils.getSpUtils().getString("loginmode", "").equals("phone")) { mRecycleTransferaccountsHistory.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); } else { mRecycleTransferaccountsHistory.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.blackbox_line))); } //系统刷新 mSpring.setFooter(new AliFooter(getContext())); mSpring.setGive(SpringView.Give.BOTTOM); mSpring.setType(SpringView.Type.FOLLOW); mSpring.setListener(new SpringView.OnFreshListener() { @Override public void onRefresh() { mSpring.onFinishFreshAndLoad(); } @Override public void onLoadmore() { mPostChainHistoryBean.setPage(page); presenter.getTransferHistoryData(mPostChainHistoryBean); } }); }
Example 18
Source File: CoinDetailsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void initViews(Bundle savedInstanceState) { LinearLayoutManager layoutManager = new LinearLayoutManager(CoinDetailsActivity.this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycleCoinHistory.setLayoutManager(layoutManager); mRecycleCoinHistory.addItemDecoration(new RecycleViewDivider(getContext(), LinearLayoutManager.HORIZONTAL, 1, getResources().getColor(R.color.line))); accountWithCoinBean = getIntent().getParcelableExtra("coin"); if (accountWithCoinBean.getCoinName().equals("EOS")) { cointype = "eos"; } else { cointype = "oct"; } setCenterTitle(accountWithCoinBean.getCoinName()); if (Utils.getSpUtils().getString("loginmode", "").equals("phone")) { setRightImg(true); } else { setRightImg(false); } mImgRight.setImageDrawable(getResources().getDrawable(R.mipmap.makecollectionshare)); mIconTotalNumber.setText(StringUtils.addComma(accountWithCoinBean.getCoinForCny()) + " CNY"); mCoinUoanddown.setText(accountWithCoinBean.getCoinUpsAndDowns() + getString(R.string.today)); mCoinUserNumber.setText(getIntent().getStringExtra("account")); mIconNumber.setText(StringUtils.addComma(accountWithCoinBean.getCoinNumber()) + " " + accountWithCoinBean.getCoinName()); mIconRmbNumber.setText("≈" + StringUtils.addComma(accountWithCoinBean.getCoinForCny()) + " CNY"); if (accountWithCoinBean.getCoinName().equals("EOS")) { mCoinMaketCap.setText(getString(R.string.rated_24) + accountWithCoinBean.getEos_market_cap_cny() + "CNY"); } else { mCoinMaketCap.setText(getString(R.string.rated_24) + accountWithCoinBean.getOct_market_cap_cny() + "CNY"); } //系统刷新 mSpring.setFooter(new AliFooter(this)); mSpring.setGive(SpringView.Give.BOTTOM); mSpring.setType(SpringView.Type.FOLLOW); mSpring.setListener(new SpringView.OnFreshListener() { @Override public void onRefresh() { mSpring.onFinishFreshAndLoad(); } @Override public void onLoadmore() { mPostChainHistoryBean.setPage(page); presenter.getTransferHistoryData(mPostChainHistoryBean); } }); }
Example 19
Source File: ContactsFragment.java From talk-android with MIT License | 4 votes |
@Override public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); ButterKnife.inject(this, view); mPresenter = new MemberPresenter(this); adapter.setListener(this); mRecyclerView.setAdapter(adapter); LinearLayoutManager manager = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false); manager.setSmoothScrollbarEnabled(true); mRecyclerView.setLayoutManager(manager); mRecyclerView.addOnScrollListener(mListener); /*mRecyclerView.addItemDecoration(new HorizontalDividerItemDecoration.Builder(getActivity()) .marginResId(R.dimen.contacts_text_left_margin, R.dimen.zero_dp) .visibilityProvider(new FlexibleDividerDecoration.VisibilityProvider() { @Override public boolean shouldHideDivider(int position, RecyclerView parent) { if (position == 0 || position == 1) { return false; } else if (position == adapter.getItemCount() - 1) { return true; } else if (!adapter.getLeaveMembers().isEmpty() && position == adapter.getItemCount() - 2) { return true; } else { Member before = adapter.getItems().get(position - 1); Member after = adapter.getItems().get(position); if (before.getAliasPinyin() == null && after.getAliasPinyin() == null) { return true; } else if (before.getAliasPinyin() == null && after.getAliasPinyin() != null) { return false; } else { return adapter.getItems().get(position - 1).getAliasPinyin() .equals(adapter.getItems().get(position).getAliasPinyin()); } } } }) .build());*/ mPresenter.getMembers(); mPresenter.getLeaveMembers(); BusProvider.getInstance().register(this); }
Example 20
Source File: BlackBoxCoinDetailsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void initViews(Bundle savedInstanceState) { LinearLayoutManager layoutManager = new LinearLayoutManager(BlackBoxCoinDetailsActivity.this, LinearLayoutManager.VERTICAL, false); layoutManager.setSmoothScrollbarEnabled(true); mRecycleCoinHistory.setLayoutManager(layoutManager); accountWithCoinBean = getIntent().getParcelableExtra("coin"); if (accountWithCoinBean.getCoinName().equals("EOS")) { cointype = "eos"; } else { cointype = "oct"; } setCenterTitle(accountWithCoinBean.getCoinName()); setRightImg(true); mIconTotalNumber.setText(StringUtils.addComma(accountWithCoinBean.getCoinForCny()) + " CNY"); if (accountWithCoinBean.getCoinUpsAndDowns().contains("+")) { mCoinUoanddown.setTextColor(getResources().getColor(R.color.up_color)); } else { mCoinUoanddown.setTextColor(getResources().getColor(R.color.down_color)); } mCoinUoanddown.setText(accountWithCoinBean.getCoinUpsAndDowns() + getString(R.string.today)); if (accountWithCoinBean.getCoinName().equals("EOS")) { mCoinMaketCap.setText(getString(R.string.rated_24) + accountWithCoinBean.getEos_market_cap_cny() + "CNY"); } else { mCoinMaketCap.setText(getString(R.string.rated_24) + accountWithCoinBean.getOct_market_cap_cny() + "CNY"); } //系统刷新 mSpring.setFooter(new AliFooter(this)); mSpring.setGive(SpringView.Give.BOTTOM); mSpring.setType(SpringView.Type.FOLLOW); mSpring.setListener(new SpringView.OnFreshListener() { @Override public void onRefresh() { mSpring.onFinishFreshAndLoad(); } @Override public void onLoadmore() { mPostChainHistoryBean.setPage(page); presenter.getTransferHistoryData(mPostChainHistoryBean); } }); }