<?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:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:gravity="center_vertical|right">
|
|
<LinearLayout
|
android:id="@+id/time_rule_tv"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w20"
|
android:background="@drawable/bule_circle" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w20"
|
android:text="时间规则"
|
android:textColor="@color/press_setting_text_color"
|
android:textSize="@dimen/h21" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_time_rule_name"
|
android:layout_width="wrap_content"
|
android:layout_height="@dimen/h70"
|
android:layout_below="@+id/time_rule_tv"
|
android:layout_marginLeft="@dimen/w48">
|
|
<TextView
|
android:layout_width="@dimen/w5"
|
android:layout_height="@dimen/h22"
|
android:layout_gravity="center"
|
android:background="#74F8F5" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w9"
|
android:text="规则名称:"
|
android:textColor="@color/colorWhite"
|
android:textSize="@dimen/h21" />
|
|
<EditText
|
android:id="@+id/et_time_rule_name"
|
android:layout_width="@dimen/w271"
|
android:layout_height="@dimen/h50"
|
android:layout_gravity="center"
|
android:background="@drawable/bg_edittext1"
|
android:hint="请输入规则名称"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/colorWhite"
|
android:textColorHint="#BFBFBF"
|
android:textSize="@dimen/h21" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:id="@+id/ll_setting_detail"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h58"
|
android:layout_marginLeft="@dimen/w48"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w5"
|
android:layout_height="@dimen/h22"
|
android:layout_gravity="center"
|
android:background="#74F8F5" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w9"
|
android:text="详细设置:"
|
android:textColor="@color/colorWhite"
|
android:textSize="@dimen/h21" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@+id/ll_setting_detail"
|
android:layout_marginLeft="@dimen/w48"
|
android:layout_marginRight="@dimen/w48"
|
android:background="@drawable/bg_time_rule_add"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h60">
|
|
<TextView
|
android:id="@+id/tv_add_time_rule_week"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:gravity="center"
|
android:text="按周"
|
android:textColor="@color/white"
|
android:textSize="@dimen/h21"
|
android:textStyle="bold" />
|
|
<TextView
|
android:id="@+id/tv_add_time_rule_date"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:background="@drawable/bg_time_rule_add_no_checked"
|
android:gravity="center"
|
android:text="按日期"
|
android:textColor="@color/white"
|
android:textSize="@dimen/h21"
|
android:textStyle="bold" />
|
</LinearLayout>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginTop="@dimen/h27">
|
|
<RelativeLayout
|
android:id="@+id/rl_week"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<ListView
|
android:id="@+id/lv_week"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginBottom="@dimen/h10"
|
android:layout_marginLeft="@dimen/w27"
|
android:layout_marginRight="@dimen/w27"
|
android:divider="#00000000"
|
android:dividerHeight="0dip" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/rl_date"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:visibility="gone">
|
|
<ListView
|
android:id="@+id/lv_date"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginBottom="@dimen/h82"
|
android:layout_marginLeft="@dimen/w27"
|
android:layout_marginRight="@dimen/w27"
|
android:divider="#00000000"
|
android:dividerHeight="0dip" />
|
|
<ImageView
|
android:id="@+id/tv_add_item"
|
android:layout_width="@dimen/w25"
|
android:layout_height="@dimen/w25"
|
android:layout_alignParentBottom="true"
|
android:layout_centerInParent="true"
|
android:layout_marginBottom="@dimen/h22"
|
android:background="@drawable/add_time_rule" />
|
</RelativeLayout>
|
</RelativeLayout>
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginBottom="@dimen/h20"
|
android:layout_marginTop="@dimen/h20"
|
android:orientation="horizontal">
|
|
<RelativeLayout
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:gravity="right">
|
|
<com.basic.security.widget.Button1
|
android:id="@+id/btn_time_rule_save"
|
android:layout_width="@dimen/w155"
|
android:layout_height="@dimen/h60"
|
android:layout_marginRight="@dimen/w25"
|
android:background="@drawable/blue_button"
|
android:gravity="center"
|
android:text="保存"
|
android:textColor="@color/colorWhite"
|
android:textSize="@dimen/h25" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:gravity="left">
|
|
<com.basic.security.widget.Button1
|
android:id="@+id/btn_time_rule_cancel"
|
android:layout_width="@dimen/w155"
|
android:layout_height="@dimen/h60"
|
android:background="@drawable/gray_button"
|
android:gravity="center"
|
android:text="取消"
|
android:textColor="@color/colorWhite"
|
android:textSize="@dimen/h25" />
|
</RelativeLayout>
|
</LinearLayout>
|
</LinearLayout>
|