desc:云平台界面
parent
795810be52
commit
ccf804bdf8
@ -0,0 +1,24 @@
|
|||||||
|
package com.yinuo.safetywatcher.watcher
|
||||||
|
|
||||||
|
import android.view.View
|
||||||
|
import com.yinuo.safetywatcher.databinding.ActivityCloudBinding
|
||||||
|
import com.yinuo.safetywatcher.watcher.base.BaseActivity
|
||||||
|
|
||||||
|
class CloudActivity : BaseActivity() {
|
||||||
|
private val mBinding: ActivityCloudBinding by lazy {
|
||||||
|
ActivityCloudBinding.inflate(layoutInflater)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun generateContentView(): View {
|
||||||
|
return mBinding.root
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun initView() {
|
||||||
|
mBinding.apply {
|
||||||
|
syncSensor.setOnClickListener { }
|
||||||
|
syncWarn.setOnClickListener { }
|
||||||
|
syncVedio.setOnClickListener { }
|
||||||
|
syncOnce.setOnClickListener { }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<solid android:color="@color/white_20" />
|
||||||
|
<corners
|
||||||
|
android:bottomLeftRadius="10dp"
|
||||||
|
android:bottomRightRadius="10dp"
|
||||||
|
android:topLeftRadius="10dp"
|
||||||
|
android:topRightRadius="10dp" />
|
||||||
|
</shape>
|
@ -0,0 +1,50 @@
|
|||||||
|
<?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"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sync_sensor"
|
||||||
|
android:layout_width="@dimen/_340dp"
|
||||||
|
android:layout_height="@dimen/_100dp"
|
||||||
|
android:background="@drawable/cloud_sync_btn_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/sync_sensor_txt"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_30dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sync_warn"
|
||||||
|
android:layout_width="@dimen/_340dp"
|
||||||
|
android:layout_height="@dimen/_100dp"
|
||||||
|
android:layout_marginTop="@dimen/_50dp"
|
||||||
|
android:background="@drawable/cloud_sync_btn_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/sync_warn_txt"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_30dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sync_vedio"
|
||||||
|
android:layout_width="@dimen/_340dp"
|
||||||
|
android:layout_height="@dimen/_100dp"
|
||||||
|
android:layout_marginTop="@dimen/_50dp"
|
||||||
|
android:background="@drawable/cloud_sync_btn_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/sync_video_txt"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_30dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sync_once"
|
||||||
|
android:layout_width="@dimen/_340dp"
|
||||||
|
android:layout_height="@dimen/_100dp"
|
||||||
|
android:layout_marginTop="@dimen/_50dp"
|
||||||
|
android:background="@drawable/cloud_sync_btn_bg"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/sync_once_txt"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_30dp" />
|
||||||
|
</LinearLayout>
|
Loading…
Reference in New Issue