desc:activitys
@ -1,4 +1,4 @@
|
||||
package com.yinuo.safetywatcher.watcher
|
||||
package com.yinuo.safetywatcher.watcher.ui
|
||||
|
||||
import android.view.View
|
||||
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.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() {
|
||||
}
|
||||
}
|
@ -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() {
|
||||
}
|
||||
}
|
@ -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>
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 619 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 838 B After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 596 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 409 B |
Before Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 727 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 656 B |
Before Width: | Height: | Size: 884 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 709 B |
Before Width: | Height: | Size: 765 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |