|
|
|
@ -4,180 +4,213 @@
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingStart="@dimen/_121dp"
|
|
|
|
|
android:paddingTop="@dimen/_61dp">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_name"
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:hint="@string/sensor_name_txt"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:nextFocusDown="@id/et_name"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg"/>
|
|
|
|
|
android:paddingTop="@dimen/_40dp">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_gas_name"
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:hint="@string/gas_name_txt"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/area_switch"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:nextFocusDown="@id/et_gas_name"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/et_step"
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:hint="@string/sensor_step_txt"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_6dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:text="@string/gas_unit"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
android:layout_marginEnd="@dimen/_61dp"
|
|
|
|
|
android:paddingEnd="@dimen/_61dp">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_vol"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:checked="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:text="@string/unit_vol"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_status"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginVertical="20dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_36dp" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_lel"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:checked="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:text="@string/unit_lel"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
<Switch
|
|
|
|
|
android:id="@+id/sensor_switch"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="10dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
|
android:id="@+id/rg_unit"
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/layout_op"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_name"
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:hint="@string/sensor_name_txt"
|
|
|
|
|
android:nextFocusDown="@id/et_name"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_gas_name"
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:hint="@string/gas_name_txt"
|
|
|
|
|
android:nextFocusDown="@id/et_gas_name"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/et_step"
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:hint="@string/sensor_step_txt"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_6dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:text="@string/gas_unit"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_ppm"
|
|
|
|
|
android:id="@+id/rb_vol"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:checked="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:text="@string/unit_ppm"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:text="@string/unit_vol"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_mgm3"
|
|
|
|
|
android:id="@+id/rb_lel"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:checked="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:text="@string/unit_mg_m3"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:text="@string/unit_lel"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:layout_marginStart="@dimen/_40dp"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
|
|
<!--<RelativeLayout
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_type"
|
|
|
|
|
<RadioGroup
|
|
|
|
|
android:id="@+id/rg_unit"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:hint="@string/sensor_type_txt"
|
|
|
|
|
android:background="#00000000"/>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="@dimen/_31dp"
|
|
|
|
|
android:layout_height="@dimen/_17dp"
|
|
|
|
|
android:src="@mipmap/ic_arrow_down"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_marginEnd="@dimen/_30dp"/>
|
|
|
|
|
</RelativeLayout>-->
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_warn_setting"
|
|
|
|
|
android:layout_width="@dimen/_380dp"
|
|
|
|
|
android:layout_height="@dimen/_80dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:text="@string/sensor_warn_setting_txt"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:background="@drawable/warn_setting_btn_bg"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp">
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_ppm"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:text="@string/unit_ppm"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/rb_mgm3"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/_40dp"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:paddingHorizontal="@dimen/_6dp"
|
|
|
|
|
android:text="@string/unit_mg_m3"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_28dp" />
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
|
|
<!--<RelativeLayout
|
|
|
|
|
android:layout_width="@dimen/_600dp"
|
|
|
|
|
android:layout_height="@dimen/_100dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:background="@drawable/cloud_sync_btn_bg">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_type"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textColorHint="@color/white"
|
|
|
|
|
android:paddingStart="@dimen/_30dp"
|
|
|
|
|
android:hint="@string/sensor_type_txt"
|
|
|
|
|
android:background="#00000000"/>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="@dimen/_31dp"
|
|
|
|
|
android:layout_height="@dimen/_17dp"
|
|
|
|
|
android:src="@mipmap/ic_arrow_down"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_marginEnd="@dimen/_30dp"/>
|
|
|
|
|
</RelativeLayout>-->
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_save"
|
|
|
|
|
android:id="@+id/tv_warn_setting"
|
|
|
|
|
android:layout_width="@dimen/_380dp"
|
|
|
|
|
android:layout_height="@dimen/_80dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/save"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp"
|
|
|
|
|
android:background="@drawable/warn_setting_btn_bg"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:background="@drawable/save_btn_bg"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_sensor_init"
|
|
|
|
|
android:layout_width="@dimen/_260dp"
|
|
|
|
|
android:layout_height="@dimen/_80dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_38dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textSize="@dimen/_30dp"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:text="@string/sensor_init_txt"
|
|
|
|
|
android:background="@drawable/sensor_init_btn_bg"/>
|
|
|
|
|
android:text="@string/sensor_warn_setting_txt"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/_40dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_save"
|
|
|
|
|
android:layout_width="@dimen/_380dp"
|
|
|
|
|
android:layout_height="@dimen/_80dp"
|
|
|
|
|
android:background="@drawable/save_btn_bg"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/save"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_sensor_init"
|
|
|
|
|
android:layout_width="@dimen/_260dp"
|
|
|
|
|
android:layout_height="@dimen/_80dp"
|
|
|
|
|
android:layout_marginStart="@dimen/_38dp"
|
|
|
|
|
android:background="@drawable/sensor_init_btn_bg"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/sensor_init_txt"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/_30dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|