| | |
| | | import android.view.View;
|
| | | import android.widget.EditText;
|
| | | import android.widget.FrameLayout;
|
| | | import android.widget.LinearLayout;
|
| | | import android.widget.RadioButton;
|
| | | import android.widget.Toast;
|
| | |
|
| | |
| | | private EditText fragment_device_right_device_info_device_address;
|
| | | @ViewInject(R.id.fragment_device_right_device_info_school_name)
|
| | | private EditText fragment_device_right_device_info_school_name;
|
| | | @ViewInject(R.id.fragment_device_left_parent)
|
| | | private LinearLayout fragment_device_left_parent;
|
| | | @ViewInject(R.id.fragment_device_right_parent)
|
| | | private LinearLayout fragment_device_right_parent;
|
| | |
|
| | |
|
| | | private View wifiView;
|
| | | private View lanView;
|
| | |
| | |
|
| | | private DeviceQueryItem camera1;
|
| | | private DeviceQueryItem camera2;
|
| | | private Device androidDevice;
|
| | |
|
| | | public DeviceQueryItem getCamera2() {
|
| | | return camera2;
|
| | |
| | | ViewUtils.inject(this, camera2View);
|
| | | fragment_device_left_wifi_check_box.setChecked(true);
|
| | | loadSharedPreferenceValues();
|
| | | setupUI(getLeftView());
|
| | | setupUI(getRightView());
|
| | | setupUI(fragment_device_left_parent);
|
| | | setupUI(fragment_device_right_parent);
|
| | | setupUI(wifiView);
|
| | | setupUI(lanView);
|
| | | setupUI(schoolView);
|
| | | setupUI(camera1View);
|
| | | setupUI(camera2View);
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_device_left_parent)
|
| | | public void fragment_device_left_parent_click(View view) {
|
| | | System.out.println("aa");
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_device_right_parent)
|
| | | public void fragment_device_right_parent_click(View view) {
|
| | | System.out.println("aa");
|
| | | }
|
| | |
|
| | | private void loadSharedPreferenceValues() {
|
| | |
| | | }
|
| | |
|
| | | public void setAndroidDevice(Device androidDevice) {
|
| | |
|
| | | this.androidDevice = androidDevice;
|
| | | fragment_device_right_device_info_school_name.setText(androidDevice.getSchoolName());
|
| | | fragment_device_right_device_info_sn.setText(androidDevice.getSn());
|
| | | fragment_device_right_device_info_device_address.setText(androidDevice.getInstallAddress());
|
| | | }
|
| | |
|
| | | public void setCamera1(DeviceQueryItem camera1) {
|