Example #1
0
  private void initVaule() {

    mViewArray.add(viewRight);
    ArrayList<String> mTextArray = new ArrayList<String>();
    mTextArray.add("");
    expandTabView.setValue(mTextArray, mViewArray);
    expandTabView.setTitle(viewRight.getShowText(), 2);
    // expandTabView.setBackground(background);

  }
Example #2
0
  private void onRefresh(View view, String showText, int id) {

    expandTabView.onPressBack();
    int position = getPositon(view);
    if (position >= 0 && !expandTabView.getTitle(position).equals(showText)) {
      // expandTabView.setTitle(showText, position);
      ShopPageItem page = pages.get(id);
      if (!page.isLoadSuccess) {
        page.initData(context);
      }
      curIndex = id;
      common_sort.setVisibility(8); // 移动隐排序
      indicator.setViewPager(pager);
      indicator.setCurrentItem(curIndex);
    }
    // Toast.makeText(context, showText, Toast.LENGTH_SHORT).show();

  }