正在查看: 爱心e站 v1.0.0 应用的 RehabilitationServiceDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 爱心e站 v1.0.0 应用的 RehabilitationServiceDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.newheyd.JZKFcanjiren.Activity;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import com.newheyd.JZKFcanjiren.Adapter.TabAdapter;
import com.newheyd.JZKFcanjiren.BaseFragment;
import com.newheyd.JZKFcanjiren.BaseFragmentActiviy;
import com.newheyd.JZKFcanjiren.Bean.TabItem;
import com.newheyd.JZKFcanjiren.Fragment.RehabilitationEndFragment;
import com.newheyd.JZKFcanjiren.Fragment.RehabilitationSignFragment;
import com.newheyd.JZKFcanjiren.Fragment.RehabilitationTrainOrEffectEvaluationFragment;
import com.newheyd.JZKFcanjiren.R;
import com.newheyd.JZKFcanjiren.Utils.StastisticUtil;
import com.newheyd.JZKFcanjiren.Utils.locationUtil.LocationAddrUtil;
import com.newheyd.JZKFcanjiren.View.TitleView;
import com.newheyd.JZKFcanjiren.model.BaseResult;
import com.newheyd.JZKFcanjiren.net.NewHYTask;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class RehabilitationServiceDetailActivity extends BaseFragmentActiviy {
private TabAdapter adapter;
private String extend3;
private String service;
private TabLayout tab;
private ArrayList<TabItem> tabs = new ArrayList<>();
private TitleView titleView;
private ViewPager viewpager;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_disabled_lifecircle);
super.onCreate(savedInstanceState);
initViewPager();
goStatistics();
}
public void goStatistics() {
HashMap<String, String> map = LocationAddrUtil.getInstance().getLocationParam(this.mContext);
StastisticUtil.getInstance().onEvent(this.mContext, "RehabilitationServiceDetailActivity", map);
}
public void initViewPager() {
TabItem tabBaseInfo = new TabItem("1", "考勤签到", this.service);
this.tabs.add(tabBaseInfo);
TabItem tabRehabilitation = new TabItem("2", "康复训练月计划", this.service);
this.tabs.add(tabRehabilitation);
TabItem tabEducation = new TabItem("3", "康复训练周计划", this.service);
this.tabs.add(tabEducation);
TabItem tabJob = new TabItem("4", "康复效果评估", this.service);
this.tabs.add(tabJob);
TabItem tabEnd = new TabItem("5", "康复服务终止申请", this.service);
tabEnd.setExtend3(this.extend3);
this.tabs.add(tabEnd);
List<BaseFragment> fragments = new ArrayList<>();
BaseFragment rehabilitationSignFragment = RehabilitationSignFragment.newInstance(tabBaseInfo);
BaseFragment fragmentMonthTrain = RehabilitationTrainOrEffectEvaluationFragment.newInstance(tabRehabilitation);
BaseFragment fragmentWeekTrain = RehabilitationTrainOrEffectEvaluationFragment.newInstance(tabEducation);
BaseFragment fragmentEffect = RehabilitationTrainOrEffectEvaluationFragment.newInstance(tabJob);
BaseFragment fragmentEnd = RehabilitationEndFragment.newInstance(tabEnd);
fragments.add(rehabilitationSignFragment);
fragments.add(fragmentMonthTrain);
fragments.add(fragmentWeekTrain);
fragments.add(fragmentEffect);
fragments.add(fragmentEnd);
this.adapter = new TabAdapter(getSupportFragmentManager(), fragments, this.tabs);
this.viewpager.setAdapter(this.adapter);
this.tab.setupWithViewPager(this.viewpager);
this.tab.setTabMode(0);
}
@Override
public void onResponseBefore(NewHYTask task) {
}
@Override
public void onResponseAfter(NewHYTask task) {
}
@Override
public void onResponseSuccessful(NewHYTask task, BaseResult object) {
}
@Override
public void onResponseError(NewHYTask task, BaseResult object) {
}
@Override
public void onServerError(NewHYTask task, int failedType) {
}
@Override
public void getExtraParam() {
this.service = getIntent().getStringExtra("service");
}
@Override
public void initViews() {
this.titleView = (TitleView) findViewById(R.id.titleview_tools);
this.titleView.setTextName("康复服务详情");
this.tab = (TabLayout) findViewById(R.id.tab);
this.viewpager = (ViewPager) findViewById(R.id.viewpager);
}
@Override
public void setListener() {
this.titleView.setOnTitleClik(new TitleView.BackListenner() {
@Override
public void BackSet() {
RehabilitationServiceDetailActivity.this.finish();
}
}, null);
}
}