desc:告警数据界面
parent
ccf804bdf8
commit
841ed264dc
@ -0,0 +1,42 @@
|
||||
package com.yinuo.safetywatcher.watcher
|
||||
|
||||
import android.util.Log
|
||||
import android.view.View
|
||||
import com.yinuo.safetywatcher.R
|
||||
import com.yinuo.safetywatcher.databinding.ActivityWarndataBinding
|
||||
import com.yinuo.safetywatcher.watcher.base.BaseActivity
|
||||
import com.yinuo.safetywatcher.watcher.view.CommonTopBar
|
||||
|
||||
class WarnDataActivity : BaseActivity() {
|
||||
|
||||
private val mBinding: ActivityWarndataBinding by lazy {
|
||||
ActivityWarndataBinding.inflate(layoutInflater)
|
||||
}
|
||||
|
||||
override fun onOptionClick(type: Int, target: View) {
|
||||
Log.i("cyy", "type = $type")
|
||||
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.warn_data)
|
||||
}
|
||||
|
||||
override fun generateContentView(): View {
|
||||
return mBinding.root
|
||||
}
|
||||
|
||||
override fun initView() {
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.yinuo.safetywatcher.watcher.base
|
||||
|
||||
import android.view.View
|
||||
import com.yinuo.safetywatcher.watcher.view.CommonTopBar
|
||||
|
||||
abstract class NoOptionsActivity : BaseActivity() {
|
||||
override fun getOptions(): List<CommonTopBar.Option>? {
|
||||
return null
|
||||
}
|
||||
|
||||
override fun onOptionClick(type: Int, target: View) {
|
||||
|
||||
}
|
||||
}
|
@ -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>
|
Binary file not shown.
After Width: | Height: | Size: 596 B |
Binary file not shown.
After Width: | Height: | Size: 357 B |
Binary file not shown.
After Width: | Height: | Size: 765 B |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue