From 411b26d7bf8baf11809f42fa69a156c54ffbbbbd Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期二, 25 四月 2017 14:15:57 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera2.xml | 168 +++++++++++ VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_wifi.xml | 168 +++++++++++ VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera1.xml | 168 +++++++++++ VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_lan.xml | 168 +++++++++++ VisitFace/DemoForBsk/app/src/main/res/layout/fragment_left_right_frame_layout.xml | 4 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/DeviceFragment.java | 42 ++ VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_school.xml | 168 +++++++++++ 7 files changed, 884 insertions(+), 2 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/DeviceFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/DeviceFragment.java index 0ac4d4e..ecbd5e7 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/DeviceFragment.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/DeviceFragment.java @@ -1,9 +1,12 @@ package cn.com.basic.face.fragment; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; import android.view.LayoutInflater; import android.view.View; import android.widget.CheckBox; import android.widget.EditText; +import android.widget.FrameLayout; import android.widget.RadioButton; import android.widget.RelativeLayout; import android.widget.TextView; @@ -51,6 +54,15 @@ @OnClick(R.id.fragment_device_left_camera2_relative_layout) public void fragment_device_left_camera2_relative_layout_click(View view) { fragment_device_left_camera2_check_box_click(view); } + private View wifiView; + private View lanView; + private View schoolView; + private View camera1View; + private View camera2View; + + @ViewInject(R.id.fragment_left_right_frame_layout_right) + private FrameLayout fragment_left_right_frame_layout_right; + public void clearAll() { fragment_device_left_wifi_check_box.setChecked(false); fragment_device_left_lan_check_box.setChecked(false); @@ -63,30 +75,60 @@ public void fragment_device_left_wifi_check_box_click(View view) { clearAll(); fragment_device_left_wifi_check_box.setChecked(true); + + fragment_left_right_frame_layout_right.removeAllViews(); + if (wifiView == null) { + wifiView = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_right_wifi, null); + } + fragment_left_right_frame_layout_right.addView(wifiView); } @OnClick(R.id.fragment_device_left_lan_check_box) public void fragment_device_left_lan_check_box_click(View view) { clearAll(); fragment_device_left_lan_check_box.setChecked(true); + + fragment_left_right_frame_layout_right.removeAllViews(); + if (lanView == null) { + lanView = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_right_lan, null); + } + fragment_left_right_frame_layout_right.addView(lanView); } @OnClick(R.id.fragment_device_left_school_check_box) public void fragment_device_left_school_check_box_click(View view) { clearAll(); fragment_device_left_school_check_box.setChecked(true); + + fragment_left_right_frame_layout_right.removeAllViews(); + if (schoolView == null) { + schoolView = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_right_school, null); + } + fragment_left_right_frame_layout_right.addView(schoolView); } @OnClick(R.id.fragment_device_left_camera1_check_box) public void fragment_device_left_camera1_check_box_click(View view) { clearAll(); fragment_device_left_camera1_check_box.setChecked(true); + + fragment_left_right_frame_layout_right.removeAllViews(); + if (camera1View == null) { + camera1View = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_right_camera1, null); + } + fragment_left_right_frame_layout_right.addView(camera1View); } @OnClick(R.id.fragment_device_left_camera2_check_box) public void fragment_device_left_camera2_check_box_click(View view) { clearAll(); fragment_device_left_camera2_check_box.setChecked(true); + + fragment_left_right_frame_layout_right.removeAllViews(); + if (camera2View == null) { + camera2View = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_device_right_camera2, null); + } + fragment_left_right_frame_layout_right.addView(camera2View); } public int[] getLeftRightLayoutIds() { diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera1.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera1.xml new file mode 100644 index 0000000..f3b2cf0 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera1.xml @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="76dp" + android:gravity="right|center_vertical" + android:orientation="horizontal"> + <TextView + android:id="@+id/fragment_device_right_delete" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:textColor="@android:color/white" + android:background="@drawable/u194" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_add" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u249" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_save" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u208" + android:text=""/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="596dp" + android:layout_height="wrap_content" + > + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_navigation" + android:text="camer1" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorPrimary"/> + </LinearLayout> + <Switch + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:checked="true" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="閫夋嫨缃戠粶" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorText_b" + /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="缃戠粶1" + android:gravity="left" + android:layout_gravity="left" + /> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u39" + /> + <TextView + android:layout_width="10dp" + android:layout_height="wrap_content" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u41" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + </LinearLayout> + </LinearLayout> + </ScrollView> +</LinearLayout> \ No newline at end of file diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera2.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera2.xml new file mode 100644 index 0000000..fac1415 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_camera2.xml @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="76dp" + android:gravity="right|center_vertical" + android:orientation="horizontal"> + <TextView + android:id="@+id/fragment_device_right_delete" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:textColor="@android:color/white" + android:background="@drawable/u194" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_add" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u249" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_save" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u208" + android:text=""/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="596dp" + android:layout_height="wrap_content" + > + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_navigation" + android:text="camera2" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorPrimary"/> + </LinearLayout> + <Switch + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:checked="true" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="閫夋嫨缃戠粶" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorText_b" + /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="缃戠粶1" + android:gravity="left" + android:layout_gravity="left" + /> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u39" + /> + <TextView + android:layout_width="10dp" + android:layout_height="wrap_content" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u41" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + </LinearLayout> + </LinearLayout> + </ScrollView> +</LinearLayout> \ No newline at end of file diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_lan.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_lan.xml new file mode 100644 index 0000000..41992f7 --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_lan.xml @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="76dp" + android:gravity="right|center_vertical" + android:orientation="horizontal"> + <TextView + android:id="@+id/fragment_device_right_delete" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:textColor="@android:color/white" + android:background="@drawable/u194" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_add" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u249" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_save" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u208" + android:text=""/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="596dp" + android:layout_height="wrap_content" + > + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_navigation" + android:text="lan" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorPrimary"/> + </LinearLayout> + <Switch + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:checked="true" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="閫夋嫨缃戠粶" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorText_b" + /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="缃戠粶1" + android:gravity="left" + android:layout_gravity="left" + /> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u39" + /> + <TextView + android:layout_width="10dp" + android:layout_height="wrap_content" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u41" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + </LinearLayout> + </LinearLayout> + </ScrollView> +</LinearLayout> \ No newline at end of file diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_school.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_school.xml new file mode 100644 index 0000000..d04585a --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_school.xml @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="76dp" + android:gravity="right|center_vertical" + android:orientation="horizontal"> + <TextView + android:id="@+id/fragment_device_right_delete" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:textColor="@android:color/white" + android:background="@drawable/u194" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_add" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u249" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_save" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u208" + android:text=""/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="596dp" + android:layout_height="wrap_content" + > + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_navigation" + android:text="school" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorPrimary"/> + </LinearLayout> + <Switch + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:checked="true" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="閫夋嫨缃戠粶" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorText_b" + /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="缃戠粶1" + android:gravity="left" + android:layout_gravity="left" + /> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u39" + /> + <TextView + android:layout_width="10dp" + android:layout_height="wrap_content" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u41" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + </LinearLayout> + </LinearLayout> + </ScrollView> +</LinearLayout> \ No newline at end of file diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_wifi.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_wifi.xml new file mode 100644 index 0000000..e25e11b --- /dev/null +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_device_right_wifi.xml @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="76dp" + android:gravity="right|center_vertical" + android:orientation="horizontal"> + <TextView + android:id="@+id/fragment_device_right_delete" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:textColor="@android:color/white" + android:background="@drawable/u194" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_add" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u249" + android:text=""/> + <TextView + android:id="@+id/fragment_device_right_save" + android:layout_width="40dp" + android:layout_height="36dp" + android:gravity="center" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:textColor="@android:color/white" + android:background="@drawable/u208" + android:text=""/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="596dp" + android:layout_height="wrap_content" + > + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_navigation" + android:text="wifi" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorPrimary"/> + </LinearLayout> + <Switch + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:checked="true" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="閫夋嫨缃戠粶" + android:gravity="left" + android:layout_gravity="left" + android:textColor="@color/colorText_b" + /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_weight="1" + > + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="缃戠粶1" + android:gravity="left" + android:layout_gravity="left" + /> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u39" + /> + <TextView + android:layout_width="10dp" + android:layout_height="wrap_content" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u41" + /> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + </LinearLayout> + </LinearLayout> + </ScrollView> +</LinearLayout> \ No newline at end of file diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_left_right_frame_layout.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_left_right_frame_layout.xml index 9cf4aff..e9296f4 100644 --- a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_left_right_frame_layout.xml +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_left_right_frame_layout.xml @@ -14,7 +14,7 @@ <FrameLayout android:id="@+id/fragment_left_right_frame_layout_left" android:layout_width="318dp" - android:layout_height="match_parent"></FrameLayout> + android:layout_height="match_parent"/> <View android:layout_width="@dimen/view_size_1" android:layout_height="match_parent" @@ -22,6 +22,6 @@ <FrameLayout android:id="@+id/fragment_left_right_frame_layout_right" android:layout_width="match_parent" - android:layout_height="match_parent"></FrameLayout> + android:layout_height="match_parent"/> </LinearLayout> </LinearLayout> \ No newline at end of file -- Gitblit v1.8.0