diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8dc5dfd..1078071 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,9 +9,7 @@ android:roundIcon="@mipmap/app_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.DevControl"> - + - + + + - + + + - + + + @@ -43,6 +47,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/cc/niushuai/project/devcontrol/ui/custom/DeviceCustomActivity.java b/app/src/main/java/cc/niushuai/project/devcontrol/ui/custom/DeviceCustomActivity.java new file mode 100644 index 0000000..c564de8 --- /dev/null +++ b/app/src/main/java/cc/niushuai/project/devcontrol/ui/custom/DeviceCustomActivity.java @@ -0,0 +1,50 @@ +package cc.niushuai.project.devcontrol.ui.custom; + +import android.os.Bundle; + +import cc.niushuai.project.devcontrol.base.ui.BaseActivity; +import cc.niushuai.project.devcontrol.databinding.ActivityDeviceCustomBinding; + +public class DeviceCustomActivity extends BaseActivity { + + private ActivityDeviceCustomBinding binding; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + binding = ActivityDeviceCustomBinding.inflate(getLayoutInflater()); + setContentView(binding.getRoot()); + + this.init(); + this.addListener(); + } + + /** + * 初始化方法 + * + * @author niushuai + * @date: 2022/10/19 15:54 + */ + @Override + protected void init() { + + } + + /** + * 监听器事件统一设置入口 + * + * @author niushuai + * @date: 2022/10/19 17:31 + */ + @Override + protected void addListener() { + super.addListener(); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + binding = null; + } +} \ No newline at end of file diff --git a/app/src/main/java/cc/niushuai/project/devcontrol/ui/deviceadd/DeviceAddCustomActivity.java b/app/src/main/java/cc/niushuai/project/devcontrol/ui/deviceadd/DeviceAddCustomActivity.java new file mode 100644 index 0000000..19eb822 --- /dev/null +++ b/app/src/main/java/cc/niushuai/project/devcontrol/ui/deviceadd/DeviceAddCustomActivity.java @@ -0,0 +1,50 @@ +package cc.niushuai.project.devcontrol.ui.deviceadd; + +import android.os.Bundle; + +import cc.niushuai.project.devcontrol.base.ui.BaseActivity; +import cc.niushuai.project.devcontrol.databinding.ActivityDeviceAddCustomBinding; + +public class DeviceAddCustomActivity extends BaseActivity { + + private ActivityDeviceAddCustomBinding binding; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + binding = ActivityDeviceAddCustomBinding.inflate(getLayoutInflater()); + setContentView(binding.getRoot()); + + this.init(); + this.addListener(); + } + + /** + * 初始化方法 + * + * @author niushuai + * @date: 2022/10/19 15:54 + */ + @Override + protected void init() { + + } + + /** + * 监听器事件统一设置入口 + * + * @author niushuai + * @date: 2022/10/19 17:31 + */ + @Override + protected void addListener() { + super.addListener(); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + binding = null; + } +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_device_add_custom.xml b/app/src/main/res/layout/activity_device_add_custom.xml new file mode 100644 index 0000000..23edf41 --- /dev/null +++ b/app/src/main/res/layout/activity_device_add_custom.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_device_add_power_switch.xml b/app/src/main/res/layout/activity_device_add_power_switch.xml index a7b70cd..b4676df 100644 --- a/app/src/main/res/layout/activity_device_add_power_switch.xml +++ b/app/src/main/res/layout/activity_device_add_power_switch.xml @@ -1,9 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_device_custom.xml b/app/src/main/res/layout/activity_device_custom.xml new file mode 100644 index 0000000..75b2b2f --- /dev/null +++ b/app/src/main/res/layout/activity_device_custom.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file