<?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:focusable="true"
|
android:focusableInTouchMode="true"
|
android:orientation="vertical">
|
|
|
<Button
|
android:id="@+id/search_colony"
|
style="@style/setting_button"
|
android:layout_width="@dimen/w156"
|
android:layout_height="@dimen/h60"
|
android:layout_centerInParent="true"
|
android:layout_marginBottom="@dimen/h35"
|
android:text="搜索集群"
|
android:visibility="gone" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/h60"
|
android:layout_marginLeft="@dimen/w8"
|
android:layout_marginTop="@dimen/h34"
|
android:orientation="horizontal">
|
|
|
<Button
|
android:id="@+id/cluster_a"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="集群A" />
|
|
<Button
|
android:id="@+id/cluster_b"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="集群B" />
|
|
<Button
|
android:id="@+id/cluster_c"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="集群C" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="@dimen/w24"
|
android:layout_weight="1">
|
|
<Button
|
android:id="@+id/cluster_plus"
|
android:layout_width="@dimen/w68"
|
android:layout_height="@dimen/h60"
|
android:background="@drawable/blue_button"
|
android:text="+"
|
android:textColor="@color/white"
|
android:textSize="25sp" />
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
<RadioGroup
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w76"
|
android:layout_marginTop="@dimen/h53"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<RadioButton
|
android:id="@+id/only_allow"
|
style="@style/setting_text"
|
android:button="@drawable/radiobutton"
|
android:checked="true"
|
android:text="仅允许" />
|
|
<RadioButton
|
android:id="@+id/no_limit"
|
style="@style/setting_text"
|
android:layout_marginLeft="@dimen/w45"
|
android:button="@drawable/radiobutton"
|
android:text="不限制时间" />
|
</RadioGroup>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w76"
|
android:layout_marginTop="@dimen/h10"
|
android:layout_marginRight="@dimen/w76"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/setting_text"
|
android:text="集群名称:" />
|
|
<EditText
|
android:id="@+id/cluster_name"
|
style="@style/edit_text"
|
android:layout_width="match_parent"
|
android:hint="请输入要加入的集群名称"
|
android:paddingLeft="@dimen/w12"
|
android:text=""
|
android:textColorHint="#9fadc7"
|
android:textSize="@dimen/font_size_16" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w76"
|
android:layout_marginTop="@dimen/h10"
|
android:layout_marginRight="@dimen/w76"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/setting_text"
|
android:text=" Cookie:" />
|
|
<EditText
|
android:id="@+id/cluster_cookie"
|
style="@style/edit_text"
|
android:layout_width="match_parent"
|
android:paddingLeft="@dimen/w12"
|
android:text=""
|
android:textSize="@dimen/font_size_16" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_cluster_ip"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w76"
|
android:layout_marginTop="@dimen/h10"
|
android:layout_marginRight="@dimen/w76"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/setting_text"
|
android:text=" IP:" />
|
|
<EditText
|
android:id="@+id/cluster_ip"
|
style="@style/edit_text"
|
android:layout_width="match_parent"
|
android:hint="请输入要加入的集群IP"
|
android:paddingLeft="@dimen/w12"
|
android:text=""
|
android:textColorHint="#9fadc7"
|
android:textSize="@dimen/font_size_16" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_20"
|
android:orientation="horizontal">
|
|
<View
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
|
<Button
|
android:id="@+id/confirm_save"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="确定" />
|
|
<Button
|
android:id="@+id/cancel_save"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="取消" />
|
|
<View
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
</LinearLayout>
|
|
<com.basic.security.widget.RoundView
|
android:id="@+id/round_view"
|
android:layout_width="@dimen/h216"
|
android:layout_height="@dimen/h216"
|
android:layout_centerInParent="true"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginTop="@dimen/h30" />
|
<!-- RoundView最大值为360,暂不支持修改-->
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_20"
|
android:orientation="horizontal">
|
|
<View
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
|
<Button
|
android:id="@+id/cluster_add"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="加入集群" />
|
|
<Button
|
android:id="@+id/cluster_exit"
|
style="@style/colony_setting_button"
|
android:background="@drawable/blue_button"
|
android:text="退出集群" />
|
|
<View
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
</LinearLayout>
|
|
<ImageView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="@dimen/w76"
|
android:layout_marginTop="@dimen/w60"
|
android:layout_marginRight="@dimen/w76"
|
android:layout_marginBottom="@dimen/w60"
|
android:background="@drawable/u1249"
|
android:visibility="gone" />
|
|
<include layout="@layout/cluster_setting_list_head" />
|
|
<ListView
|
android:id="@+id/lv_device_list"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="@dimen/w76"
|
android:layout_marginRight="@dimen/w76"
|
android:layout_marginBottom="@dimen/w60" />
|
</LinearLayout>
|