| | |
| | | import java.util.List;
|
| | |
|
| | | public class DeviceFragment extends LeftRightBaseFragment {
|
| | | private View mViewLeft,mViewRight;
|
| | | private RelativeLayout mLayoutWifi,mLayoutLandline,mLayoutSchool,mLayoutCamera1,mLayoutCamera2;
|
| | | private TextView mTvWifi,mTvLandline,mTvSchool,mTvCamera1,mTvCamera2;
|
| | | private CheckBox mCheckWifi,mCheckLandline,mCheckSchool,mCheckCamera1,mCheckCamera2;
|
| | | private List<CheckBox> listCheck = new ArrayList<>();
|
| | | public static DeviceFragment newInstance() {
|
| | | return new DeviceFragment();
|
| | |
|
| | | private static DeviceFragment instance = new DeviceFragment();
|
| | | public static DeviceFragment getInstance() {
|
| | | return instance;
|
| | | }
|
| | |
|
| | | public View addLeftLayout() {
|
| | | mViewLeft = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_left,null);
|
| | | ViewUtils.inject(this, mViewLeft);
|
| | | return mViewLeft;
|
| | | public int[] getLeftRightLayoutIds() {
|
| | | return new int[]{R.layout.fragment_device_left, R.layout.fragment_device_right};
|
| | | }
|
| | |
|
| | | public View addRightLayout() {
|
| | | mViewRight = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_right,null);
|
| | | return mViewRight;
|
| | | }
|
| | |
|
| | |
|
| | | @OnClick(R.id.fragment_device_back)
|
| | | public void back(View view){
|