File was renamed from VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/HomeFragment.java |
| | |
| | | import android.widget.RadioGroup; |
| | | |
| | | import com.bsk.zhangbo.demoforbsk.R; |
| | | import cn.com.basic.face.adapter.HomeAdapter; |
| | | import cn.com.basic.face.adapter.SupervisoryAdapter; |
| | | import cn.com.basic.face.base.BaseFragment; |
| | | import cn.com.basic.face.service.CheckInMng; |
| | | import cn.com.basic.face.util.RtspFaceNative; |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import cn.com.basic.face.discern.query.item.CheckInQueryItem; |
| | | |
| | | |
| | | /** |
| | | * Created by zhangbo on 2017/2/15. |
| | | */ |
| | | |
| | | public class HomeFragment extends BaseFragment { |
| | | public class SupervisoryFragment extends BaseFragment { |
| | | |
| | | private RadioGroup mRadioGroup; |
| | | private RadioButton mRadioButton1, mRadioButton2; |
| | | private View mRadioLine1, mRadioLine2; |
| | | private HomeAdapter mAdapter; |
| | | private SupervisoryAdapter mAdapter; |
| | | private List mList; |
| | | private EasyRecyclerView mRecyclerViewRegister, mRecyclerViewUser; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | private static HomeFragment instance = new HomeFragment(); |
| | | private static SupervisoryFragment instance = new SupervisoryFragment(); |
| | | |
| | | public static HomeFragment getInstance() { |
| | | public static SupervisoryFragment getInstance() { |
| | | return instance; |
| | | } |
| | | |
| | | @Override |
| | | protected int getLayoutId() { |
| | | return R.layout.fragment_home; |
| | | return R.layout.fragment_supervisory; |
| | | } |
| | | |
| | | @Override |
| | |
| | | GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), 2); |
| | | gridLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL); |
| | | mRecyclerViewRegister.setLayoutManager(gridLayoutManager); |
| | | mAdapter = new HomeAdapter(getActivity()); |
| | | mAdapter = new SupervisoryAdapter(getActivity()); |
| | | |
| | | |
| | | mSurfaceView2 = (SurfaceView) view.findViewById(R.id.surfaceview2); |