新增sn展示
parent
e456fe5cd4
commit
b00a7c62f4
@ -0,0 +1,35 @@
|
|||||||
|
package com.yinuo.safetywatcher.watcher.ui
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
|
import android.view.View
|
||||||
|
import com.yinuo.safetywatcher.R
|
||||||
|
import com.yinuo.safetywatcher.databinding.ActivityAboutBinding
|
||||||
|
import com.yinuo.safetywatcher.databinding.ActivityNetSettingBinding
|
||||||
|
import com.yinuo.safetywatcher.watcher.base.NoOptionsActivity
|
||||||
|
import com.yinuo.safetywatcher.watcher.utils.LztekUtil
|
||||||
|
|
||||||
|
|
||||||
|
class AboutActivity : NoOptionsActivity() {
|
||||||
|
private val mBinding by lazy {
|
||||||
|
ActivityAboutBinding.inflate(layoutInflater)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getTopBarTitle(): String? {
|
||||||
|
return getString(R.string.back)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun generateContentView(): View {
|
||||||
|
return mBinding.root
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressLint("SetTextI18n")
|
||||||
|
override fun initView() {
|
||||||
|
mBinding.apply {
|
||||||
|
tvSn.text = LztekUtil.getSn()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onDestroy() {
|
||||||
|
super.onDestroy()
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
tools:ignore="MissingDefaultResource">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/item_time"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/_108dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingStart="@dimen/_121dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/_21dp"
|
||||||
|
android:layout_weight="2"
|
||||||
|
android:includeFontPadding="false"
|
||||||
|
android:text="@string/sn_about"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_36dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_sn"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/_21dp"
|
||||||
|
android:layout_weight="8"
|
||||||
|
android:includeFontPadding="false"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/_36dp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/_2dp"
|
||||||
|
android:background="@color/_242f4d" />
|
||||||
|
</LinearLayout>
|
Loading…
Reference in New Issue