修改sos报警问题
parent
ae7bacc912
commit
795c836f0c
@ -1,108 +1,120 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/container"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/_303852"
|
android:background="@color/_303852"
|
||||||
android:orientation="vertical">
|
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
|
<RelativeLayout
|
||||||
android:id="@+id/area_sound"
|
android:id="@+id/container"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent">
|
||||||
android:layout_centerInParent="true"
|
<com.yinuo.safetywatcher.watcher.ui.view.CommonTopBar
|
||||||
android:background="@drawable/warn_setting_btn_bg"
|
android:id="@+id/topBar"
|
||||||
android:padding="@dimen/_20dp"
|
android:layout_width="match_parent"
|
||||||
android:visibility="gone">
|
android:layout_height="@dimen/_120dp" />
|
||||||
|
|
||||||
<TextView
|
<RelativeLayout
|
||||||
android:id="@+id/tv"
|
android:id="@+id/area_sound"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerInParent="true"
|
||||||
android:text="音量"
|
android:background="@drawable/warn_setting_btn_bg"
|
||||||
android:textColor="@color/white"
|
android:padding="@dimen/_20dp"
|
||||||
android:textSize="@dimen/_40dp" />
|
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
|
<SeekBar
|
||||||
android:id="@+id/sb_sound"
|
android:id="@+id/sb_sound"
|
||||||
style="@style/LightSeekbarStyle"
|
style="@style/LightSeekbarStyle"
|
||||||
android:layout_width="@dimen/_630dp"
|
android:layout_width="@dimen/_630dp"
|
||||||
android:layout_height="@dimen/_100dp"
|
android:layout_height="@dimen/_100dp"
|
||||||
android:layout_below="@+id/tv"
|
android:layout_below="@+id/tv"
|
||||||
android:layout_marginTop="@dimen/_20dp"
|
android:layout_marginTop="@dimen/_20dp"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:nextFocusRight="@id/sb_sound"
|
android:nextFocusRight="@id/sb_sound"
|
||||||
android:nextFocusLeft="@id/sb_sound"
|
android:nextFocusLeft="@id/sb_sound"
|
||||||
android:min="0"
|
android:min="0"
|
||||||
android:padding="0dp" />
|
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>
|
||||||
</RelativeLayout>
|
</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">
|
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/sos_area"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
>
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/tv_sos"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
android:background="@drawable/sensor_init_btn_bg"
|
||||||
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:gravity="center"
|
||||||
android:text="@string/cancel"
|
android:layout_centerInParent="true"
|
||||||
android:nextFocusLeft="@id/tv_cancel"
|
android:text="@string/text_sos"
|
||||||
android:textColor="@color/white_30"
|
android:minHeight="@dimen/_100dp"
|
||||||
android:textSize="@dimen/_36dp" />
|
android:layout_centerHorizontal="true"
|
||||||
|
android:padding="@dimen/_12dp"
|
||||||
<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:textColor="@color/white"
|
||||||
android:textSize="@dimen/_36dp" />
|
android:textSize="@dimen/_132dp"
|
||||||
|
/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:text="exit"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:id="@+id/tv_exit"
|
|
||||||
android:layout_marginBottom="@dimen/_20dp"
|
|
||||||
android:padding="@dimen/_20dp"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:background="@color/red"
|
|
||||||
android:layout_alignParentEnd="true"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
Loading…
Reference in New Issue