feat: 空的页面-待实现

This commit is contained in:
niushuai233 2022-10-21 09:52:19 +08:00
parent ba82a08a6e
commit 92718feac1
6 changed files with 167 additions and 7 deletions

View File

@ -9,9 +9,7 @@
android:roundIcon="@mipmap/app_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.DevControl">
<activity
android:name=".ui.deviceadd.DeviceAddPowerSwitchActivity"
android:exported="false" />
<!-- 主页面 -->
<activity
android:name=".MainActivity"
@ -21,21 +19,27 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity> <!-- 开关操作 -->
</activity>
<!-- 开关操作 -->
<activity
android:name=".ui.powerswitch.PowerSwitchActivity"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity> <!-- 开关设置 -->
</activity>
<!-- 开关设置 -->
<activity
android:name=".ui.powerswitch.PowerSwitchSetActivity"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity> <!-- 开关参数设置 -->
</activity>
<!-- 开关参数设置 -->
<activity
android:name=".ui.powerswitch.PowerSwitchSetParamActivity"
android:exported="false">
@ -43,6 +47,36 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!--自定义设备操作页面-->
<activity
android:name=".ui.custom.DeviceCustomActivity"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!--自定义设备添加页面-->
<activity
android:name=".ui.deviceadd.DeviceAddCustomActivity"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!--开关添加页面-->
<activity
android:name=".ui.deviceadd.DeviceAddPowerSwitchActivity"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.deviceadd.DeviceAddCustomActivity">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,9 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.deviceadd.DeviceAddPowerSwitchActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/activity_common_title" />
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.custom.DeviceCustomActivity">
</androidx.constraintlayout.widget.ConstraintLayout>