├── .gitignore
├── .idea
├── caches
│ └── build_file_checksums.ser
├── encodings.xml
├── gradle.xml
├── misc.xml
├── modules.xml
├── runConfigurations.xml
└── vcs.xml
├── app
├── .gitignore
├── build.gradle
├── libs
│ └── achartengine-1.1.0.jar
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── example
│ │ └── fr
│ │ └── baimajidi
│ │ └── ApplicationTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── fr
│ │ │ └── baimajidi
│ │ │ ├── AboutActivity.java
│ │ │ ├── AutocmdActivity.java
│ │ │ ├── ContactActivity.java
│ │ │ ├── ControlActivity.java
│ │ │ ├── CurveActivity.java
│ │ │ ├── DatabaseHelper.java
│ │ │ ├── FunctionActivity.java
│ │ │ ├── GetPostUtil.java
│ │ │ ├── HelpActivity.java
│ │ │ ├── LineActivity.java
│ │ │ ├── LineChart.java
│ │ │ ├── LineChartData.java
│ │ │ ├── LineChartDataInt.java
│ │ │ ├── Login.java
│ │ │ ├── MainActivity.java
│ │ │ ├── MyActivity.java
│ │ │ ├── Outdoor.java
│ │ │ ├── PrivilegeHelper.java
│ │ │ └── send_ToService.java
│ └── res
│ │ ├── anim
│ │ ├── push_left_in.xml
│ │ ├── push_left_out.xml
│ │ ├── push_right_in.xml
│ │ ├── push_right_out.xml
│ │ ├── zoommin.xml
│ │ └── zoomout.xml
│ │ ├── drawable
│ │ ├── a1.jpg
│ │ ├── a2.jpg
│ │ ├── a3.jpg
│ │ ├── a4.jpg
│ │ ├── add.png
│ │ ├── agriculture1.jpg
│ │ ├── agriculture2.jpg
│ │ ├── agriculture3.jpg
│ │ ├── agriculture4.jpg
│ │ ├── anqi.png
│ │ ├── app_bg.png
│ │ ├── background.jpg
│ │ ├── background2.jpg
│ │ ├── bangzhu.png
│ │ ├── bottom_bg.png
│ │ ├── bottom_cam.png
│ │ ├── bottom_cam_bn_style.xml
│ │ ├── bottom_cam_d.png
│ │ ├── bottom_home.png
│ │ ├── bottom_home_bn_style.xml
│ │ ├── bottom_home_d.png
│ │ ├── bottom_select_bg.png
│ │ ├── bottom_shopping.png
│ │ ├── bottom_shopping_bn_style.xml
│ │ ├── bottom_shopping_d.png
│ │ ├── bottom_show.png
│ │ ├── bottom_show_bn_style.xml
│ │ ├── bottom_show_d.png
│ │ ├── bottom_style_bn_style.xml
│ │ ├── btn_check_off.png
│ │ ├── btn_check_off_pressed.png
│ │ ├── btn_check_off_selected.png
│ │ ├── btn_check_on.png
│ │ ├── btn_check_on_pressed.png
│ │ ├── btn_check_on_selected.png
│ │ ├── button3.gif
│ │ ├── click_background.png
│ │ ├── clock_list.9.png
│ │ ├── clock_list_dddd.png
│ │ ├── cloud.jpg
│ │ ├── contact.png
│ │ ├── contact2.png
│ │ ├── contact_select_list_style.xml
│ │ ├── contacts.png
│ │ ├── control.png
│ │ ├── control2.png
│ │ ├── controlbackground1.jpg
│ │ ├── decrease.png
│ │ ├── default_pic_1.png
│ │ ├── default_pic_2.png
│ │ ├── default_pic_3.png
│ │ ├── default_pic_4.png
│ │ ├── donghuaji.png
│ │ ├── edit_bg.xml
│ │ ├── eryanghuatan.png
│ │ ├── faceback.png
│ │ ├── fengsu.png
│ │ ├── fengxiang.png
│ │ ├── gongneng.png
│ │ ├── guangzhao.png
│ │ ├── guanyu.png
│ │ ├── home_bottom_style.xml
│ │ ├── home_img_ratio.png
│ │ ├── home_img_ratio_selected.png
│ │ ├── home_img_ratio_selected1.png
│ │ ├── home_index_arrow.png
│ │ ├── home_index_btn.png
│ │ ├── home_index_btn_d.png
│ │ ├── home_regist_bn_style.xml
│ │ ├── home_select_list_style.xml
│ │ ├── home_user_login_bn_style.xml
│ │ ├── index_browse.png
│ │ ├── input_over.9.png
│ │ ├── jiancha.png
│ │ ├── jiangyu.png
│ │ ├── jiangyu2.png
│ │ ├── jijian.png
│ │ ├── login_back.9.png
│ │ ├── login_btn.png
│ │ ├── login_btn_d.png
│ │ ├── login_head.xml
│ │ ├── login_input.9.png
│ │ ├── loginpic1.jpg
│ │ ├── logo2.png
│ │ ├── njau2.png
│ │ ├── njau3.png
│ │ ├── paint1.png
│ │ ├── paint2.png
│ │ ├── pm25.png
│ │ ├── qq_btn_check.xml
│ │ ├── qq_edit_login.xml
│ │ ├── queding.png
│ │ ├── ratio_img_style.xml
│ │ ├── register_btn.png
│ │ ├── register_btn_d.png
│ │ ├── returned.png
│ │ ├── returned_d.png
│ │ ├── school.jpg
│ │ ├── school2.jpg
│ │ ├── school3.jpg
│ │ ├── set_bn_style.xml
│ │ ├── set_title_btn.xml
│ │ ├── shape_gradient1.xml
│ │ ├── shape_gradient2.xml
│ │ ├── shape_gradient3.xml
│ │ ├── shape_rectangle.xml
│ │ ├── shidu.png
│ │ ├── shiwai.png
│ │ ├── soil.png
│ │ ├── sun.png
│ │ ├── temp.png
│ │ ├── top_bar_bg.png
│ │ ├── top_bar_bg1.png
│ │ ├── top_bar_set_btn.png
│ │ ├── top_bar_set_btn_d.png
│ │ ├── video1.png
│ │ ├── video2.png
│ │ ├── video_btn1.png
│ │ ├── xinxichaxun.png
│ │ ├── zhinengwenshi.jpg
│ │ ├── zhinengwenshi4.jpg
│ │ ├── zhinengwenshixin.jpg
│ │ └── zidongkongzhi.png
│ │ ├── layout
│ │ ├── about.xml
│ │ ├── about_foot_layout.xml
│ │ ├── about_select_layout.xml
│ │ ├── about_title_layout.xml
│ │ ├── acitvity_layout.xml
│ │ ├── activity_main.xml
│ │ ├── autocmd_layout.xml
│ │ ├── autocmd_select_layout.xml
│ │ ├── autocmd_title_layout.xml
│ │ ├── chart_listview_layout.xml
│ │ ├── chart_select_layout.xml
│ │ ├── chart_title_layout.xml
│ │ ├── contact_layout.xml
│ │ ├── contact_select_layout.xml
│ │ ├── contact_title_layout.xml
│ │ ├── control_chart_layout.xml
│ │ ├── control_cmd.xml
│ │ ├── control_layout.xml
│ │ ├── control_title_layout.xml
│ │ ├── curve_curveview_layout.xml
│ │ ├── curve_layout.xml
│ │ ├── curve_select_layout.xml
│ │ ├── curve_title_layout.xml
│ │ ├── function.xml
│ │ ├── function_select_layout.xml
│ │ ├── function_title_layout.xml
│ │ ├── help.xml
│ │ ├── help_select_layout.xml
│ │ ├── help_title_layout.xml
│ │ ├── home_bottom_menu_layout.xml
│ │ ├── home_data_bar.xml
│ │ ├── home_footbar_layout.xml
│ │ ├── home_ratio_img.xml
│ │ ├── home_select_layout.xml
│ │ ├── home_select_list_layout.xml
│ │ ├── home_title_layout.xml
│ │ ├── home_user_layout.xml
│ │ ├── line.xml
│ │ ├── list_row.xml
│ │ ├── login.xml
│ │ ├── main.xml
│ │ ├── values
│ │ │ ├── bottom_menu_style.xml
│ │ │ ├── colors.xml
│ │ │ └── strings.xml
│ │ ├── video_layout.xml
│ │ ├── video_select_layout.xml
│ │ ├── video_title_layout.xml
│ │ └── viewflipper_layout.xml
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ └── ic_launcher.png
│ │ ├── values-w820dp
│ │ └── dimens.xml
│ │ └── values
│ │ ├── area_data.xml
│ │ ├── arrays.xml
│ │ ├── attrs.xml
│ │ ├── attrs1.xml
│ │ ├── bottom_menu_style.xml
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── fr
│ └── baimajidi
│ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── libs
├── achartengine-1.1.0.jar
└── achartengine-1.1.0
│ ├── achartengine-1.1.0-demo-source.zip
│ ├── achartengine-1.1.0-javadocs.zip
│ └── achartengine-1.1.0.jar
├── projectFilesBackup
└── .idea
│ └── workspace.xml
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 |
--------------------------------------------------------------------------------
/.idea/caches/build_file_checksums.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/.idea/caches/build_file_checksums.ser
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 |
6 | defaultConfig {
7 | applicationId "com.example.fr.baimajidi"
8 | minSdkVersion 19
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | implementation fileTree(include: ['*.jar'], dir: 'libs')
24 | implementation files('libs/achartengine-1.1.0.jar')
25 |
26 | implementation 'com.android.support:appcompat-v7:25.3.1'
27 | implementation 'com.google.android.gms:play-services-appindexing:8.1.0'
28 | implementation 'com.android.support.constraint:constraint-layout:1.0.2'
29 | testImplementation 'junit:junit:4.12'
30 | //这是我刚刚加入的
31 | // implementation 'com.google.android.material:material:1.0.0'
32 | //implementation'com.jaredrummler:material-spinner:1.3.1'
33 | //implementation 'com.android.support.constraint:constraint-layout:1.1.3'
34 | // androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
35 | }
36 |
--------------------------------------------------------------------------------
/app/libs/achartengine-1.1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/libs/achartengine-1.1.0.jar
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in D:\xuexiruanjian\android\android-sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/example/fr/baimajidi/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/AboutActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.text.method.ScrollingMovementMethod;
6 | import android.view.View;
7 | import android.view.Window;
8 | import android.widget.Button;
9 | import android.widget.TextView;
10 |
11 | public class AboutActivity extends Activity {
12 |
13 |
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | requestWindowFeature(Window.FEATURE_NO_TITLE);
17 | setContentView(R.layout.about);
18 | TextView jieshao=(TextView)findViewById(R.id.jieshao);
19 | jieshao.setMovementMethod(ScrollingMovementMethod.getInstance());
20 | Button title_set_bn=(Button)findViewById(R.id.title_set_bn);
21 | title_set_bn.setOnClickListener(new View.OnClickListener() {
22 | public void onClick(View v) {
23 | finish();
24 | }
25 | });
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/ContactActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.app.Activity;
4 | import android.app.AlertDialog;
5 | import android.app.Dialog;
6 | import android.content.DialogInterface;
7 | import android.content.Intent;
8 | import android.content.SharedPreferences;
9 | import android.os.Bundle;
10 | import android.view.GestureDetector;
11 | import android.view.KeyEvent;
12 | import android.view.MotionEvent;
13 | import android.view.View;
14 | import android.view.View.OnClickListener;
15 | import android.view.Window;
16 | import android.widget.Button;
17 | import android.widget.LinearLayout;
18 | import android.widget.RelativeLayout;
19 | import android.widget.Toast;
20 |
21 | public class ContactActivity extends Activity {
22 | private GestureDetector mGestureDetector;
23 | private static final int FLING_MIN_DISTANCE = 50;
24 | private static final int FLING_MIN_VELOCITY = 0;
25 | private SharedPreferences sp;
26 | Button ringagain1,ringagain2,ringagain3,ringagain4,ringagain5,ringagain6;
27 | int i=0;
28 | private LinearLayout home_img_bn_Layout, style_img_bn_layout, cam_img_bn_layout,shopping_img_bn_layout, show_img_bn_layout;
29 | private RelativeLayout con;
30 | @Override
31 | protected void onCreate(final Bundle savedInstanceState) {
32 | // TODO Auto-generated method stub
33 | super.onCreate(savedInstanceState);
34 | requestWindowFeature(Window.FEATURE_NO_TITLE);
35 | setContentView(R.layout.contact_layout);
36 | // sp = this.getSharedPreferences("setting", Context.MODE_WORLD_READABLE);
37 | // mGestureDetector = new GestureDetector(this);
38 | // con= (RelativeLayout)findViewById(R.id.con);
39 | // con.setOnTouchListener(this);
40 | // con.setLongClickable(true);
41 | //功能简介的工具
42 | ringagain1=(Button)findViewById(R.id.ringagain1);
43 | ringagain1.setOnClickListener(new OnClickListener() {
44 |
45 | @Override
46 | public void onClick(View v) {
47 | // TODO Auto-generated method stub
48 | Intent intent = new Intent();
49 | intent.setClass(ContactActivity.this, FunctionActivity.class);
50 | startActivity(intent);
51 | }
52 | });
53 | //更新当前版本的工具
54 | ringagain2=(Button)findViewById(R.id.ringagain2);
55 | ringagain2.setOnClickListener(new OnClickListener() {
56 |
57 | @Override
58 | public void onClick(View v) {
59 | // TODO Auto-generated method stub
60 | Toast.makeText(ContactActivity.this,"当前已是最新版本",Toast.LENGTH_SHORT).show();
61 | }
62 | });
63 | //帮助与反馈的工具
64 | ringagain3=(Button)findViewById(R.id.ringagain3);
65 | ringagain3.setOnClickListener(new OnClickListener() {
66 |
67 | @Override
68 | public void onClick(View v) {
69 | // TODO Auto-generated method stub
70 | Intent intent = new Intent();
71 | intent.setClass(ContactActivity.this, HelpActivity.class);
72 | startActivity(intent);
73 | }
74 | });
75 | //关于鸡舍终端的介绍工具
76 | ringagain4=(Button)findViewById(R.id.ringagain4);
77 | ringagain4.setOnClickListener(new OnClickListener() {
78 |
79 | @Override
80 | public void onClick(View v) {
81 | // TODO Auto-generated method stub
82 | Intent intent = new Intent();
83 | intent.setClass(ContactActivity.this, AboutActivity.class);
84 | startActivity(intent);
85 | }
86 | });
87 | //关于
88 | // ringagain5=(Button)findViewById(R.id.ringagain5);
89 | // ringagain5.setOnClickListener(new OnClickListener() {
90 | //
91 | // @Override
92 | // public void onClick(View v) {
93 | // // TODO Auto-generated method stub
94 | // Toast.makeText(ContactActivity.this,"联系我们",Toast.LENGTH_SHORT).show();
95 | // }
96 | // });
97 | // ringagain6 = (Button)findViewById(R.id.ringagain6);
98 | // ringagain6.setOnClickListener(new OnClickListener() {
99 | // @Override
100 | // public void onClick(View v) {
101 | //Intent intent = new Intent();
102 |
103 | //Toast.makeText(ContactActivity.this,"联系我们",Toast.LENGTH_SHORT).show();
104 | // startActivity(intent);
105 | // }
106 | // });
107 |
108 | home_img_bn_Layout = (LinearLayout) findViewById(R.id.bottom_home_layout_ly);
109 | home_img_bn_Layout.setOnClickListener(clickListener_home);
110 |
111 | shopping_img_bn_layout = (LinearLayout) findViewById(R.id.bottom_shopping_layout_ly);
112 | shopping_img_bn_layout.setOnClickListener(clickListener_shopping);
113 |
114 | style_img_bn_layout = (LinearLayout) findViewById(R.id.bottom_style_layout_ly);
115 | style_img_bn_layout.setOnClickListener(clickListener_style);
116 |
117 | cam_img_bn_layout = (LinearLayout) findViewById(R.id.bottom_cam_layout_ly);
118 | cam_img_bn_layout.setOnClickListener(clickListener_cam);
119 |
120 | show_img_bn_layout = (LinearLayout) findViewById(R.id.bottom_show_layout_ly);
121 | show_img_bn_layout.setOnClickListener(clickListener_show);
122 | show_img_bn_layout.setSelected(true);
123 | }
124 | public boolean onTouch(View v, MotionEvent event) {
125 | return mGestureDetector.onTouchEvent(event);
126 | }
127 | // public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
128 | // float velocityY) {
129 | // // TODO Auto-generated method stub
130 | // Log.e("view", "onFling");
131 | // if (e2.getX() - e1.getX() > FLING_MIN_DISTANCE
132 | // && Math.abs(velocityX) > FLING_MIN_VELOCITY){
133 | // Log.e("fling", "right");
134 | // if(sp.getBoolean("IFHUADONG", true))
135 | // {
136 | // Intent intent = new Intent();
137 | // intent.setClass(ContactActivity.this, Login.class);
138 | // startActivity(intent);
139 | // overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out);
140 | // finish();
141 | // }
142 | // }
143 | // return false;
144 | // }
145 | public boolean onKeyDown(int keyCode,KeyEvent event)
146 | {
147 | if(keyCode== KeyEvent.KEYCODE_BACK)
148 | {
149 | dialog();
150 | return true;
151 | }
152 | else
153 | {
154 | return super.onKeyDown(keyCode, event);
155 | }
156 | }
157 | protected void dialog()
158 | {
159 | Dialog dialog = new AlertDialog.Builder(this).setTitle("温室管理终端").setMessage(
160 | "确认退出应用程序?").setPositiveButton("退出",new DialogInterface.OnClickListener() {
161 |
162 | @Override
163 | public void onClick(DialogInterface dialog, int which) {
164 | // TODO Auto-generated method stub
165 | dialog.dismiss();
166 | ContactActivity.this.finish();
167 | }
168 | }).setNegativeButton("取消",new DialogInterface.OnClickListener() {
169 |
170 | @Override
171 | public void onClick(DialogInterface dialog, int which) {
172 | // TODO Auto-generated method stub
173 | dialog.dismiss();
174 | }
175 | }).create();
176 | dialog.show();
177 | }
178 | protected void dialog1()
179 | {
180 | Dialog dialog = new AlertDialog.Builder(this).setTitle("温室管理终端").setMessage(
181 | "确认注销当前帐号?").setPositiveButton("确定",new DialogInterface.OnClickListener() {
182 |
183 | @Override
184 | public void onClick(DialogInterface dialog, int which) {
185 | // TODO Auto-generated method stub
186 | dialog.dismiss();
187 | // Intent intent = new Intent();
188 | // intent.setClass(ContactActivity.this, Login.class);
189 | // startActivity(intent);
190 | // overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out);
191 | ContactActivity.this.finish();
192 | }
193 | }).setNegativeButton("取消",new DialogInterface.OnClickListener() {
194 |
195 | @Override
196 | public void onClick(DialogInterface dialog, int which) {
197 | // TODO Auto-generated method stub
198 | dialog.dismiss();
199 | }
200 | }).create();
201 | dialog.show();
202 | }
203 | private OnClickListener clickListener_home = new OnClickListener() {
204 |
205 | @Override
206 | public void onClick(View v) {
207 | // TODO Auto-generated method stub
208 | home_img_bn_Layout.setSelected(true);
209 | style_img_bn_layout.setSelected(false);
210 | cam_img_bn_layout.setSelected(false);
211 | shopping_img_bn_layout.setSelected(false);
212 | show_img_bn_layout.setSelected(false);
213 | Intent intent = new Intent();
214 | intent.setClass(ContactActivity.this, MainActivity.class);
215 | startActivity(intent);
216 | //overridePendingTransition(R.anim.zoommin, R.anim.zoomout);
217 | finish();
218 | }
219 | };
220 | private OnClickListener clickListener_style = new OnClickListener() {
221 |
222 | @Override
223 | public void onClick(View v) {
224 | // TODO Auto-generated method stub
225 | home_img_bn_Layout.setSelected(false);
226 | style_img_bn_layout.setSelected(true);
227 | cam_img_bn_layout.setSelected(false);
228 | shopping_img_bn_layout.setSelected(false);
229 | show_img_bn_layout.setSelected(false);
230 | Intent intent = new Intent();
231 | intent.setClass(ContactActivity.this, Outdoor.class);
232 | startActivity(intent);
233 | //overridePendingTransition(R.anim.zoommin, R.anim.zoomout);
234 | finish();
235 | }
236 | };
237 | private OnClickListener clickListener_cam = new OnClickListener() {
238 |
239 | @Override
240 | public void onClick(View v) {
241 | // TODO Auto-generated method stub
242 | home_img_bn_Layout.setSelected(false);
243 | style_img_bn_layout.setSelected(false);
244 | cam_img_bn_layout.setSelected(true);
245 | shopping_img_bn_layout.setSelected(false);
246 | show_img_bn_layout.setSelected(false);
247 | Intent intent = new Intent();
248 | intent.setClass(ContactActivity.this, CurveActivity.class);
249 | startActivity(intent);
250 | //overridePendingTransition(R.anim.zoommin, R.anim.zoomout);
251 | finish();
252 | }
253 | };
254 | private OnClickListener clickListener_shopping = new OnClickListener() {
255 |
256 | @Override
257 | public void onClick(View v) {
258 | // TODO Auto-generated method stub
259 | home_img_bn_Layout.setSelected(false);
260 | style_img_bn_layout.setSelected(false);
261 | cam_img_bn_layout.setSelected(false);
262 | shopping_img_bn_layout.setSelected(true);
263 | show_img_bn_layout.setSelected(false);
264 | Intent intent = new Intent();
265 | intent.setClass(ContactActivity.this, ControlActivity.class);
266 | startActivity(intent);
267 | //overridePendingTransition(R.anim.zoommin, R.anim.zoomout);
268 | finish();
269 | }
270 | };
271 | private OnClickListener clickListener_show = new OnClickListener() {
272 |
273 | @Override
274 | public void onClick(View v) {
275 | // TODO Auto-generated method stub
276 | home_img_bn_Layout.setSelected(false);
277 | style_img_bn_layout.setSelected(false);
278 | cam_img_bn_layout.setSelected(false);
279 | shopping_img_bn_layout.setSelected(false);
280 | show_img_bn_layout.setSelected(true);
281 | }
282 | };
283 |
284 | }
285 |
286 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/DatabaseHelper.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.content.Context;
4 | import android.database.sqlite.SQLiteDatabase;
5 | import android.database.sqlite.SQLiteDatabase.CursorFactory;
6 | import android.database.sqlite.SQLiteOpenHelper;
7 |
8 | public class DatabaseHelper extends SQLiteOpenHelper {
9 |
10 | private static final int VERSION=1;
11 | public DatabaseHelper(Context context, String name, CursorFactory factory, int version)
12 | {
13 | super(context,name,factory,version);
14 | }
15 |
16 | public DatabaseHelper(Context context, String name)
17 | {
18 | this(context,name,VERSION);
19 | }
20 | public DatabaseHelper(Context context, String name, int version)
21 | {
22 | this(context,name,null,version);
23 | }
24 | @Override
25 | public void onCreate(SQLiteDatabase db) {
26 | // TODO Auto-generated method stub
27 | System.out.println("cteate a Database");
28 | db.execSQL("create table temp(id int,Temp varchar(20),time varchar(20))");
29 | db.execSQL("create table humi(id int,Humi varchar(20),time varchar(20))");
30 | db.execSQL("create table lumi(id int,Lumi varchar(20),time varchar(20))");
31 | db.execSQL("create table co2(id int,Co2 varchar(20),time varchar(20))");
32 | db.execSQL("create table NH3(id int,NH3 varchar(20),time varchar(20))");
33 | db.execSQL("create table H2S(id int,H2S varchar(20),time varchar(20))");
34 | db.execSQL("create table AirRate(id int,AirRate varchar(20),time varchar(20))");
35 | // db.execSQL("create table co23(id int,Co22 varchar(20),time varchar(20))");
36 | // db.execSQL("create table temp3(id int,Temp3 varchar(20),time varchar(20))");
37 | // db.execSQL("create table humi3(id int,Humi3 varchar(20),time varchar(20))");
38 | // db.execSQL("create table lumi3(id int,Lumi3 varchar(20),time varchar(20))");
39 | // db.execSQL("create table co23(id int,Co23 varchar(20),time varchar(20))");
40 | }
41 |
42 | @Override
43 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
44 | // TODO Auto-generated method stub
45 | System.out.println("update a Database");
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/FunctionActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.Window;
7 | import android.widget.Button;
8 |
9 | public class FunctionActivity extends Activity {
10 |
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | requestWindowFeature(Window.FEATURE_NO_TITLE);
14 | setContentView(R.layout.function);
15 | Button title_set_bn=(Button)findViewById(R.id.title_set_bn);
16 | title_set_bn.setOnClickListener(new View.OnClickListener() {
17 | public void onClick(View v) {
18 | finish();
19 | }
20 | });
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/GetPostUtil.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.util.Log;
4 |
5 | import java.io.BufferedReader;
6 | import java.io.IOException;
7 | import java.io.InputStream;
8 | import java.io.InputStreamReader;
9 | import java.io.PrintWriter;
10 | import java.net.URL;
11 | import java.net.URLConnection;
12 | import java.util.List;
13 | import java.util.Map;
14 |
15 | /**
16 | * Created by FR on 2017/4/14.
17 | */
18 | public class GetPostUtil {
19 | /**
20 | * 向指定URL发送GET方法的请求
21 | * @param url 发送请求的URL
22 | * @param params 请求参数,请求参数应该是name1=value1&name2=value2的形式。
23 | * @return URL所代表远程资源的响应
24 | */
25 | public static String sendGet(String url, String params)
26 | {
27 | String result = "";
28 | BufferedReader in = null;
29 |
30 | try
31 | {
32 | String urlName = url + "?" + params;
33 | URL realUrl = new URL(urlName);
34 | // 打开和URL之间的连接
35 | URLConnection conn = realUrl.openConnection();
36 |
37 | // 设置通用的请求属性
38 | conn.setRequestProperty("accept", "*/*");
39 | conn.setRequestProperty("connection", "Keep-Alive");
40 | conn.setRequestProperty("user-agent",
41 | "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");
42 | /*
43 | * 建立实际的连接
44 | * 如果需要发送POST请求,则需要获取URLConnection的OutputStream
45 | * 然后再向网络中输出请求参数
46 | */
47 | conn.connect();
48 |
49 | // 获取所有响应头字段
50 | Map> map = conn.getHeaderFields();
51 | // 遍历所有的响应头字段
52 | for (String key : map.keySet())
53 | {
54 | System.out.println(key + "--->" + map.get(key));
55 | }
56 |
57 | // 定义BufferedReader输入流来读取URL的响应
58 | in = new BufferedReader(
59 | new InputStreamReader(conn.getInputStream()));
60 | String line;
61 | while ((line = in.readLine()) != null)
62 | {
63 | result += "\n" + line;
64 | }
65 | }
66 | catch (Exception e)
67 | {
68 | System.out.println("发送GET请求出现异常!" + e);
69 | e.printStackTrace();
70 | }
71 | // 使用finally块来关闭输入流
72 | finally
73 | {
74 | try
75 | {
76 | if (in != null)
77 | {
78 | in.close();
79 | }
80 | }
81 | catch (IOException ex)
82 | {
83 | ex.printStackTrace();
84 | }
85 | }
86 | return result;
87 | }
88 |
89 | /**
90 | * 向指定URL发送POST方法的请求
91 | * @param url 发送请求的URL
92 | * @param params 请求参数,请求参数应该是name1=value1&name2=value2的形式。
93 | * @return URL所代表远程资源的响应
94 | */
95 | public static String sendPost(String url, String params)
96 | {
97 | PrintWriter out = null;
98 | InputStream in = null;
99 | String result = "";
100 |
101 | try
102 | {
103 | URL realUrl = new URL(url);
104 | // 打开和URL之间的连接
105 | URLConnection conn = realUrl.openConnection();
106 |
107 | // 设置通用的请求属性
108 | conn.setRequestProperty("accept", "*/*");
109 | conn.setRequestProperty("connection", "Keep-Alive");
110 | conn.setRequestProperty("user-agent",
111 | "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");
112 |
113 | //向网络中输出请求参数
114 | conn.setDoOutput(true);
115 | conn.setDoInput(true);
116 |
117 | // 获取URLConnection对象对应的输出流
118 | out = new PrintWriter(conn.getOutputStream());
119 |
120 | // 发送请求参数
121 | out.print(params);
122 |
123 |
124 |
125 | // flush输出流的缓冲
126 | out.flush();
127 |
128 |
129 | in= conn.getInputStream();
130 | byte[] bytes = new byte[1024];
131 | int len = 0;
132 | try{
133 | if(in.available()>0){
134 | while((len=in.read(bytes))!=-1){
135 | String str = new String(bytes,0,len);
136 | Log.i("main",str);
137 | }
138 | }
139 | }catch(Exception e){
140 |
141 | }
142 |
143 |
144 | // 定义BufferedReader输入流来读取URL的响应
145 | //in = new BufferedReader(
146 | //new InputStreamReader(conn.getInputStream()));
147 | //String line;
148 | //while ((line = in.readLine()) != null) {
149 | //Log.i("main","访问");
150 | //}
151 | }
152 | catch (Exception e)
153 | {
154 | System.out.println("发送POST请求出现异常!" + e);
155 | e.printStackTrace();
156 | }
157 | // 使用finally块来关闭输出流、输入流
158 | finally
159 | {
160 | try
161 | {
162 | if (out != null)
163 | {
164 | out.close();
165 | }
166 | if (in != null)
167 | {
168 | in.close();
169 | }
170 | }
171 | catch (IOException ex)
172 | {
173 | ex.printStackTrace();
174 | }
175 | }
176 | return result;
177 | }
178 | }
179 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/HelpActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.Window;
7 | import android.widget.Button;
8 |
9 | public class HelpActivity extends Activity {
10 |
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | requestWindowFeature(Window.FEATURE_NO_TITLE);
14 | setContentView(R.layout.help);
15 | Button title_set_bn=(Button)findViewById(R.id.title_set_bn);
16 | title_set_bn.setOnClickListener(new View.OnClickListener() {
17 | public void onClick(View v) {
18 | finish();
19 | }
20 | });
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/LineActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 |
4 | import android.app.Activity;
5 | import android.app.AlertDialog;
6 | import android.content.DialogInterface;
7 | import android.database.Cursor;
8 | import android.database.sqlite.SQLiteDatabase;
9 | import android.os.Bundle;
10 | import android.view.View;
11 | import android.view.Window;
12 | import android.widget.Button;
13 | import android.widget.ListView;
14 | import android.widget.SimpleAdapter;
15 |
16 | import java.util.ArrayList;
17 | import java.util.HashMap;
18 | import java.util.List;
19 |
20 | public class LineActivity extends Activity {
21 |
22 | private List> data;
23 |
24 | private ListView listView;
25 | private DatabaseHelper dbHelper;
26 | private SQLiteDatabase sdb;
27 | private Cursor cursor;
28 |
29 | protected void onCreate(Bundle savedInstanceState) {
30 | // TODO Auto-generated method stub
31 | super.onCreate(savedInstanceState);
32 | requestWindowFeature(Window.FEATURE_NO_TITLE);
33 | setContentView(R.layout.line);
34 | //
35 | listView = (ListView)this.findViewById(R.id.listview);
36 | data = new ArrayList>();
37 |
38 |
39 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
40 | sdb = dbHelper.getReadableDatabase();
41 | //��Ϣ��ѯ
42 | final Button btn1=(Button)findViewById(R.id.ringagain1);
43 | //���ذ�ť
44 | Button title_set_bn=(Button)findViewById(R.id.title_set_bn);
45 | title_set_bn.setOnClickListener(new View.OnClickListener() {
46 | public void onClick(View v) {
47 | finish();
48 | }
49 | });
50 | btn1.setOnClickListener(new View.OnClickListener() {
51 |
52 | public void onClick(View v) {
53 | final CharSequence[] items =
54 | { "空气温度", "空气湿度","光照","CO2浓度","硫化氢浓度","氨气浓度", "空气风速"};
55 | AlertDialog dlg = new AlertDialog.Builder(LineActivity.this).setTitle("请选择").setItems(items,
56 | new DialogInterface.OnClickListener()
57 | {
58 | public void onClick (DialogInterface dialog , int item ) {
59 | if (item == 0) {
60 | showwendu();
61 | btn1.setText(" 信息查询(历史空气温度信息)");
62 | } else if (item == 1) {
63 | showhumi();
64 | btn1.setText(" 信息查询(历史空气湿度信息)");
65 | } else if (item == 2) {
66 | showlumi();
67 | btn1.setText(" 信息查询(历史光照强度信息)");
68 | } else if (item == 3) {
69 | showco2();
70 | btn1.setText(" 信息查询(历史CO2浓度信息)");
71 | } else if (item == 4) {
72 | shownh3();
73 | btn1.setText(" 信息查询(历史NH3浓度信息)");
74 | } else if (item == 5) {
75 | showh2s();
76 | btn1.setText(" 信息查询(历史H2S浓度信息)");
77 | } else if (item == 6) {
78 | showAirRate();
79 | btn1.setText(" 信息查询(历史风速信息)");
80 | }
81 | }
82 | }).create();
83 | dlg.show();
84 | }
85 | });
86 | }
87 |
88 | private void showwendu()
89 | {
90 | data.clear();
91 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
92 | sdb = dbHelper.getReadableDatabase();
93 | cursor=sdb.rawQuery("select * from temp order by time desc", null);
94 | while(cursor.moveToNext())
95 | {
96 | String id = cursor.getString(cursor.getColumnIndex("id"));
97 | String Temp = cursor.getString(cursor.getColumnIndex("Temp"));
98 | String time = cursor.getString(cursor.getColumnIndex("time"));
99 | HashMap map = new HashMap();
100 | map.put("id", id);
101 | map.put("Temp", Temp);
102 | map.put("time", time);
103 | data.add(map);
104 | }
105 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
106 | new String[]{ "id", "Temp", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
107 | listView.setAdapter(simpleAdapter);
108 | }
109 | private void showhumi()
110 | {
111 | data.clear();
112 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
113 | sdb = dbHelper.getReadableDatabase();
114 | cursor=sdb.rawQuery("select * from humi order by time desc", null);
115 | while(cursor.moveToNext())
116 | {
117 | String id = cursor.getString(cursor.getColumnIndex("id"));
118 | String Temp = cursor.getString(cursor.getColumnIndex("Humi"));
119 | String time = cursor.getString(cursor.getColumnIndex("time"));
120 |
121 | HashMap map = new HashMap();
122 | map.put("id", id);
123 | map.put("Humi", Temp);
124 | map.put("time", time);
125 | data.add(map);
126 | }
127 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
128 | new String[]{ "id", "Humi", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
129 | listView.setAdapter(simpleAdapter);
130 | }
131 | private void showlumi()
132 | {
133 | data.clear();
134 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
135 | sdb = dbHelper.getReadableDatabase();
136 | cursor=sdb.rawQuery("select * from lumi order by time desc", null);
137 | while(cursor.moveToNext())
138 | {
139 | String id = cursor.getString(cursor.getColumnIndex("id"));
140 | String Temp = cursor.getString(cursor.getColumnIndex("Lumi"));
141 | String time = cursor.getString(cursor.getColumnIndex("time"));
142 |
143 | HashMap map = new HashMap();
144 | map.put("id", id);
145 | map.put("Lumi", Temp);
146 | map.put("time", time);
147 | data.add(map);
148 | }
149 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
150 | new String[]{ "id", "Lumi", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
151 | listView.setAdapter(simpleAdapter);
152 | }
153 | private void showco2()
154 | {
155 | data.clear();
156 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
157 | sdb = dbHelper.getReadableDatabase();
158 | cursor=sdb.rawQuery("select * from co2 order by time desc", null);
159 | while(cursor.moveToNext())
160 | {
161 | String id = cursor.getString(cursor.getColumnIndex("id"));
162 | String Temp = cursor.getString(cursor.getColumnIndex("Co2"));
163 | String time = cursor.getString(cursor.getColumnIndex("time"));
164 | HashMap map = new HashMap();
165 | map.put("id", id);
166 | map.put("Co2", Temp);
167 | map.put("time", time);
168 | data.add(map);
169 | }
170 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
171 | new String[]{ "id", "Co2", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
172 | listView.setAdapter(simpleAdapter);
173 | }
174 | private void shownh3()
175 | {
176 | data.clear();
177 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
178 | sdb = dbHelper.getReadableDatabase();
179 | cursor=sdb.rawQuery("select * from NH3 order by time desc", null);
180 | while(cursor.moveToNext())
181 | {
182 | String id = cursor.getString(cursor.getColumnIndex("id"));
183 | String Temp = cursor.getString(cursor.getColumnIndex("NH3"));
184 | String time = cursor.getString(cursor.getColumnIndex("time"));
185 | HashMap map = new HashMap();
186 | map.put("id", id);
187 | map.put("NH3", Temp);
188 | map.put("time", time);
189 | data.add(map);
190 | }
191 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
192 | new String[]{ "id", "NH3", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
193 | listView.setAdapter(simpleAdapter);
194 | }
195 | private void showh2s()
196 | {
197 | data.clear();
198 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
199 | sdb = dbHelper.getReadableDatabase();
200 | cursor=sdb.rawQuery("select * from H2S order by time desc", null);
201 | while(cursor.moveToNext())
202 | {
203 | String id = cursor.getString(cursor.getColumnIndex("id"));
204 | String Temp = cursor.getString(cursor.getColumnIndex("H2S"));
205 | String time = cursor.getString(cursor.getColumnIndex("time"));
206 |
207 | HashMap map = new HashMap();
208 | map.put("id", id);
209 | map.put("H2S", Temp);
210 | map.put("time", time);
211 | data.add(map);
212 | }
213 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
214 | new String[]{ "id", "H2S", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
215 | listView.setAdapter(simpleAdapter);
216 | }
217 | private void showAirRate()
218 | {
219 | data.clear();
220 | dbHelper=new DatabaseHelper(LineActivity.this,"information");
221 | sdb = dbHelper.getReadableDatabase();
222 | cursor=sdb.rawQuery("select * from AirRate order by time desc", null);
223 | while(cursor.moveToNext())
224 | {
225 | String id = cursor.getString(cursor.getColumnIndex("id"));
226 | String Temp = cursor.getString(cursor.getColumnIndex("AirRate"));
227 | String time = cursor.getString(cursor.getColumnIndex("time"));
228 |
229 | HashMap map = new HashMap();
230 | map.put("id", id);
231 | map.put("AirRate", Temp);
232 | map.put("time", time);
233 | data.add(map);
234 | }
235 | SimpleAdapter simpleAdapter = new SimpleAdapter(LineActivity.this, data, R.layout.list_row,
236 | new String[]{ "id", "AirRate", "time" } , new int[]{ R.id.dataid, R.id.datatemp, R.id.datatime});
237 | listView.setAdapter(simpleAdapter);
238 | }
239 | }
240 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/LineChart.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.content.Context;
4 | import android.content.res.TypedArray;
5 | import android.graphics.Canvas;
6 | import android.graphics.Color;
7 | import android.graphics.Paint;
8 | import android.graphics.Path;
9 | import android.util.AttributeSet;
10 | import android.util.TypedValue;
11 | import android.view.View;
12 |
13 | import java.util.List;
14 |
15 | /**
16 | * Created by kn on 2016/11/1.
17 | *
18 | * 折线图
19 | */
20 | public class LineChart extends View {
21 |
22 | private int mWidth, mHeight;//View 的宽和高
23 |
24 | private float mFontSize = 12;//字体的大小
25 | private float mStrokeWidth = 1.5f;//线条的宽度
26 | private float mPointRadius = 2;//点的半径
27 | private int mDateTextColor = Color.parseColor("#cfcfcf");//日期字体颜色
28 | private int mDarkColor = Color.parseColor("#5b7fdf");//点、线的颜色(深色)
29 | private int mLightColor = Color.parseColor("#d5d8f7");//点、线的颜色(浅色)
30 | private int mShapeColor = Color.parseColor("#f3f6fd");//阴影的颜色
31 |
32 | private String[] mXItems;//X轴的文字
33 | private float[] mPoints;//点的数组,-1表示该日还没到
34 | private int mLength = 7;//最大比例
35 |
36 | private Paint mDatePaint = new Paint();//日期画笔
37 | private Paint mPointPaint = new Paint();//点画笔
38 | private Paint mLinePaint = new Paint();//线条画笔
39 | private Paint mShapePaint = new Paint();//阴影部分画笔
40 |
41 | private float max =13;
42 | private Context mContext;
43 |
44 | public LineChart(Context context) {
45 | this(context, null);
46 | }
47 |
48 | public LineChart(Context context, AttributeSet attrs) {
49 | this(context, attrs, 0);
50 | }
51 |
52 | public LineChart(Context context, AttributeSet attrs, int defStyleAttr) {
53 | super(context, attrs, defStyleAttr);
54 | mContext = context;
55 | TypedArray typedArray = mContext.getTheme().obtainStyledAttributes(attrs, R.styleable.LineChart, 0, 0);
56 | try {
57 | mDateTextColor = typedArray.getColor(R.styleable.LineChart_DateTextColor, mDateTextColor);
58 | mDarkColor = typedArray.getColor(R.styleable.LineChart_DarkColor, mDarkColor);
59 | mLightColor = typedArray.getColor(R.styleable.LineChart_LightColor, mLightColor);
60 | mShapeColor = typedArray.getColor(R.styleable.LineChart_ShapeColor, mShapeColor);
61 | mFontSize = typedArray.getDimensionPixelSize(R.styleable.LineChart_FontSize,
62 | (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, mFontSize, mContext.getResources().getDisplayMetrics()));
63 | mStrokeWidth = typedArray.getDimensionPixelSize(R.styleable.LineChart_StrokeWidth,
64 | (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, mStrokeWidth, mContext.getResources().getDisplayMetrics()));
65 | mPointRadius = typedArray.getDimensionPixelSize(R.styleable.LineChart_PointRadius,
66 | (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, mPointRadius, mContext.getResources().getDisplayMetrics()));
67 | } finally {
68 | typedArray.recycle();
69 | }
70 |
71 | initPaint();
72 | }
73 |
74 | private void initPaint() {
75 | //日期画笔
76 | mDatePaint.setTextSize(mFontSize);
77 | mDatePaint.setColor(mDateTextColor);
78 | //点画笔
79 | mPointPaint.setTextSize(mFontSize);
80 | mPointPaint.setColor(mDarkColor);
81 | //线画笔
82 | mLinePaint.setAntiAlias(true);
83 | mLinePaint.setStrokeWidth(mStrokeWidth);//设置线条宽度
84 | mLinePaint.setStyle(Paint.Style.FILL);
85 | mLinePaint.setColor(mDarkColor);
86 | //阴影部分画笔
87 | mShapePaint.setAntiAlias(true);
88 | mShapePaint.setStyle(Paint.Style.FILL);
89 | mShapePaint.setColor(mShapeColor);
90 | }
91 |
92 | @Override
93 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
94 | int widthMode = MeasureSpec.getMode(widthMeasureSpec);
95 | int heightMode = MeasureSpec.getMode(heightMeasureSpec);
96 | int widthSize = MeasureSpec.getSize(widthMeasureSpec);
97 | int heightSize = MeasureSpec.getSize(heightMeasureSpec);
98 | mWidth = widthSize;
99 | mHeight = heightSize;
100 | if (heightMode == MeasureSpec.AT_MOST) {
101 | mHeight = mWidth / 7 * 7;
102 | }
103 | setMeasuredDimension(mWidth, mHeight);
104 | }
105 |
106 | @Override
107 | protected void onDraw(Canvas canvas) {
108 |
109 | if (mXItems == null) {
110 | mXItems = new String[]{"1", "2", "3", "4", "5", "6", "7"};
111 | mPoints = new float[]{0, -1, -1, -1, -1, -1, -1};
112 | mLength = mXItems.length;
113 | }
114 |
115 | //最大比例
116 | for (int i = 0; i < mLength; i++) {
117 | if (mPoints[i] > max) {
118 | max = mPoints[i];
119 | }
120 | }
121 | //原点坐标
122 | int xOrigin = (int) (0.25 * mWidth / mLength);
123 | int yOrigin = (int) (mHeight - 3 * mFontSize);
124 | // X轴
125 | canvas.drawLine(xOrigin, yOrigin, mWidth - xOrigin, yOrigin, mLinePaint);
126 | Path xpath = new Path();
127 | xpath.moveTo(mWidth - xOrigin - mFontSize / 3, yOrigin + mFontSize / 3);
128 | xpath.lineTo(mWidth - xOrigin, yOrigin);
129 | xpath.lineTo(mWidth - xOrigin - mFontSize / 3, yOrigin - mFontSize / 3);
130 | xpath.close();
131 | canvas.drawPath(xpath, mLinePaint);
132 | // Y轴
133 | canvas.drawLine(xOrigin, yOrigin, xOrigin, mFontSize, mLinePaint);
134 | Path ypath = new Path();
135 | ypath.moveTo(xOrigin - mFontSize / 3, mFontSize + mFontSize / 3);
136 | ypath.lineTo(xOrigin, mFontSize);
137 | ypath.lineTo(xOrigin + mFontSize / 3, mFontSize + mFontSize / 3);
138 | ypath.close();
139 | canvas.drawPath(ypath, mLinePaint);
140 |
141 |
142 | int[] xPoints = new int[mLength];//x轴的刻度集合
143 | int[] yPoints = new int[mLength];//y轴的刻度集合
144 |
145 | for (int i = 0; i < mLength; i++) {
146 | //获取点的坐标
147 | xPoints[i] = (int) ((i + 0.5) * (mWidth / mLength));
148 | yPoints[i] = (int) ((max - (mPoints[i] == -1 ? 0 : mPoints[i])) * ((mHeight - 6 * mFontSize) / max));
149 |
150 | if (i > 0) {
151 | //画一个实心梯形,阴影部分
152 | Path path = new Path();
153 | path.moveTo(xPoints[i - 1], yOrigin - mStrokeWidth);
154 | path.lineTo(xPoints[i - 1], yPoints[i - 1] + 3 * mFontSize - mStrokeWidth);
155 | path.lineTo(xPoints[i], yPoints[i] + 3 * mFontSize - mStrokeWidth);
156 | path.lineTo(xPoints[i], yOrigin - mStrokeWidth);
157 | path.close();
158 | canvas.drawPath(path, mShapePaint);
159 | }
160 | //画出日期
161 | canvas.drawText(mXItems[i], (int) ((i + 0.5) * mWidth / mLength) - mFontSize / 2, mHeight - mFontSize, mDatePaint);
162 | }
163 |
164 | for (int i = 0; i < mLength; i++) {
165 | if (mPoints[i] == -1) {
166 | mLinePaint.setColor(mLightColor);
167 | mPointPaint.setColor(mLightColor);
168 | } else {
169 | mLinePaint.setColor(mDarkColor);
170 | mPointPaint.setColor(mDarkColor);
171 | }
172 | if (i > 0) {
173 | //画连线
174 | canvas.drawLine(xPoints[i - 1], yPoints[i - 1] + 3 * mFontSize, xPoints[i], yPoints[i] + 3 * mFontSize, mLinePaint);
175 | }
176 | //画点的数值
177 | canvas.drawText(String.valueOf(mPoints[i]).equals("-1") ? " " : String.valueOf(mPoints[i]), xPoints[i] - mFontSize / 2, yPoints[i] + 2 * mFontSize, mPointPaint);
178 | }
179 |
180 | for (int i = 0; i < mLength; i++) {
181 | if (mPoints[i] == -1) {
182 | mLinePaint.setColor(mLightColor);
183 | mPointPaint.setColor(mLightColor);
184 | } else {
185 | mLinePaint.setColor(mDarkColor);
186 | mPointPaint.setColor(mDarkColor);
187 | }
188 | //画点
189 | if (!(yOrigin ==( 3 * mFontSize + yPoints[i])))
190 | canvas.drawCircle(xPoints[i], yPoints[i] + 3 * mFontSize, mPointRadius, mPointPaint);
191 | }
192 | }
193 |
194 | public void setData(List dataList) {
195 | mLength = dataList.size();
196 | if (mLength > 0) {
197 | mXItems = new String[mLength];
198 | mPoints = new float[mLength];
199 | for (int i = 0; i < mLength; i++) {
200 | mPoints[i] = Float.parseFloat(String.valueOf(dataList.get(i).getPoint()));
201 | mXItems[i] = dataList.get(i).getItem();
202 | }
203 | }
204 | invalidate();
205 | }
206 | }
207 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/LineChartData.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | /**
4 | * Created by kn on 2016/11/5.
5 | */
6 | public class LineChartData {
7 |
8 | private float point;
9 | private String item;
10 |
11 | public float getPoint() {
12 | return point;
13 | }
14 |
15 | public void setPoint(float point) {
16 | this.point = point;
17 | }
18 |
19 | public String getItem() {
20 | return item;
21 | }
22 |
23 | public void setItem(String item) {
24 | this.item = item;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/LineChartDataInt.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | /**
4 | * Created by FR on 2017/7/13.
5 | */
6 | public class LineChartDataInt {
7 | private int point;
8 | private String item;
9 |
10 | public int getPoint() {
11 | return point;
12 | }
13 |
14 | public void setPoint(int point) {
15 | this.point = point;
16 | }
17 |
18 | public String getItem() {
19 | return item;
20 | }
21 |
22 | public void setItem(String item) {
23 | this.item = item;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/Login.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.content.ContentValues;
4 | import android.content.Context;
5 | import android.content.Intent;
6 | import android.content.SharedPreferences;
7 | import android.database.sqlite.SQLiteDatabase;
8 | import android.os.Bundle;
9 | import android.support.v7.app.AppCompatActivity;
10 | import android.text.TextUtils;
11 | import android.view.View;
12 | import android.widget.Button;
13 | import android.widget.CheckBox;
14 | import android.widget.CompoundButton;
15 | import android.widget.EditText;
16 | import android.widget.Toast;
17 |
18 | /**
19 | * Created by FR on 2017/5/3.
20 | */
21 | public class Login extends AppCompatActivity {
22 |
23 | private Button login;
24 | private Button quit;
25 | private EditText UserName,PassWord;
26 | private String mResponse;
27 | private CheckBox checkbox1;
28 | private SharedPreferences sp;
29 | private String service_LoginMessage;
30 | private String username;
31 | public static String admin;
32 | private PrivilegeHelper dbHelper;
33 | private SQLiteDatabase db;
34 | private ContentValues values;
35 | private String str;
36 | private String[] strs;
37 |
38 | // public String getService_LoginMessage() {
39 | // return service_LoginMessage;
40 | //}
41 | //public void setService_LoginMessage(String service_LoginMessage) {
42 | // this.service_LoginMessage = service_LoginMessage;
43 | // }
44 | // public static final int CREATE_V = 1;
45 |
46 | // private Handler handler = new Handler(){
47 | // public void handlerMessage(Message msg){
48 | // switch (msg.what){
49 | // case CREATE_V:
50 | // String un = strs[2];
51 | // values.put("user",un);
52 | // values.put("privilege",str);
53 | // db.insert("privilege_table",null,values);
54 | // values.clear();
55 | // Toast.makeText(Login.this,un+"weisha",Toast.LENGTH_SHORT).show();
56 | // break;
57 | // default:
58 | // break;
59 | // }
60 | // }
61 | // };
62 |
63 | public void onCreate(Bundle savedInstanceState) {
64 | super.onCreate(savedInstanceState);
65 | setContentView(R.layout.login);
66 | login = (Button) findViewById(R.id.login_btn_login);
67 |
68 | login.setOnClickListener(new View.OnClickListener() {
69 | @Override
70 | public void onClick(View v) {
71 | Intent intent = new Intent();
72 | intent.setClass(Login.this,MainActivity.class);
73 | startActivity(intent);
74 | Login.this.finish();
75 |
76 | }
77 | });
78 | // this.setTitle("白马基地温室智能管理");
79 | // // sp = this.getSharedPreferences("userInfo", Context.MODE_PRIVATE);
80 | // login = (Button) findViewById(R.id.login_btn_login);
81 | // UserName = (EditText) findViewById(R.id.login_edit_account);
82 | // PassWord = (EditText) findViewById(R.id.login_edit_pwd);
83 | // checkbox1 = (CheckBox) findViewById(R.id.login_cb_savepwd);
84 | // quit = (Button) findViewById(R.id.login_btn_quit);
85 | // if (sp.getBoolean("ISCHECK", true)) {
86 | //记录密码的状态
87 | // checkbox1.setChecked(true);
88 | // UserName.setText(sp.getString("USER_NAME", ""));
89 | // PassWord.setText(sp.getString("PASSWORD", ""));
90 |
91 | // if (sp.getBoolean("AUTO_ISCHECK", true)) {
92 | // //设置界面为自动登陆
93 | // //
94 | // checkbox1.setChecked(true);
95 | // String a = UserName.getText().toString();
96 | // String b = PassWord.getText().toString();
97 | // }
98 | // quit.setOnClickListener(new MyListener2());
99 | // checkbox1.setOnCheckedChangeListener(new MyListener3());
100 | // }
101 | // dbHelper = new PrivilegeHelper(this,"Privilege.db",null,1);
102 | // db = dbHelper.getWritableDatabase();
103 | // values = new ContentValues();
104 | // }
105 |
106 |
107 |
108 | //public void click(View view){
109 | // SharedPreferences.Editor editor=sp.edit();
110 | // final String username=UserName.getText().toString().trim();
111 | //final String password=PassWord.getText().toString().trim();
112 | // if(checkbox1.isChecked()){
113 | // editor.putString("USER_NAME", username);
114 | // editor.putString("PASSWORD", password);
115 | // editor.commit();
116 | // }
117 | //
118 | // final String sendMessage="login"+"@"+UserName.getText()+"@"+PassWord.getText();//login@OK@username@password+"@"
119 |
120 | // Toast.makeText(Login.this, "正在连接服务器", Toast.LENGTH_SHORT ).show();
121 | // if(TextUtils.isEmpty(username)|| TextUtils.isEmpty(password)){
122 | // Toast.makeText(Login.this,"用户名和密码不能为空", Toast.LENGTH_SHORT).show();
123 | // }
124 | // else{
125 | // new Thread(){
126 | // public void run(){
127 | // final String result=GetPostUtil.sendPost("http://192.168.43.222:8888/myApps",sendMessage);
128 | // final String result=send_ToService.send_Message(sendMessage);
129 | // if(result!=null){
130 | // runOnUiThread(new Runnable(){
131 | // @Override
132 | // public void run() {
133 | // Toast.makeText(Login.this, result, Toast.LENGTH_LONG).show();
134 | // setService_LoginMessage(result);
135 | // check_Login();
136 | // }
137 |
138 | // });
139 | // }else{
140 | // runOnUiThread(new Runnable(){
141 | // @Override
142 | // public void run() {
143 | // Toast.makeText(Login.this, "服务器连接超时,用户请求失败", Toast.LENGTH_LONG).show();
144 | // Intent intent = new Intent();
145 | // intent.putExtra("str", "NO");
146 | // intent.setClass(Login.this,MainActivity.class);
147 | // startActivity(intent);
148 | // Login.this.finish();
149 | // }
150 | // });
151 | // }
152 | // };
153 | // }.start();
154 | //}
155 |
156 | // }
157 |
158 | // public void check_Login(){
159 | // //str=getService_LoginMessage();//login@OK@username@password
160 | // strs=str.split("@");
161 | // //数据库操作
162 | // String enter=strs[1];
163 | // String un = strs[2];
164 | // values.put("user",un);
165 | // values.put("privilege",str);
166 | // db.insert("privilege_table",null,values);
167 | // values.clear();
168 | // new Thread(new Runnable() {
169 | // @Override
170 | // public void run() {
171 | // Message message = new Message();
172 | // message.what = CREATE_V;
173 | // handler.sendMessage(message);
174 | // }
175 | // }).start();
176 |
177 | // if("OK".equals(enter)){
178 | // Toast.makeText(Login.this,un+ "登录成功", Toast.LENGTH_SHORT).show();;
179 | // username=strs[2];
180 | // Intent intent=new Intent();
181 | // intent.putExtra("str", str);
182 | // intent.setClass(Login.this,MainActivity.class);
183 | // startActivity(intent);
184 | // }else{
185 | // Toast.makeText(Login.this, "您输入的用户名或密码有误,请重新输入", Toast.LENGTH_LONG).show();
186 | // }
187 | //}
188 |
189 | //class MyListener2 implements View.OnClickListener {
190 | //@Override
191 | // public void onClick(View v) {
192 | // Login.this.finish();
193 | // }
194 |
195 | }
196 | // class MyListener3 implements CompoundButton.OnCheckedChangeListener {
197 | //
198 | // @Override
199 | // public void onCheckedChanged(CompoundButton buttonView,
200 | // boolean isChecked) {
201 | // if(checkbox1.isChecked()){
202 | // sp.edit().putBoolean("ISCHECK", true).commit();
203 | // }else {
204 | // sp.edit().putBoolean("ISCHECK", false).commit();
205 | // }
206 | //
207 | // }
208 | // }
209 | }
210 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/MyActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.os.Handler;
7 | import android.view.Window;
8 | import android.view.WindowManager;
9 |
10 | public class MyActivity extends Activity {
11 |
12 | private final int SPLASH_DISPLAY_LENGHT = 4000; // �ӳ�4��
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | requestWindowFeature(Window.FEATURE_NO_TITLE);
17 | getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,
18 | WindowManager.LayoutParams. FLAG_FULLSCREEN);
19 | setContentView(R.layout.acitvity_layout);
20 |
21 | new Handler().postDelayed(new Runnable() {
22 | public void run() {
23 | Intent mainIntent = new Intent(MyActivity.this,Login.class);
24 | MyActivity.this.startActivity(mainIntent);
25 | overridePendingTransition(R.anim.zoommin, R.anim.zoomout);
26 | MyActivity.this.finish();
27 | }
28 | }, SPLASH_DISPLAY_LENGHT);
29 |
30 | }
31 | }
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/PrivilegeHelper.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import android.content.Context;
4 | import android.database.sqlite.SQLiteDatabase;
5 | import android.database.sqlite.SQLiteOpenHelper;
6 | import android.widget.Toast;
7 |
8 | /**
9 | * Created by Administrator on 2017/9/27 0027.
10 | */
11 |
12 | public class PrivilegeHelper extends SQLiteOpenHelper {
13 | public static final int VERSION = 1;
14 | private Context mContext;
15 |
16 | public PrivilegeHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
17 | super(context, name, factory, version);
18 | mContext = context;
19 | }
20 |
21 |
22 |
23 | @Override
24 | public void onCreate(SQLiteDatabase db) {
25 | String sql = "create table privilege_table(id integer primary key autoincrement,user varchar(40),privilege text)";
26 | db.execSQL(sql);
27 | // Toast.makeText(mContext,"数据库创建成功",Toast.LENGTH_LONG).show();
28 | }
29 |
30 | @Override
31 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
32 |
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/fr/baimajidi/send_ToService.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import java.io.ByteArrayOutputStream;
4 | import java.io.IOException;
5 | import java.io.InputStream;
6 | import java.io.OutputStream;
7 | import java.net.HttpURLConnection;
8 | import java.net.URL;
9 |
10 |
11 | public class send_ToService {
12 |
13 | public static String send_Message(String str){
14 | // String path="http://192.168.43.134:8888/myApps";
15 | // String path="http://192.168.127.200:8888/myApps";
16 | String path="http://121.196.198.106:8888/myApps";
17 | // String path="http://172.20.10.2:8888/myApps";
18 | // String path="http://192.168.43.232:8888/myApps";
19 | // String path="http://192.168.43.222:8888/myApps";
20 | try {
21 | URL url =new URL(path);
22 | HttpURLConnection urlConn=(HttpURLConnection) url.openConnection();
23 | urlConn.setConnectTimeout(5000);
24 | urlConn.setDoOutput(true);
25 | urlConn.setDoInput(true);
26 | urlConn.setRequestMethod("GET");
27 |
28 | urlConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
29 | //测试包内容�����
30 | String teststr=str;
31 | OutputStream out =urlConn.getOutputStream();
32 | out.write(teststr.getBytes());
33 | out.flush();
34 | while(urlConn.getContentLength()!=-1){
35 | int code=urlConn.getResponseCode();
36 | if(code==200) //http状态返回码 为200,表示请求成功
37 | {
38 | //请求成功
39 | InputStream is=urlConn.getInputStream();
40 | String text=readInputStream(is);
41 |
42 | is.close();
43 | urlConn.disconnect();
44 | return text;
45 | }else
46 | {
47 | return null;
48 | }
49 | }
50 |
51 | } catch (Exception e) {
52 | e.printStackTrace();
53 | }
54 | return null;
55 |
56 | }
57 |
58 |
59 | public static String readInputStream(InputStream is)
60 | {
61 | try {
62 | ByteArrayOutputStream baos=new ByteArrayOutputStream();//声明缓冲区
63 | int len=0;
64 | byte []buffer =new byte[1024];// 定义读取默认长度
65 | if((len=is.read(buffer))!=-1)
66 | {
67 | baos.write(buffer,0,len);// 把缓冲区中输出到内存中
68 | }
69 | is.close();
70 | baos.close();
71 | byte[]result=baos.toByteArray(); // 返回这个输出流的字节数组
72 | String temp=new String(result);
73 | return temp;
74 | } catch (IOException e) {
75 | // TODO Auto-generated catch block
76 | e.printStackTrace();
77 | return("服务器信息获取失败");
78 | }
79 | }
80 |
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_left_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_left_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_right_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/push_right_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/zoommin.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/zoomout.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
14 |
15 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/a1.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/a2.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/a3.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/a4.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/add.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/agriculture1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/agriculture1.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/agriculture2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/agriculture2.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/agriculture3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/agriculture3.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/agriculture4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/agriculture4.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/anqi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/anqi.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/app_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/app_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/background.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/background2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/background2.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bangzhu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bangzhu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_cam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_cam.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_cam_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_cam_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_cam_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_home.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_home_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_home_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_home_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_select_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_select_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_shopping.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_shopping_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_shopping_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_shopping_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_show.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_show.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_show_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_show_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/bottom_show_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_style_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_check_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/btn_check_off.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_check_off_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/btn_check_off_pressed.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_check_off_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/btn_check_off_selected.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_check_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/btn_check_on.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_check_on_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/btn_check_on_pressed.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_check_on_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/btn_check_on_selected.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/button3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/button3.gif
--------------------------------------------------------------------------------
/app/src/main/res/drawable/click_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/click_background.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/clock_list.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/clock_list.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/clock_list_dddd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/clock_list_dddd.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cloud.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/cloud.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/contact.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/contact2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/contact2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/contact_select_list_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/contacts.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/contacts.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/control.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/control.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/control2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/control2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/controlbackground1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/controlbackground1.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/decrease.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/decrease.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/default_pic_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/default_pic_1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/default_pic_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/default_pic_2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/default_pic_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/default_pic_3.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/default_pic_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/default_pic_4.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/donghuaji.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/donghuaji.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/edit_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | xmlns:android="http://schemas.android.com/apk/res/android">
4 | -
5 |
8 |
10 |
13 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/eryanghuatan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/eryanghuatan.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/faceback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/faceback.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/fengsu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/fengsu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/fengxiang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/fengxiang.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gongneng.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/gongneng.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/guangzhao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/guangzhao.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/guanyu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/guanyu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_bottom_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_img_ratio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/home_img_ratio.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_img_ratio_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/home_img_ratio_selected.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_img_ratio_selected1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/home_img_ratio_selected1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_index_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/home_index_arrow.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_index_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/home_index_btn.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_index_btn_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/home_index_btn_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_regist_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_select_list_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home_user_login_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/index_browse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/index_browse.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/input_over.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/input_over.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/jiancha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/jiancha.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/jiangyu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/jiangyu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/jiangyu2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/jiangyu2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/jijian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/jijian.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login_back.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/login_back.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/login_btn.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login_btn_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/login_btn_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login_head.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login_input.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/login_input.9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/loginpic1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/loginpic1.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/logo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/logo2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/njau2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/njau2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/njau3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/njau3.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/paint1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/paint1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/paint2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/paint2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pm25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/pm25.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/qq_btn_check.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/qq_edit_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/queding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/queding.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ratio_img_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/register_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/register_btn.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/register_btn_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/register_btn_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/returned.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/returned.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/returned_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/returned_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/school.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/school.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/school2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/school2.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/school3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/school3.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/set_bn_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/set_title_btn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_gradient1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_gradient2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_gradient3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shape_rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shidu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/shidu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shiwai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/shiwai.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/soil.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/soil.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/sun.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/temp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/temp.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/top_bar_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/top_bar_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/top_bar_bg1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/top_bar_bg1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/top_bar_set_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/top_bar_set_btn.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/top_bar_set_btn_d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/top_bar_set_btn_d.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/video1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/video1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/video2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/video2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/video_btn1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/video_btn1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/xinxichaxun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/xinxichaxun.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/zhinengwenshi.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/zhinengwenshi.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/zhinengwenshi4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/zhinengwenshi4.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/zhinengwenshixin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/zhinengwenshixin.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/zidongkongzhi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/drawable/zidongkongzhi.png
--------------------------------------------------------------------------------
/app/src/main/res/layout/about.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
15 |
16 |
17 |
22 |
23 |
24 |
25 | "
26 |
27 |
28 |
29 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/about_foot_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
20 |
21 |
22 |
28 |
29 |
36 |
37 |
38 |
44 |
45 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/about_select_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
19 |
20 |
21 |
26 |
27 |
33 |
34 |
35 |
44 |
45 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/about_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/acitvity_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/autocmd_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/autocmd_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/chart_listview_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/chart_select_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/chart_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/contact_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
29 |
30 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/contact_select_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
26 |
27 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
71 |
72 |
84 |
85 |
92 |
93 |
94 |
100 |
101 |
113 |
114 |
121 |
122 |
123 |
129 |
130 |
142 |
143 |
150 |
151 |
152 |
158 |
159 |
170 |
171 |
172 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/contact_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/control_chart_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
19 |
20 | />
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/control_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/curve_curveview_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/curve_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
19 |
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 |
32 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/curve_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/function.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/function_select_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
19 |
20 |
21 |
30 |
31 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/function_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/help.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/help_select_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
19 |
20 |
21 |
30 |
31 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/help_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/home_bottom_menu_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
14 |
19 |
20 |
21 |
29 |
30 |
39 |
40 |
49 |
50 |
58 |
59 |
68 |
69 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/home_data_bar.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/home_footbar_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
17 |
18 |
24 |
25 |
36 |
37 |
38 |
47 |
48 |
54 |
55 |
66 |
67 |
68 |
77 |
78 |
84 |
85 |
96 |
97 |
98 |
107 |
108 |
114 |
115 |
126 |
127 |
128 |
137 |
138 |
144 |
145 |
155 |
156 |
157 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/home_ratio_img.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
23 |
24 |
31 |
32 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/home_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/home_user_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
17 |
18 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/line.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
15 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/list_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
19 |
25 |
26 |
34 |
35 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/login.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
21 |
22 |
30 |
31 |
41 |
42 |
47 |
48 |
64 |
65 |
78 |
79 |
93 |
94 |
106 |
107 |
118 |
119 |
130 |
131 |
141 |
142 |
143 |
144 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
26 |
27 |
28 |
29 |
30 |
31 |
39 |
40 |
43 |
44 |
48 |
49 |
53 |
54 |
58 |
59 |
60 |
64 |
65 |
69 |
70 |
71 |
75 |
76 |
80 |
81 |
82 |
86 |
87 |
91 |
92 |
93 |
94 |
99 |
100 |
103 |
104 |
105 |
106 |
110 |
111 |
112 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/values/bottom_menu_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | #ff000000
20 | #ffffffff
21 | #ffcccccc
22 | #ff404040
23 | #c0ffff00
24 | #ffffffff
25 | #ffc0c0c0
26 | #c000ff00
27 | #ffffffff
28 | #b0000000
29 | #ff808080
30 | #ffffffff
31 | #fffff0e0
32 | #ffffffff
33 | #ff000000
34 | #ff4b4b4b
35 | #ff000000
36 | #ffffffff
37 | #50000000
38 | #ffffffff
39 | #ff000000
40 | #ffff0000
41 | #60000000
42 | #FF0000
43 | #000000
44 | #FFFFFF
45 | #00FF00
46 | #00000000
47 | #808080
48 | #0000ff
49 |
50 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello World, TestUIActivity!
5 | 温室智能管理
6 | 用户登录
7 | 主页
8 | 视频监控
9 | 历史曲线
10 | 机构控制
11 | 联系我们
12 | 登录
13 | 注册
14 | 温度/Temperature
15 | 实时温度信息
16 | 湿度/Humidity
17 | 空气湿度
18 | 二氧化碳浓度/CO2
19 | 空气中CO2浓度
20 | 光照强度/Light Intensity
21 | 当前光照强度
22 | 综合信息查询/Search
23 | 查询温室历史参数
24 | 扫一扫/SCAN
25 | 二维码扫描
26 | 风机控制
27 | 控制风机的开关状态
28 | 湿帘控制
29 | 控制湿帘的状态
30 | 热泵控制
31 | 温室内的温度调节
32 | 内外遮幕控制
33 | 控制温室的光照强度
34 | 自动切换
35 | 切换控制权
36 | 备用
37 | 备用
38 | 已经是最新版本
39 | 软件更新
40 | 检测到新版本,立即更新吗?
41 | 更新
42 | 稍后更新
43 | 正在更新
44 | 取消
45 | UserName
46 | Password
47 | 帐号
48 | 密码
49 | 记住密码
50 | 登 录
51 | 自动登录
52 | 隐身登录
53 | 静音登录
54 | 开启振动
55 | 接收群消息
56 | 退 出
57 |
58 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
34 |
35 |
43 |
44 |
47 |
48 |
52 |
53 |
57 |
58 |
62 |
63 |
64 |
68 |
69 |
73 |
74 |
75 |
79 |
80 |
84 |
85 |
86 |
90 |
91 |
95 |
96 |
97 |
98 |
103 |
104 |
105 |
106 |
107 |
108 |
112 |
113 |
114 |
115 |
116 |
117 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_select_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
25 |
26 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/video_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/viewflipper_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
17 |
18 |
22 |
23 |
24 |
27 |
28 |
32 |
33 |
34 |
37 |
38 |
42 |
43 |
44 |
47 |
48 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/area_data.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - 单栋温室1
5 | - 单栋温室2
6 | - 单栋温室3
7 | - 连栋温室东区
8 | - 连栋温室西区
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - 0601
5 | - 0601
6 | - 0601
7 | - 0601
8 | - 0601
9 | - 0601
10 | - 0601
11 | - 0601
12 | - 0601
13 | - 0601
14 | - 0601
15 | - 0601
16 | - 0601
17 | - 0601
18 | - 0601
19 | - 0601
20 | - 0601
21 |
22 |
23 | - 一号鸡舍
24 | - 二号鸡舍
25 | - 三号鸡舍
26 | - 四号鸡舍
27 | - 五号鸡舍
28 | - 六号鸡舍
29 | - 七号鸡舍
30 | - 八号鸡舍
31 |
32 |
33 |
34 | - 一号鸡舍
35 | - 二号鸡舍
36 | - 三号鸡舍
37 | - 四号鸡舍
38 | - 五号鸡舍
39 | - 六号鸡舍
40 | - 七号鸡舍
41 | - 八号鸡舍
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/attrs1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values/bottom_menu_style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 | #000000
7 | #FFFFFF
8 | #c2fcf4
9 | #e4e5e9
10 | #5b7fdf
11 | #d5d8f7
12 | #a8a9ad
13 | #cfcfcf
14 | #f3f6fd
15 | #fa267b
16 | #fce4ec
17 | #fff0f5
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Baimajidi
3 |
4 | 用户登录
5 | UserName
6 | Password
7 | 帐号
8 | 密码
9 | 记住密码
10 | 登 录
11 | 自动登录
12 | 退 出
13 |
14 | 舍内环境
15 | 舍外环境
16 | 历史曲线
17 | 机构控制
18 | 联系我们
19 |
20 | 登录
21 | 注册
22 | 温度/Temperature
23 | 实时温度信息
24 | 湿度/Humidity
25 | 空气湿度
26 | 降雨量/Rainfall
27 | 雨水强度
28 | 太阳总辐射/Solar Radiation
29 | 当前太阳辐射
30 | 风向/Wind Direction
31 | 当前风向
32 | 风速/Wind Speed
33 | 当前风速
34 | 综合信息查询/Search
35 | 查询温室历史参数
36 |
37 | 选择区域
38 | 选择房间
39 | PM2.5/Particulate Matter
40 | 当前鸡舍PM2.5含量
41 | 氨气/NH3
42 | 当前鸡舍氨气含量
43 | 二氧化碳/CO2
44 | 当前鸡舍CO2含量
45 |
46 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/test/java/com/example/fr/baimajidi/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.fr.baimajidi;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.1.2'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | ## Project-wide Gradle settings.
2 | #
3 | # For more details on how to configure your build environment visit
4 | # http://www.gradle.org/docs/current/userguide/build_environment.html
5 | #
6 | # Specifies the JVM arguments used for the daemon process.
7 | # The setting is particularly useful for tweaking memory settings.
8 | # Default value: -Xmx1024m -XX:MaxPermSize=256m
9 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10 | #
11 | # When configured, Gradle will run in incubating parallel mode.
12 | # This option should only be used with decoupled projects. More details, visit
13 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
14 | # org.gradle.parallel=true
15 | #Mon Mar 05 20:12:04 CST 2018
16 | #systemProp.http.proxyHost=android-mirror.bugly.qq.com
17 | #systemProp.http.proxyPort=8080
18 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 08 10:54:31 CST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/libs/achartengine-1.1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/libs/achartengine-1.1.0.jar
--------------------------------------------------------------------------------
/libs/achartengine-1.1.0/achartengine-1.1.0-demo-source.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/libs/achartengine-1.1.0/achartengine-1.1.0-demo-source.zip
--------------------------------------------------------------------------------
/libs/achartengine-1.1.0/achartengine-1.1.0-javadocs.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/libs/achartengine-1.1.0/achartengine-1.1.0-javadocs.zip
--------------------------------------------------------------------------------
/libs/achartengine-1.1.0/achartengine-1.1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhx503/jishe/fa2f75abe8e54bb28c9902e8de6d3f27ed642595/libs/achartengine-1.1.0/achartengine-1.1.0.jar
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------