You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
4.8 KiB
XML
137 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/_303852"
|
|
android:orientation="vertical">
|
|
|
|
<com.yinuo.safetywatcher.watcher.ui.view.CommonTopBar
|
|
android:id="@+id/topBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/_120dp" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/area_sound"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:background="@drawable/warn_setting_btn_bg"
|
|
android:padding="@dimen/_20dp"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:id="@+id/tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:text="音量"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/_40dp" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/sb_sound"
|
|
style="@style/LightSeekbarStyle"
|
|
android:layout_width="@dimen/_630dp"
|
|
android:layout_height="@dimen/_100dp"
|
|
android:layout_below="@+id/tv"
|
|
android:layout_marginTop="@dimen/_20dp"
|
|
android:focusable="true"
|
|
android:nextFocusRight="@id/sb_sound"
|
|
android:nextFocusLeft="@id/sb_sound"
|
|
android:min="0"
|
|
android:padding="0dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layout_shutdown"
|
|
android:layout_width="@dimen/_960dp"
|
|
android:layout_height="200px"
|
|
android:layout_centerInParent="true"
|
|
android:background="@drawable/warn_setting_btn_bg"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="@dimen/_32dp"
|
|
android:layout_marginBottom="@dimen/_32dp"
|
|
android:text="您的设备将会关机!"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/_36dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_cancel"
|
|
android:layout_width="@dimen/_480dp"
|
|
android:layout_height="@dimen/_81dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@drawable/cancel_btn_bg"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:text="@string/cancel"
|
|
android:nextFocusLeft="@id/tv_cancel"
|
|
android:textColor="@color/white_30"
|
|
android:textSize="@dimen/_36dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_confirm"
|
|
android:layout_width="@dimen/_480dp"
|
|
android:layout_height="@dimen/_81dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@drawable/confirm_btn_bg"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:text="@string/confirm"
|
|
android:nextFocusRight="@id/tv_confirm"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/_36dp" />
|
|
</RelativeLayout>
|
|
|
|
|
|
<!--测试用-->
|
|
<ScrollView
|
|
android:layout_width="@dimen/_1080dp"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/scrollview"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="@dimen/_120dp"
|
|
android:background="#80000000">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/tv_log"
|
|
android:textColor="@color/white"
|
|
android:background="#00000000"/>
|
|
|
|
</ScrollView>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/white"
|
|
android:text="showLog"
|
|
android:id="@+id/tv_showLog"
|
|
android:padding="@dimen/_20dp"
|
|
android:background="@color/red"
|
|
android:visibility="gone"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/white"
|
|
android:text="exit"
|
|
android:id="@+id/tv_exit"
|
|
android:layout_marginBottom="@dimen/_20dp"
|
|
android:padding="@dimen/_20dp"
|
|
android:visibility="gone"
|
|
android:layout_above="@id/tv_showLog"
|
|
android:background="@color/red"
|
|
android:layout_alignParentEnd="true"/>
|
|
|
|
</RelativeLayout> |