desc:activitys

main
xiaowusky 2 years ago
parent ee664206d7
commit 053d76a56e

@ -29,7 +29,7 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity <activity
android:name=".watcher.HomeActivity" android:name=".watcher.ui.HomeActivity"
android:exported="true" android:exported="true"
android:screenOrientation="landscape"> android:screenOrientation="landscape">
<intent-filter> <intent-filter>
@ -39,17 +39,43 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name=".watcher.SettingActivity" android:name=".watcher.ui.SettingActivity"
android:exported="false" android:exported="false"
android:screenOrientation="landscape"/> android:screenOrientation="landscape"/>
<activity <activity
android:name=".watcher.CloudActivity" android:name=".watcher.ui.CloudActivity"
android:exported="false" android:exported="false"
android:screenOrientation="landscape"/> android:screenOrientation="landscape"/>
<activity <activity
android:name=".watcher.WarnDataActivity" android:name=".watcher.ui.WarnDataActivity"
android:exported="false" android:exported="false"
android:screenOrientation="landscape"/> android:screenOrientation="landscape"/>
<activity
android:name=".watcher.ui.SensorActivity"
android:exported="false"
android:screenOrientation="landscape"/>
<activity
android:name=".watcher.ui.SensorDataActivity"
android:exported="false"
android:screenOrientation="landscape"/>
<activity
android:name=".watcher.ui.SensorSettingActivity"
android:exported="false"
android:screenOrientation="landscape"/>
<activity
android:name=".watcher.ui.QueryDataActivity"
android:exported="false"
android:screenOrientation="landscape"/>
<activity
android:name=".watcher.ui.TimeSettingActivity"
android:exported="false"
android:screenOrientation="landscape"/>
<activity
android:name=".watcher.ui.LightSettingActivity"
android:exported="false"
android:screenOrientation="landscape"/>
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:exported="false" android:exported="false"

@ -1,4 +1,4 @@
package com.yinuo.safetywatcher.watcher package com.yinuo.safetywatcher.watcher.ui
import android.view.View import android.view.View
import com.yinuo.safetywatcher.R import com.yinuo.safetywatcher.R

@ -1,4 +1,4 @@
package com.yinuo.safetywatcher.watcher package com.yinuo.safetywatcher.watcher.ui
import android.content.Intent import android.content.Intent
import android.os.Build import android.os.Build

@ -0,0 +1,25 @@
package com.yinuo.safetywatcher.watcher.ui
import android.view.View
import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivityLightSettingBinding
import com.yinuo.safetywatcher.databinding.ActivitySensorBinding
import com.yinuo.safetywatcher.watcher.base.NoOptionsActivity
class LightSettingActivity : NoOptionsActivity() {
private val mBingding by lazy {
ActivityLightSettingBinding.inflate(layoutInflater)
}
override fun getTopBarTitle(): String? {
return getString(R.string.light_setting)
}
override fun generateContentView(): View {
return mBingding.root
}
override fun initView() {
}
}

@ -0,0 +1,40 @@
package com.yinuo.safetywatcher.watcher.ui
import android.view.View
import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivityQueryDataBinding
import com.yinuo.safetywatcher.watcher.base.BaseActivity
import com.yinuo.safetywatcher.watcher.view.CommonTopBar
class QueryDataActivity : BaseActivity() {
private val mBinding by lazy {
ActivityQueryDataBinding.inflate(layoutInflater)
}
override fun onOptionClick(type: Int, target: View) {
if (0 == type) {
} else if (1 == type) {
}
}
override fun getOptions(): List<CommonTopBar.Option>? {
val ops = mutableListOf<CommonTopBar.Option>()
ops.add(CommonTopBar.Option(0, getString(R.string.search)))
ops.add(CommonTopBar.Option(1, getString(R.string.export)))
return ops
}
override fun getTopBarTitle(): String? {
return getString(R.string.query)
}
override fun generateContentView(): View {
return mBinding.root
}
override fun initView() {
}
}

@ -0,0 +1,24 @@
package com.yinuo.safetywatcher.watcher.ui
import android.view.View
import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivitySensorBinding
import com.yinuo.safetywatcher.watcher.base.NoOptionsActivity
class SensorActivity : NoOptionsActivity() {
private val mBingding by lazy {
ActivitySensorBinding.inflate(layoutInflater)
}
override fun getTopBarTitle(): String? {
return getString(R.string.sensor)
}
override fun generateContentView(): View {
return mBingding.root
}
override fun initView() {
}
}

@ -0,0 +1,23 @@
package com.yinuo.safetywatcher.watcher.ui
import android.view.View
import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivitySensorDataBinding
import com.yinuo.safetywatcher.watcher.base.NoOptionsActivity
class SensorDataActivity : NoOptionsActivity() {
private val mBingding by lazy {
ActivitySensorDataBinding.inflate(layoutInflater)
}
override fun getTopBarTitle(): String? {
return getString(R.string.sensor_data)
}
override fun generateContentView(): View {
return mBingding.root
}
override fun initView() {
}
}

@ -0,0 +1,23 @@
package com.yinuo.safetywatcher.watcher.ui
import android.view.View
import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivitySensorSettingBinding
import com.yinuo.safetywatcher.watcher.base.NoOptionsActivity
class SensorSettingActivity : NoOptionsActivity() {
private val mBingding by lazy {
ActivitySensorSettingBinding.inflate(layoutInflater)
}
override fun getTopBarTitle(): String? {
return getString(R.string.sensor_setting)
}
override fun generateContentView(): View {
return mBingding.root
}
override fun initView() {
}
}

@ -1,4 +1,4 @@
package com.yinuo.safetywatcher.watcher package com.yinuo.safetywatcher.watcher.ui
import android.content.Intent import android.content.Intent
import android.view.View import android.view.View
@ -22,18 +22,30 @@ class SettingActivity : NoOptionsActivity() {
override fun initView() { override fun initView() {
mBinding.apply { mBinding.apply {
itemTime.setOnClickListener { } itemTime.setOnClickListener {
itemLight.setOnClickListener { } startActivity(Intent(this@SettingActivity, TimeSettingActivity::class.java))
itemQuery.setOnClickListener { } }
itemLight.setOnClickListener {
startActivity(Intent(this@SettingActivity, LightSettingActivity::class.java))
}
itemQuery.setOnClickListener {
startActivity(Intent(this@SettingActivity, QueryDataActivity::class.java))
}
itemWraning.setOnClickListener { itemWraning.setOnClickListener {
startActivity(Intent(this@SettingActivity, WarnDataActivity::class.java)) startActivity(Intent(this@SettingActivity, WarnDataActivity::class.java))
} }
itemSensor.setOnClickListener { } itemSensor.setOnClickListener {
startActivity(Intent(this@SettingActivity, SensorActivity::class.java))
}
itemCloud.setOnClickListener { itemCloud.setOnClickListener {
startActivity(Intent(this@SettingActivity, CloudActivity::class.java)) startActivity(Intent(this@SettingActivity, CloudActivity::class.java))
} }
itemNet.setOnClickListener { } itemNet.setOnClickListener {
itemRecovery.setOnClickListener { }
}
itemRecovery.setOnClickListener {
}
} }
} }
} }

@ -0,0 +1,25 @@
package com.yinuo.safetywatcher.watcher.ui
import android.view.View
import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivitySensorBinding
import com.yinuo.safetywatcher.databinding.ActivityTimeSettingBinding
import com.yinuo.safetywatcher.watcher.base.NoOptionsActivity
class TimeSettingActivity : NoOptionsActivity() {
private val mBingding by lazy {
ActivityTimeSettingBinding.inflate(layoutInflater)
}
override fun getTopBarTitle(): String? {
return getString(R.string.time_setting)
}
override fun generateContentView(): View {
return mBingding.root
}
override fun initView() {
}
}

@ -1,6 +1,5 @@
package com.yinuo.safetywatcher.watcher package com.yinuo.safetywatcher.watcher.ui
import android.util.Log
import android.view.View import android.view.View
import com.yinuo.safetywatcher.R import com.yinuo.safetywatcher.R
import com.yinuo.safetywatcher.databinding.ActivityWarndataBinding import com.yinuo.safetywatcher.databinding.ActivityWarndataBinding
@ -14,7 +13,6 @@ class WarnDataActivity : BaseActivity() {
} }
override fun onOptionClick(type: Int, target: View) { override fun onOptionClick(type: Int, target: View) {
Log.i("cyy", "type = $type")
if (0 == type) { if (0 == type) {
} else if (1 == type) { } else if (1 == type) {

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 619 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 838 B

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 694 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 563 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

@ -10,6 +10,8 @@
<string name="query_data">查询数据</string> <string name="query_data">查询数据</string>
<string name="warn_data">报警数据</string> <string name="warn_data">报警数据</string>
<string name="sensor">传感器</string> <string name="sensor">传感器</string>
<string name="sensor_data">传感器数据详情</string>
<string name="sensor_setting">传感器设置</string>
<string name="cloud">云平台</string> <string name="cloud">云平台</string>
<string name="nei_setting">网络参数设置</string> <string name="nei_setting">网络参数设置</string>
<string name="recovery_setting">传感器回复出厂设置</string> <string name="recovery_setting">传感器回复出厂设置</string>

Loading…
Cancel
Save