|
|
@@ -2,6 +2,7 @@ package com.sheep.gamegroup.view.fragment;
|
|
|
|
|
|
import android.annotation.SuppressLint;
|
|
|
import android.app.Activity;
|
|
|
+import android.graphics.Color;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.design.widget.TabLayout;
|
|
|
import android.support.v4.view.ViewPager;
|
|
|
@@ -57,7 +58,7 @@ public class FgtMainAudit extends BaseCompatFragment {
|
|
|
private Activity activity;
|
|
|
|
|
|
public static final String[] tabNames = {"审核中", "任务成功", "任务失败"};
|
|
|
- private ShenheAdapter mAdapter;
|
|
|
+ private GiftpackListAdapter mAdapter;
|
|
|
|
|
|
@Override
|
|
|
protected void initView(Bundle savedInstanceState) {
|
|
|
@@ -70,7 +71,7 @@ public class FgtMainAudit extends BaseCompatFragment {
|
|
|
.setTitle(mContentView, "审核中心")
|
|
|
.setTitleListen(mContentView, 0, null);
|
|
|
|
|
|
- mAdapter = new ShenheAdapter(getChildFragmentManager(), activity.getApplicationContext());
|
|
|
+ mAdapter = new GiftpackListAdapter(getChildFragmentManager(), activity.getApplicationContext());
|
|
|
mAdapter.add(FgtAudit.newInstance(1), tabNames[0]);
|
|
|
mAdapter.add(FgtAudit.newInstance(2), tabNames[1]);
|
|
|
mAdapter.add(FgtAudit.newInstance(3), tabNames[2]);
|
|
|
@@ -133,6 +134,16 @@ public class FgtMainAudit extends BaseCompatFragment {
|
|
|
@Override
|
|
|
public void onPageSelected(int i) {
|
|
|
// MY_MONEY_TAB.onEvent("tab_name", tabNames[2]);
|
|
|
+// for(int d=0;d<indicator.getTabCount();d++){
|
|
|
+// TabLayout.Tab tab=indicator.getTabAt(i);
|
|
|
+// if(i == d){
|
|
|
+//
|
|
|
+// ((TextView) tab.getCustomView().findViewById(R.id.tv_text)).setTextColor(Color.parseColor("#34a6e7"));
|
|
|
+// }else {
|
|
|
+//
|
|
|
+// ((TextView) tab.getCustomView().findViewById(R.id.tv_text)).setTextColor(Color.parseColor("#333333"));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -144,13 +155,13 @@ public class FgtMainAudit extends BaseCompatFragment {
|
|
|
|
|
|
indicator.setupWithViewPager(pager);
|
|
|
CommonUtil.getInstance().reflex(indicator, activity);
|
|
|
- for (int i = 0; i < indicator.getTabCount(); i++) {
|
|
|
- indicator.getTabAt(i).setCustomView(mAdapter.getTabView(i));
|
|
|
- }
|
|
|
+// for (int i = 0; i < indicator.getTabCount(); i++) {
|
|
|
+// indicator.getTabAt(i).setCustomView(mAdapter.getTabView(i));
|
|
|
+// }
|
|
|
|
|
|
- TabLayout.Tab tab=indicator.getTabAt(2);
|
|
|
+ /* TabLayout.Tab tab=indicator.getTabAt(2);
|
|
|
|
|
|
- tab.getCustomView().findViewById(R.id.iv_img).setVisibility(View.VISIBLE);
|
|
|
+ tab.getCustomView().findViewById(R.id.iv_img).setVisibility(View.VISIBLE);*/
|
|
|
|
|
|
}
|
|
|
|