Commit 2046d2c0 authored by Vũ Quốc Trọng's avatar Vũ Quốc Trọng

Initial commit

parents
Pipeline #750 failed with stages

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

*.iml
/.gradle
/.idea
/build
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
# EzvizSDK
[点击查看萤石官网集成文档](https://open.ys7.com/doc/zh/book/4.x/android-sdk.html)
apply plugin: 'com.android.library'
apply from: "../app-common/build_common.gradle"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
minSdkVersion 21
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
assets.srcDirs = ['assets']
}
}
lintOptions {
abortOnError false
}
}
dependencies {
// compileOnly fileTree(dir: COMMON_LIB_PATH, include: ['*.jar'])
api 'com.ezviz.sdk:ezviz-sdk:4.16.1'
// implementation files('..\\ezviz-sdk\\libs\\configwifi.jar')
// if (BUILD_TYPE == "for_config_wifi"){
// compileOnly project(path: ':configwifi')
// }else{
// compileOnly project(path: ':ezviz-sdk')
// }
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
dependencies {
implementation "com.alibaba:arouter-api:$arrouter_api_version"
kapt "com.alibaba:arouter-compiler:$arouter_compiler_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
}
\ No newline at end of file
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="ezviz.ezopensdkcommon">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.READ_LOGS"
tools:ignore="ProtectedPermissions" />
<application
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".configwifi.ManualConnectDeviceHotspotActivity"
android:screenOrientation="portrait"/>
<activity
android:name=".configwifi.ManualInputDeviceHotspotInfoActivity"
android:screenOrientation="portrait" />
<activity
android:name=".configwifi.AutoWifiPrepareStepOneActivity"
android:screenOrientation="portrait" />
<activity
android:name=".configwifi.AutoWifiNetConfigActivity"
android:screenOrientation="portrait" />
<activity
android:name=".configwifi.AutoWifiResetActivity"
android:screenOrientation="portrait" />
<activity
android:name=".configwifi.ManualChooseConfigWifiWayActivity"
android:screenOrientation="portrait" />
<activity
android:name=".configwifi.ConfigWifiExecutingActivity"
android:screenOrientation="portrait" />
</application>
</manifest>
\ No newline at end of file
package com.ezviz.demo.common
import ezviz.ezopensdkcommon.common.BaseApplication
/**
* 此处简要说明此文件用途
* Created by zhuwen6 on 2020/4/12
*/
object FolderPathManager {
fun getOriginStreamFolder(): String {
return "${BaseApplication.mInstance.externalCacheDir}/Streams"
}
}
\ No newline at end of file
package ezviz.ezopensdkcommon.common;
import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import com.alibaba.android.arouter.launcher.ARouter;
import ezviz.ezopensdkcommon.debug.LogFileUtil;
public class BaseApplication extends Application {
public static Application mInstance = null;
@Override
public void onCreate() {
super.onCreate();
mInstance = this;
// 初始化ARouter
ARouter.openDebug();
ARouter.openLog();
ARouter.init(this);
// 初始化日志文件进程
if (isMainProcess()){
LogFileUtil.startSaveLogToFile(getApplicationContext());
}
}
@Override
public void onTerminate() {
super.onTerminate();
if (isMainProcess()){
LogFileUtil.stopSaveLogToFile();
}
}
/**
* 获取当前进程名
*/
private String getCurrentProcessName() {
int pid = android.os.Process.myPid();
String processName = "";
ActivityManager manager = (ActivityManager) getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);
for (ActivityManager.RunningAppProcessInfo process : manager.getRunningAppProcesses()) {
if (process.pid == pid) {
processName = process.processName;
}
}
return processName;
}
/**
* 包名判断是否为主进程
*/
private boolean isMainProcess() {
return getApplicationContext().getPackageName().equals(getCurrentProcessName());
}
public static void restartApp(Context context){
final Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
if (intent != null){
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
context.startActivity(intent);
System.exit(0);
}
}
}
package ezviz.ezopensdkcommon.common;
import android.annotation.TargetApi;
import android.content.Context;
import android.util.AttributeSet;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.CompoundButton;
public class CheckTextButton extends CompoundButton {
private boolean mToggleEnable = true;
public CheckTextButton(Context context) {
this(context, null);
}
public CheckTextButton(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public CheckTextButton(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
@TargetApi(14)
public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
super.onInitializeAccessibilityEvent(event);
event.setClassName(CheckTextButton.class.getName());
}
@Override
@TargetApi(14)
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
super.onInitializeAccessibilityNodeInfo(info);
info.setClassName(CheckTextButton.class.getName());
}
public void setToggleEnable(boolean toggleEnable) {
this.mToggleEnable = toggleEnable;
}
@Override
public void toggle() {
if (mToggleEnable)
super.toggle();
}
}
\ No newline at end of file
package ezviz.ezopensdkcommon.common;
public class Config {
// 日志开关
public static boolean LOGGING = true;
}
package ezviz.ezopensdkcommon.common;
public class IntentConstants {
/**
* 使用配网sdk
*/
public static final String USING_CONFIG_WIFI_SDK = "using_config_wifi_sdk";
/**
* 使用完整sdk
*/
public static final String USING_FULL_EZVIZ_SDK = "using_full_ezviz_sdk";
public static final String EXTRA_SUPPORT_AP= "support_Ap";
public static final String EXTRA_SUPPORT_SMART_CONFIG = "support_Wifi";
public static final String EXTRA_SUPPORT_SOUND_WAVE = "support_sound_wave";
public static final String SELECTED_PRESENTER_TYPE = "selected_presenter_type";
public static final String DEVICE_SERIAL = "SerialNo";
public static final String DEVICE_VERIFY_CODE = "very_code";
public static final String ROUTER_WIFI_PASSWORD = "wifi_password";
public static final String ROUTER_WIFI_SSID = "wifi_ssid";
public static final String DEVICE_HOTSPOT_SSID = "device_hotspot_ssid";
public static final String DEVICE_HOTSPOT_PWD = "device_hotspot_password";
public static final String USE_MANUAL_AP_CONFIG = "USE_MANUAL_AP_CONFIG";
}
package ezviz.ezopensdkcommon.common;
import android.util.Log;
public class LogUtil {
public static void debugLog(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
// com.tencent.mars.xlog.Log.d(tag, content);
Log.i(tag, content);
}
}
public static void errorLog(String tag, String content) {
// error日志直接打印出来,不检查标志位
Log.e(tag, content);
// com.tencent.mars.xlog.Log.e(tag, content);
}
public static void infoLog(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
Log.i(tag, content);
// com.tencent.mars.xlog.Log.i(tag, content);
}
}
public static void verboseLog(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
Log.v(tag, content);
// com.tencent.mars.xlog.Log.v(tag, content);
}
}
public static void warnLog(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
Log.w(tag, content);
// com.tencent.mars.xlog.Log.w(tag, content);
}
}
public static void debugLog(String tag, String content, Exception e) {
//托管给xlog
if (Config.LOGGING) {
Log.d(tag, content, e);
// com.tencent.mars.xlog.Log.d(tag, content,e);
}
}
public static void errorLog(String tag, String content, Exception e) {
// error日志直接打印出来,不检查标志位
Log.e(tag, content, e);
// com.tencent.mars.xlog.Log.e(tag, content,e);
//
}
public static void warnLog(String tag, String content, Exception e) {
//托管给xlog
if (Config.LOGGING) {
Log.w(tag, content, e);
// com.tencent.mars.xlog.Log.w(tag, content,e.getCause());
}
}
public static void warnLog(String tag, Exception ex) {
//托管给xlog
if (Config.LOGGING) {
Log.w(tag, ex);
// com.tencent.mars.xlog.Log.w(tag, "warnLog",ex.getCause());
}
}
public static void d(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
Log.d(tag, content);
// com.tencent.mars.xlog.Log.d(tag, content);
//
}
}
public static void e(String tag, String content) {
// error日志直接打印出来,不检查标志位
Log.e(tag, content);
// com.tencent.mars.xlog.Log.e(tag, content);
}
public static void i(String tag, String content) {
// info日志直接打印出来,不检查标志位
Log.i(tag, content);
// com.tencent.mars.xlog.Log.i(tag, content);
}
public static void v(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
Log.v(tag, content);
// com.tencent.mars.xlog.Log.v(tag, content);
//
}
}
public static void w(String tag, String content) {
//托管给xlog
if (Config.LOGGING) {
Log.w(tag, content);
// com.tencent.mars.xlog.Log.w(tag, content);
//
}
}
public static void d(String tag, String content, Exception e) {
//托管给xlog
if (Config.LOGGING) {
Log.d(tag, content, e);
// com.tencent.mars.xlog.Log.d(tag, content,e.getCause());
//
}
}
public static void printErrStackTrace(String tag, Throwable throwable) {
//托管给xlog
if (Config.LOGGING && throwable != null && throwable.getMessage() != null) {
// com.tencent.mars.xlog.Log.printErrStackTrace(tag, throwable,"printErrStackTrace");
Log.d(tag, throwable.getMessage());
}
}
public static void printErrStackTrace(String tag, Throwable throwable,String format,Object... obj) {
//托管给xlog
if (Config.LOGGING) {
// com.tencent.mars.xlog.Log.printErrStackTrace(tag, throwable,format,obj);
Log.d(tag, throwable.getMessage());
}
}
public static void e(String tag, String content, Exception e) {
// error日志直接打印出来,不检查标志位
Log.e(tag, content, e);
// com.tencent.mars.xlog.Log.e(tag, content,e.getCause());
}
public static void w(String tag, String content, Exception e) {
//托管给xlog
if (Config.LOGGING) {
Log.w(tag, content, e);
// com.tencent.mars.xlog.Log.w(tag, content,e.getCause());
//
}
}
public static void w(String tag, Exception ex) {
//托管给xlog
if (Config.LOGGING) {
Log.w(tag, ex);
// com.tencent.mars.xlog.Log.w(tag, "w",ex.getCause());
//
}
}
}
package ezviz.ezopensdkcommon.common;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import ezviz.ezopensdkcommon.R;
@SuppressLint("Registered")
public class RootActivity extends Activity {
public final static String TAG = RootActivity.class.getSimpleName();
protected static Context mContext;
private Toast mToast = null;
private boolean mIsTip = true;
protected int pageKey = -1;
private WaitDialog mWaitDlg;
protected void showToast(int id) {
if (!mIsTip) {
return;
}
if (isFinishing()) {
return;
}
String text = getString(id);
if (text != null && !text.equals("")) {
if (mToast == null) {
mToast = Toast.makeText(this, text, Toast.LENGTH_LONG);
mToast.setGravity(Gravity.CENTER, 0, 0);
} else {
mToast.setText(text);
}
mToast.show();
}
}
protected void showToast(int id, int errCode) {
if (!mIsTip) {
return;
}
if (isFinishing()) {
return;
}
String text = getString(id);
if (errCode != 0) {
int errorId = getErrorId(errCode);
if (errorId != 0) {
text = getString(errorId);
} else {
text = text + " (" + errCode + ")";
}
}
if (text != null && !text.equals("")) {
if (mToast == null) {
mToast = Toast.makeText(this, text, Toast.LENGTH_LONG);
mToast.setGravity(Gravity.CENTER, 0, 0);
} else {
mToast.setText(text);
}
mToast.show();
}
}
protected void showToast(int id, String msg) {
if (!mIsTip) {
return;
}
if (isFinishing()) {
return;
}
String text = getString(id);
if (!TextUtils.isEmpty(msg)) {
text = text + " (" + msg + ")";
}
if (text != null && !text.equals("")) {
if (mToast == null) {
mToast = Toast.makeText(this, text, Toast.LENGTH_LONG);
mToast.setGravity(Gravity.CENTER, 0, 0);
} else {
mToast.setText(text);
}
mToast.show();
}
}
protected void showToast(final CharSequence text) {
LogUtil.d(TAG, text.toString());
runOnUiThread(new Runnable() {
@Override
public void run() {
if (!mIsTip) {
return;
}
if (isFinishing()) {
return;
}
if (text != null && !text.equals("")) {
if (mToast == null) {
mToast = Toast.makeText(mContext, text, Toast.LENGTH_LONG);
mToast.setGravity(Gravity.CENTER, 0, 0);
} else {
mToast.setText(text);
}
mToast.show();
}
}
});
}
protected int getErrorId(int errorCode) {
int errorId = this.getResources().getIdentifier("error_code_" + errorCode, "string", this.getPackageName());
/*
* Field fieldError; int errorId = 0; try { fieldError =
* R.string.class.getDeclaredField("error_code_" + errorCode);
* fieldError.setAccessible(true); R.string string = new R.string(); try { errorId =
* fieldError.getInt(string); } catch (IllegalAccessException e) { // TODO Auto-generated
* catch block e.printStackTrace(); } catch (IllegalArgumentException e) { // TODO
* Auto-generated catch block e.printStackTrace(); } } catch (NoSuchFieldException e) { //
* TODO Auto-generated catch block e.printStackTrace(); }
*/
return errorId;
}
protected void showToast(int res1, int res2, int errCode) {
String text = res1 != 0 ? getString(res1) : "";
if (res2 != 0) {
text = text + ", " + getString(res2);
}
if (errCode != 0) {
int errorId = getErrorId(errCode);
if (errorId != 0) {
text = getString(errorId);
} else {
text = text + " (" + errCode + ")";
}
}
if (text != null) {
if (mToast == null) {
mToast = Toast.makeText(this, text, Toast.LENGTH_LONG);
mToast.setGravity(Gravity.CENTER, 0, 0);
} else {
mToast.setText(text);
}
mToast.show();
}
}
protected void setPageKey(int argPageKey) {
this.pageKey = argPageKey;
}
protected void showWaitDialog(String content) {
mWaitDlg = new WaitDialog(this, android.R.style.Theme_Translucent_NoTitleBar);
if (content != null && !content.equals("")) {
mWaitDlg.setWaitText(content);
}
mWaitDlg.setCancelable(false);
mWaitDlg.show();
}
protected void showWaitDialog(int resId) {
mWaitDlg = new WaitDialog(this, android.R.style.Theme_Translucent_NoTitleBar);
mWaitDlg.setWaitText(getString(resId));
mWaitDlg.setCancelable(false);
mWaitDlg.show();
}
public void showWaitDialog() {
mWaitDlg = new WaitDialog(this, android.R.style.Theme_Translucent_NoTitleBar);
mWaitDlg.setCancelable(false);
mWaitDlg.show();
}
public void showCancelableWaitDialog() {
mWaitDlg = new WaitDialog(this, android.R.style.Theme_Translucent_NoTitleBar);
mWaitDlg.setCancelable(true);
mWaitDlg.show();
}
public boolean isDialogShowing() {
if (mWaitDlg != null && mWaitDlg.isShowing()) {
return true;
} else {
return false;
}
}
public void dismissWaitDialog() {
if (mWaitDlg != null && mWaitDlg.isShowing()) {
mWaitDlg.dismiss();
}
}
/**
* @return the isResumed
*/
// public static boolean isResumed() {
// return isResumed;
// }
// public static void setResumed(boolean isResumed) {
// RootActivity.isResumed = isResumed;
// }
protected String getErrorTip(int id, int errCode) {
StringBuffer errorTip = new StringBuffer();
if (errCode != 0) {
int errorId = getErrorId(errCode);
if (errorId != 0) {
errorTip.append(getString(errorId));
} else {
errorTip.append(getString(id)).append(" (").append(errCode).append(")");
}
} else {
errorTip.append(getString(id));
}
return errorTip.toString();
}
protected void hideInputMethod() {
if (getCurrentFocus() != null && getCurrentFocus().getWindowToken() != null) {
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
}
}
protected void removeHandler(Handler handler) {
if (handler != null) {
handler.removeCallbacksAndMessages(null);
handler = null;
}
}
private static List<Activity> mActivityList = new ArrayList<>();
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mContext = this;
mActivityList.add(this);
}
@Override
protected void onDestroy() {
super.onDestroy();
mActivityList.remove(this);
}
protected void toast(final String msg){
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();
}
});
}
protected static void toastMsg(final String msg){
if (mContext == null){
return;
}
if (mContext instanceof RootActivity){
final RootActivity rootActivity = (RootActivity) mContext;
rootActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
rootActivity.toast(msg);
}
});
}
}
private AlertDialog mLastDialog = null;
protected void dialog(final String title, final String msg){
runOnUiThread(new Runnable() {
@Override
public void run() {
if (mLastDialog != null && mLastDialog.isShowing()){
mLastDialog.dismiss();
}
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(RootActivity.this);
dialogBuilder.setTitle(title);
ViewGroup msgLayoutVg = (ViewGroup) LayoutInflater.from(getApplicationContext()).inflate(R.layout.layout_dialog_tip, null);
TextView msgTv = (TextView) msgLayoutVg.findViewById(R.id.tv_tip);
if (msgTv != null){
msgTv.setText(msg);
}
dialogBuilder.setView(msgLayoutVg);
dialogBuilder.setPositiveButton(getApplicationContext().getString(R.string.btn_ensure), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
dialogBuilder.setCancelable(false);
mLastDialog = dialogBuilder.show();
}
});
}
private static int mNotificationId = 1;
protected static int getUniqueNotificationId(){
return mNotificationId++;
}
protected void initUi(){}
private static TaskManager mTaskManager = null;
protected synchronized static TaskManager getTaskManager(){
if (mTaskManager == null){
mTaskManager = new TaskManager();
}
return mTaskManager;
}
public static void exitApp(){
for (Activity activity: mActivityList){
if (!activity.isFinishing()){
activity.finish();
}
}
System.exit(0);
}
protected void initPresenter(){}
}
package ezviz.ezopensdkcommon.common;
public class RouteNavigator {
public final static String ADD_DEVICE_PAGE = "/app/add/AddDeviceToAccountActivity";
public final static String CONFIG_WIFI_MAIN_PAGE = "/configwifidemo/MainActivity";
}
package ezviz.ezopensdkcommon.common;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class TaskManager {
private ExecutorService mExecutorService;
public TaskManager(){
mExecutorService = Executors.newCachedThreadPool();
}
public void submit(Runnable task){
mExecutorService.submit(task);
}
}
package ezviz.ezopensdkcommon.common;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.text.TextUtils.TruncateAt;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
public class TitleBar extends FrameLayout {
private Drawable mBackground;
private Drawable mBackButton;
private int mTextColor;
private Context mContext;
private ViewGroup mTitleLayout;
private TextView mTextView;
private View mTitleView;
private LinearLayout mLeftLayout;
private LinearLayout mRightLayout;
private static final int ID_TITLELAYOUT = 1;
private static final int ID_TEXTVIEW = 2;
private static final int ID_LEFTLAYOUT = 3;
private static final int ID_RIGHTLAYOUT = 4;
public TitleBar(Context context) {
this(context, null);
}
public TitleBar(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public TitleBar(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
mContext = getContext();
mTextColor = Color.rgb(51, 51, 51);
mBackground = Utils.getDrawableFromAssetsFile(mContext, "common_title.9.png");
Drawable normal = Utils.getDrawableFromAssetsFile(mContext, "common_title_back.png");
Drawable pressed = Utils.getDrawableFromAssetsFile(mContext, "common_title_back_sel.png");
mBackButton = Utils.newSelector(mContext, normal, pressed, normal, normal);
init();
}
private void init() {
mTitleLayout = new RelativeLayout(mContext);
mTitleLayout.setId(ID_TITLELAYOUT);
mTitleLayout.setBackgroundDrawable(mBackground);
LayoutParams titleLayoutLp = new LayoutParams(LayoutParams.MATCH_PARENT, Utils.dip2px(mContext, 44));
this.addView(mTitleLayout, titleLayoutLp);
mLeftLayout = new LinearLayout(mContext);
mLeftLayout.setId(ID_LEFTLAYOUT);
RelativeLayout.LayoutParams leftLayoutLp = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
leftLayoutLp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
leftLayoutLp.addRule(RelativeLayout.CENTER_VERTICAL);
mLeftLayout.setOrientation(LinearLayout.HORIZONTAL);
mLeftLayout.setGravity(Gravity.CENTER_VERTICAL);
mTitleLayout.addView(mLeftLayout, leftLayoutLp);
mTextView = new TextView(mContext);
mTextView.setId(ID_TEXTVIEW);
RelativeLayout.LayoutParams textViewLp = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
textViewLp.addRule(RelativeLayout.CENTER_IN_PARENT);
mTextView.setEllipsize(TruncateAt.END);
mTextView.setMaxWidth(Utils.dip2px(mContext, 200));
mTextView.setSingleLine(true);
mTextView.setTextColor(mTextColor);
mTextView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
mTitleLayout.addView(mTextView, textViewLp);
mRightLayout = new LinearLayout(mContext);
mRightLayout.setId(ID_RIGHTLAYOUT);
RelativeLayout.LayoutParams rightLayoutLp = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
rightLayoutLp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rightLayoutLp.addRule(RelativeLayout.CENTER_VERTICAL);
mRightLayout.setOrientation(LinearLayout.HORIZONTAL);
mRightLayout.setGravity(Gravity.CENTER_VERTICAL);
mTitleLayout.addView(mRightLayout, rightLayoutLp);
}
public void setStyle(int textColor, Drawable background, Drawable backButton) {
mTextColor = textColor;
mBackground = background;
if(backButton != null)
mBackButton = backButton;
mTextView.setTextColor(mTextColor);
mTitleLayout.setBackgroundDrawable(mBackground);
}
/**
* 设置标题文本
*
* @param resId
*/
public TextView setTitle(int resId) {
return setTitle(mContext.getText(resId));
}
/**
* 设置标题文本
*
* @param text
*/
public TextView setTitle(CharSequence text) {
mTextView.setText(text);
mTextView.setVisibility((TextUtils.isEmpty(text) || mTitleView != null) ? View.GONE : View.VISIBLE);
return mTextView;
}
/**
* 设置标题控件
*
* @param
*/
public View setTitle(View view) {
if (mTitleView != null) {
mTitleLayout.removeView(mTitleView);
}
if (view != null) {
RelativeLayout.LayoutParams layoutParams = null;
if (view.getLayoutParams() == null) {
layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,
RelativeLayout.LayoutParams.WRAP_CONTENT);
} else {
layoutParams = new RelativeLayout.LayoutParams(view.getLayoutParams());
}
layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);
mTitleLayout.addView(view, layoutParams);
mTextView.setVisibility(View.GONE);
} else {
mTextView.setVisibility(View.VISIBLE);
}
mTitleView = view;
return view;
}
/**
* 设置标题背景颜色
*
* @param
*/
public void setBackgroundColor(int color) {
mTitleLayout.setBackgroundColor(color);
}
/**
* 标题文本点击事件
*
* @param l
*/
public void setOnTitleClickListener(OnClickListener l) {
mTextView.setOnClickListener(l);
}
/**
* 在标题文本侧添加一个按钮
*
* @param resId
* @param l
* @return
*/
public ImageView addTitleButton(int resId, OnClickListener l) {
// return addTitleButton(resId, l);
ImageView button = new ImageView(mContext);
button.setImageResource(resId);
button.setOnClickListener(l);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
layoutParams.addRule(RelativeLayout.RIGHT_OF, ID_TEXTVIEW);
layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);
mTitleLayout.addView(button, layoutParams);
return button;
}
/**
* 在标题文本侧添加一个自定义View
*
* @param v
* @return
*/
public void addTitleView(View v) {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
layoutParams.addRule(RelativeLayout.RIGHT_OF, ID_TEXTVIEW);
layoutParams.addRule(RelativeLayout.CENTER_VERTICAL);
mTitleLayout.addView(v, layoutParams);
}
/**
* 在标题栏左侧添加一个按钮
*
* @param resId
* @param l
* @return
*/
public Button addLeftButton(int resId, OnClickListener l) {
return addLeftButton(getResources().getDrawable(resId), l);
}
/**
* 在标题栏左侧添加一个按钮
*
* @param drawable
* @param l
* @return
*/
public Button addLeftButton(Drawable drawable, OnClickListener l) {
Button button = new Button(mContext);
button.setBackgroundDrawable(drawable);
button.setOnClickListener(l);
addLeftView(button);
return button;
}
/**
* 在标题栏左侧添加一个自定义View
*
* @param v
* @return
*/
public void addLeftView(View v) {
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(Utils.dip2px(mContext, 60), Utils.dip2px(mContext, 44));
mLeftLayout.addView(v, 0, layoutParams);
}
/**
* 清除在标题栏左侧控件
*
* @param v
* @return
*/
public void removeLeftView(View v) {
mLeftLayout.removeView(v);
}
/**
* 清除在标题栏左侧控件
*
* @return
*/
public void removeAllLeftView() {
mLeftLayout.removeAllViews();
}
/**
* 在标题栏左侧添加一个返回按钮
*
* @param l
* @return
*/
public Button addBackButton(OnClickListener l) {
return addLeftButton(mBackButton, l);
}
/**
* 在标题栏右侧添加一个按钮
*
* @param resId
* @param l
* @return
*/
public Button addRightButton(int resId, OnClickListener l) {
return addRightButton(getResources().getDrawable(resId), l);
}
/**
* 在标题栏右侧添加一个按钮
*
* @param drawable
* @param l
* @return
*/
public Button addRightButton(Drawable drawable, OnClickListener l) {
Button button = new Button(mContext);
button.setBackgroundDrawable(drawable);
button.setOnClickListener(l);
addRightView(button);
return button;
}
/**
* 在标题栏右侧添加一个自定义View
*
* @param v
* @return
*/
public void addRightView(View v) {
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(Utils.dip2px(mContext, 60), Utils.dip2px(mContext, 44));
mRightLayout.addView(v, 0, layoutParams);
}
/**
* 清除在标题栏右侧控件
*
* @param v
* @return
*/
public void removeRightView(View v) {
mRightLayout.removeView(v);
}
/**
* 清除在标题栏右侧控件
*
* @return
*/
public void removeAllRightView() {
mRightLayout.removeAllViews();
}
/**
* 在标题栏右侧添加一个进度条
*
* @return
*/
public ImageView addRightProgress() {
ImageView view = new ImageView(mContext);
view.setImageBitmap(Utils.getImageFromAssetsFile(mContext, "common_title_refresh.png"));
addRightView(view);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) view.getLayoutParams();
layoutParams.rightMargin = Utils.dip2px(mContext, 13);
layoutParams.width = Utils.dip2px(mContext, 30);
layoutParams.height = Utils.dip2px(mContext, 30);
return view;
}
/**
* 在标题栏右侧添加一个按钮
*
* @param text
* @param l
* @return
*/
public Button addRightTextButton(CharSequence text, OnClickListener l) {
Button button = new Button(mContext);
Drawable normal = Utils.getDrawableFromAssetsFile(mContext, "tittel_button_bg.9.png");
Drawable pressed = Utils.getDrawableFromAssetsFile(mContext, "tittel_button_press_bg.9.png");
button.setBackgroundDrawable(Utils.newSelector(mContext, normal, pressed, normal, normal));
button.setOnClickListener(l);
button.setText(text);
button.setGravity(Gravity.CENTER);
button.setTextColor(Color.rgb(51, 51, 51));
button.setPadding(Utils.dip2px(mContext, 5), 0, Utils.dip2px(mContext, 5), 0);
addRightView(button);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) button.getLayoutParams();
layoutParams.rightMargin = Utils.dip2px(mContext, 15);
return button;
}
/**
* 在标题栏右侧添加一个可选择文字
*
* @param text
* @param checkedText
* @param l
* @return
*/
public CheckTextButton addRightCheckedText(final CharSequence text, final CharSequence checkedText,
final OnCheckedChangeListener l) {
CheckTextButton view = new CheckTextButton(mContext);
int padding = Utils.dip2px(mContext, 5);
view.setClickable(true);
view.setPadding(padding, Utils.dip2px(mContext, 9), padding, padding);
view.setText(text);
view.setTextColor(Color.rgb(51, 51, 51));
view.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
view.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
buttonView.setText(isChecked ? checkedText : text);
if (l != null)
l.onCheckedChanged(buttonView, isChecked);
}
});
addRightView(view);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) view.getLayoutParams();
layoutParams.rightMargin = Utils.dip2px(mContext, 15) - padding;
return view;
}
public void setBackButton(int resId) {
mBackButton = getResources().getDrawable(resId);
}
}
\ No newline at end of file
/*
* @ProjectName VideoGo
* @Copyright null
*
* @FileName Utils.java
* @Description This class is the Utils of other classes.
*
* @author Fangzhihua
* @data 2012-10-10
*
* @note
* @note
*
* @warning
*/
package ezviz.ezopensdkcommon.common;
import android.app.NotificationManager;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.AssetManager;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.NinePatch;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.graphics.drawable.StateListDrawable;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.text.TextUtils;
import android.view.Gravity;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* This class is the Utils of other classes.
*
* @author Fangzhihua
* @data 2012-10-10
*/
public class Utils {
//private static String TAG = "Utils";
/**
* <p>
* 获取网络类型 (原有方法增加注释)
* </p>
*
* @param context
* @return
* @author hanlifeng 2014-5-5 下午3:37:51
*/
public static String getNetTypeName(Context context) {
ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
if (connectivity != null) {
NetworkInfo curNetwork = connectivity.getActiveNetworkInfo();
if (curNetwork != null) {
int nType = curNetwork.getType();
if (nType == ConnectivityManager.TYPE_WIFI) {
return curNetwork.getTypeName();
} else if (nType == ConnectivityManager.TYPE_MOBILE) {
return curNetwork.getSubtypeName();
} else {
return "UNKNOWN";
}
}
}
return "UNKNOWN";
}
/**
* <p>
* 获取客户端版本信息(原有方法增加注释)
* </p>
*
* @param context
* @return
* @author hanlifeng 2014-5-5 下午3:34:35
*/
public static String getVersionName(Context context) {
PackageManager packageManager = context.getPackageManager();
PackageInfo packInfo = null;
try {
packInfo = packageManager.getPackageInfo(context.getPackageName(), 0);
return packInfo.versionName;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return "UNKNOWN";
}
public static void showToast(Context context, String text) {
if (context == null) {
return;
}
if (text != null && !text.equals("")) {
Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER, 0, 0);
try {
toast.show();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public static void showToast(Context context, int id, int errCode) {
if (context == null) {
return;
}
String text = context.getString(id);
if (errCode != 0) {
text = text + " (" + errCode + ")";
}
if (text != null && !text.equals("")) {
Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER, 0, 0);
try {
toast.show();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public static void showToast(Context context, int id) {
if (context == null) {
return;
}
String text = context.getString(id);
if (text != null && !text.equals("")) {
Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER, 0, 0);
try {
toast.show();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public static String getErrorTip(Context context, int id, int errCode) {
StringBuffer errorTip = new StringBuffer();
errorTip.append(context.getString(id));
if (errCode != 0) {
errorTip.append(" (").append(errCode).append(")");
}
return errorTip.toString();
}
public static String getCPUSerial() {
String str = "", strCPU = "", cpuAddress = "0000000000000000";
Process pp = null;
InputStreamReader ir = null;
LineNumberReader input = null;
try {
// 读取CPU信息
pp = Runtime.getRuntime().exec("cat /proc/cpuinfo");
ir = new InputStreamReader(pp.getInputStream());
input = new LineNumberReader(ir);
// 查找CPU序列号
for (int i = 1; i < 100; i++) {
str = input.readLine();
if (str != null) {
// 查找到序列号所在行
if (str.indexOf("serial") > -1) {
// 提取序列号
strCPU = TextUtils.substring(str, str.indexOf(":") + 1, str.length());
// 去空格
cpuAddress = strCPU.trim();
break;
}
} else {
// 文件结尾
break;
}
}
} catch (IOException ex) {
// 赋予默认值
ex.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
} finally {
if (input != null) {
try {
input.close();
} catch (IOException ex) {
ex.printStackTrace();
}
input = null;
}
if (ir != null) {
try {
ir.close();
} catch (IOException ex) {
ex.printStackTrace();
}
ir = null;
}
if (pp != null) {
pp.destroy();
pp = null;
}
}
return cpuAddress;
}
public static String getAndroidID(Context context) {
String androidID = android.provider.Settings.System.getString(context.getContentResolver(), "android_id");
LogUtil.d("androidid", androidID);
return androidID;
}
public static void clearAllNotification(Context context) {
NotificationManager notificationManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.cancelAll();
}
/**
* @param is
* @return
* @see
* @since V1.0
*/
public static String inputStreamToString(InputStream is) {
BufferedReader in = null;
StringBuffer buffer = new StringBuffer();
String line = "";
try {
in = new BufferedReader(new InputStreamReader(is));
while ((line = in.readLine()) != null) {
buffer.append(line);
}
} catch (IOException e) {
e.printStackTrace();
} catch (OutOfMemoryError e) {
e.printStackTrace();
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
in = null;
}
}
return buffer.toString();
}
public static int dip2px(Context context, float dpValue) {
final float scale = context.getResources().getDisplayMetrics().density;
return (int) (dpValue * scale + 0.5f);
}
public static int px2dip(Context context, float pxValue) {
final float scale = context.getResources().getDisplayMetrics().density;
return (int) (pxValue / scale + 0.5f);
}
public static void showLog(Context context, String content) {
if (Config.LOGGING) {
try {
Toast.makeText(context, content, Toast.LENGTH_LONG).show();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public static Calendar parseTimeToCalendar(String strTime) {
if (strTime == null) {
return null;
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = null;
try {
date = sdf.parse(strTime);
} catch (ParseException e) {
e.printStackTrace();
}
Calendar timeCalendar = Calendar.getInstance();
timeCalendar.setTime(date);
return timeCalendar;
}
public static String OSD2Time(Calendar OSDTime) {
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
return sdf.format(OSDTime.getTimeInMillis());
}
public static long get19TimeInMillis(String createTime) {
Calendar calendar = convert19Calender(createTime);
return calendar != null ? calendar.getTimeInMillis() : 0;
}
public static Calendar convert14Calender(String stringTime) {
if (stringTime == null || stringTime.length() < 14 || !isNumeric(stringTime)) {
return null;
}
final String year = stringTime.substring(0, 4);
final String month = stringTime.substring(4, 6);
final String day = stringTime.substring(6, 8);
final String hour = stringTime.substring(8, 10);
final String minute = stringTime.substring(10, 12);
final String second = stringTime.substring(12, 14);
try {
GregorianCalendar calendar = new GregorianCalendar(Integer.parseInt(year), Integer.parseInt(month) - 1,
Integer.parseInt(day), Integer.parseInt(hour), Integer.parseInt(minute), Integer.parseInt(second));
return calendar;
} catch (NumberFormatException e) {
e.printStackTrace();
}
return null;
}
public static Calendar convert16Calender(String szStartTime) {
if (szStartTime == null || szStartTime.length() < 15) {
return null;
}
final String year = szStartTime.substring(0, 4);
final String month = szStartTime.substring(4, 6);
final String day = szStartTime.substring(6, 8);
final String hour = szStartTime.substring(9, 11);
final String minute = szStartTime.substring(11, 13);
final String second = szStartTime.substring(13, 15);
try {
GregorianCalendar calendar = new GregorianCalendar(Integer.parseInt(year), Integer.parseInt(month) - 1,
Integer.parseInt(day), Integer.parseInt(hour), Integer.parseInt(minute), Integer.parseInt(second));
return calendar;
} catch (NumberFormatException e) {
e.printStackTrace();
}
return null;
}
public static Calendar convert19Calender(String createTime) {
if (createTime == null || createTime.length() < 19) {
return null;
}
try {
int year = Integer.parseInt(createTime.substring(0, 4));
int month = Integer.parseInt(createTime.substring(5, 7));
int day = Integer.parseInt(createTime.substring(8, 10));
int hourOfDay = Integer.parseInt(createTime.substring(11, 13));
int minute = Integer.parseInt(createTime.substring(14, 16));
int second = Integer.parseInt(createTime.substring(17, 19));
GregorianCalendar calendar = new GregorianCalendar(year, month - 1,
day, hourOfDay, minute, second);
return calendar;
} catch (NumberFormatException e) {
e.printStackTrace();
}
return null;
}
public static String calendar2String(Calendar calendar) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateStr = sdf.format(calendar.getTime());
return dateStr;
}
public static String date2String(Date date) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String dateStr = sdf.format(date);
return dateStr;
}
public static boolean isNumeric(String str) {
Pattern pattern = Pattern.compile("[0-9]*");
Matcher isNum = pattern.matcher(str);
if (!isNum.matches()) {
return false;
}
return true;
}
private static String trimSpaces(String IP) {// 去掉IP字符串前后所有的空格
while (IP.startsWith(" ")) {
IP = IP.substring(1, IP.length()).trim();
}
while (IP.endsWith(" ")) {
IP = IP.substring(0, IP.length() - 1).trim();
}
return IP;
}
public static boolean isIp(String IP) {// 判断是否是一个IP
if (IP == null || IP.isEmpty()) {
return false;
}
boolean b = false;
IP = trimSpaces(IP);
if (IP.matches("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}")) {
String s[] = IP.split("\\.");
if (Integer.parseInt(s[0]) < 255)
if (Integer.parseInt(s[1]) < 255)
if (Integer.parseInt(s[2]) < 255)
if (Integer.parseInt(s[3]) < 255)
b = true;
}
return b;
}
/**
* 从Assets中读取图片
*/
public static Bitmap getImageFromAssetsFile(Context context, String fileName) {
Bitmap image = null;
AssetManager am = context.getResources().getAssets();
try {
InputStream is = am.open(fileName);
image = BitmapFactory.decodeStream(is);
is.close();
} catch (IOException e) {
//e.printStackTrace();
LogUtil.printErrStackTrace("getImageFromAssetsFile",e.fillInStackTrace());
}
return image;
}
public static Drawable getDrawableFromAssetsFile(Context context, String fileName) {
Bitmap image = null;
AssetManager am = context.getResources().getAssets();
InputStream is = null;
try {
is = am.open(fileName);
image = BitmapFactory.decodeStream(is);
is.close();
is = null;
} catch (IOException e) {
//e.printStackTrace();
LogUtil.printErrStackTrace("getDrawableFromAssetsFile",e.fillInStackTrace());
} finally {
if (is != null) {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
is = null;
}
}
if (image != null) {
byte[] chunk = image.getNinePatchChunk();
if (chunk != null) {
boolean result = NinePatch.isNinePatchChunk(chunk);
NinePatchDrawable patchy = new NinePatchDrawable(image, chunk, new Rect(), null);
return patchy;
} else {
return new BitmapDrawable(image);
}
}
return null;
}
/**
* 设置Selector。
*/
public static StateListDrawable newSelector(Context context, Drawable normal, Drawable pressed, Drawable focused,
Drawable unable) {
StateListDrawable bg = new StateListDrawable();
// View.PRESSED_ENABLED_STATE_SET
bg.addState(new int[]{android.R.attr.state_pressed, android.R.attr.state_enabled}, pressed);
// View.ENABLED_FOCUSED_STATE_SET
bg.addState(new int[]{android.R.attr.state_enabled, android.R.attr.state_focused}, focused);
// View.ENABLED_STATE_SET
bg.addState(new int[]{android.R.attr.state_enabled}, normal);
// View.FOCUSED_STATE_SET
bg.addState(new int[]{android.R.attr.state_focused}, focused);
// View.WINDOW_FOCUSED_STATE_SET
bg.addState(new int[]{android.R.attr.state_window_focused}, unable);
// View.EMPTY_STATE_SET
bg.addState(new int[]{}, normal);
return bg;
}
/**
* 对TextView设置不同状态时其文字颜色。
*/
public static ColorStateList createColorStateList(int normal, int pressed, int focused, int unable) {
int[] colors = new int[]{pressed, focused, normal, focused, unable, normal};
int[][] states = new int[6][];
states[0] = new int[]{android.R.attr.state_pressed, android.R.attr.state_enabled};
states[1] = new int[]{android.R.attr.state_enabled, android.R.attr.state_focused};
states[2] = new int[]{android.R.attr.state_enabled};
states[3] = new int[]{android.R.attr.state_focused};
states[4] = new int[]{android.R.attr.state_window_focused};
states[5] = new int[]{};
ColorStateList colorList = new ColorStateList(states, colors);
return colorList;
}
public static String getUrlValue(String url, String startStr, String endStr) {
if (url == null || startStr == null) {
return null;
}
int startIndex = url.indexOf(startStr);
if (startIndex < 0) {
return null;
}
int endIndex = endStr != null ? url.indexOf(endStr, startIndex) : url.length();
if (startIndex >= endIndex) {
endIndex = url.length();
}
try {
return url.substring(startIndex + startStr.length(), endIndex);
} catch (IndexOutOfBoundsException e) {
return null;
}
}
// content of file /sdcard/videogo_test_cfg:
// deviceSerial:427734168
public static void parseTestConfigFile(String filePath, Map<String, String> map) {
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(filePath));
String lineStr;
lineStr = br.readLine();
while (lineStr != null) {
String[] values = lineStr.split("\\$");
if (values.length == 2) {
map.put(values[0], values[1]);
}
lineStr = br.readLine();
}
} catch (IOException e) {
e.printStackTrace();
} finally {
if (br != null) {
try {
br.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
public static boolean isEZOpenProtocol(String url){
if (url.startsWith("ezopen://")){
return true;
}
return false;
}
private static Map<String, String[]> getParamsMap(String queryString, String enc) {
Map<String, String[]> paramsMap = new HashMap<String, String[]>();
if (queryString != null && queryString.length() > 0) {
int ampersandIndex, lastAmpersandIndex = 0;
String subStr, param, value;
String[] paramPair, values, newValues;
do {
ampersandIndex = queryString.indexOf('&', lastAmpersandIndex) + 1;
if (ampersandIndex > 0) {
subStr = queryString.substring(lastAmpersandIndex, ampersandIndex - 1);
lastAmpersandIndex = ampersandIndex;
} else {
subStr = queryString.substring(lastAmpersandIndex);
}
paramPair = subStr.split("=");
param = paramPair[0];
value = paramPair.length == 1 ? "" : paramPair[1];
try {
value = URLDecoder.decode(value, enc);
} catch (UnsupportedEncodingException ignored) {
}
if (paramsMap.containsKey(param)) {
values = paramsMap.get(param);
int len = values.length;
newValues = new String[len + 1];
System.arraycopy(values, 0, newValues, 0, len);
newValues[len] = value;
} else {
newValues = new String[] { value };
}
paramsMap.put(param, newValues);
} while (ampersandIndex > 0);
}
return paramsMap;
}
/**
* 根据URL获得文件名
*
* @param url URL
*/
public static String getFileNameByUrl(String url) {
String name = null;
if (url != null) {
int start = url.lastIndexOf("/");
int end = url.lastIndexOf("?");
name = url.substring(start == -1 ? 0 : start + 1, end == -1 ? url.length() : end);
}
return name;
}
}
package ezviz.ezopensdkcommon.common;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import ezviz.ezopensdkcommon.R;
public class WaitDialog extends Dialog {
private Context mContext;
private TextView mWaitTv = null;
private String mWaitingTxt = null;
public WaitDialog(Context context, int theme) {
super(context, theme);
mContext = context;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.wait_dialog);
mWaitTv = (TextView) findViewById(R.id.wait_tv);
if (mWaitingTxt != null && !mWaitingTxt.isEmpty()) {
mWaitTv.setVisibility(View.VISIBLE);
mWaitTv.setText(mWaitingTxt);
} else {
mWaitTv.setVisibility(View.GONE);
}
}
public void setWaitText(String text) {
mWaitingTxt = text;
if (mWaitTv == null) {
return;
}
if (mWaitingTxt != null && !mWaitingTxt.isEmpty()) {
mWaitTv.setVisibility(View.VISIBLE);
mWaitTv.setText(text);
} else {
mWaitTv.setVisibility(View.GONE);
}
}
@Override
public void show() {
if (mContext != null && !((Activity) mContext).isFinishing()) {
try {
super.show();
} catch (Exception e) {
}
}
}
@Override
public void dismiss() {
if (mContext != null && !((Activity) mContext).isFinishing()) {
try {
super.dismiss();
} catch (Exception e) {
}
}
}
@Override
public void cancel() {
if (mContext != null && !((Activity) mContext).isFinishing()) {
try {
super.cancel();
} catch (Exception e) {
}
}
}
}
package ezviz.ezopensdkcommon.configwifi;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.ezviz.sdk.configwifi.WiFiUtils;
import com.ezviz.sdk.configwifi.ap.ConnectionDetector;
import com.hikvision.wifi.configuration.BaseUtil;
import ezviz.ezopensdkcommon.R;
import ezviz.ezopensdkcommon.common.IntentConstants;
import ezviz.ezopensdkcommon.common.RootActivity;
import ezviz.ezopensdkcommon.common.TitleBar;
public class AutoWifiNetConfigActivity extends RootActivity {
public static final String WIFI_PASSWORD = "wifi_password";
public static final String WIFI_SSID = "wifi_ssid";
public static final String DEVICE_TYPE = "device_type";
private Button btnNext;
private TextView tvSSID;
private EditText edtPassword;
private TextView tvTitle;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.auto_wifi_net_config);
initTitleBar();
findViews();
initUI();
setListener();
}
private void initTitleBar() {
TitleBar mTitleBar = findViewById(R.id.title_bar);
tvTitle = mTitleBar.setTitle(R.string.auto_wifi_cer_config_title1);
mTitleBar.addBackButton(new OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
private void showWifiRequiredDialog() {
new AlertDialog.Builder(this).setTitle(R.string.auto_wifi_dialog_title_wifi_required)
.setMessage(R.string.please_open_wifi_network)
.setNegativeButton(R.string.auto_wifi_dialog_btn_wifi, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int arg1) {
dialog.dismiss();
// 跳转wifi设置界面
startActivity(new Intent(android.provider.Settings.ACTION_SETTINGS));
}
}).setPositiveButton(R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
onBackPressed();
}
}).setCancelable(false).create().show();
}
@Override
protected void onResume() {
super.onResume();
if (ConnectionDetector.getConnectionType(this) != ConnectionDetector.WIFI) {
tvSSID.setText(R.string.unknow_ssid);
showWifiRequiredDialog();
} else {
updateWifiInfo();
}
}
private void updateWifiInfo(){
// 优先使用getCurrentWifiSsid方法获取wifi名
String wifiName = WiFiUtils.getCurrentWifiSsid(this);
// 如上述方式无效,则使用getWifiSSID方法进行获取
if (!isValidWifiSSID(wifiName)){
wifiName = BaseUtil.getWifiSSID(this);
}
if (isValidWifiSSID(wifiName)){
tvSSID.setText(wifiName);
}
}
private boolean isValidWifiSSID(String wifiName){
return !TextUtils.isEmpty(wifiName) && !"<unknown ssid>".equalsIgnoreCase(wifiName);
}
private void findViews() {
btnNext = findViewById(R.id.btnNext);
tvSSID = findViewById(R.id.tvSSID);
edtPassword = findViewById(R.id.edtPassword);
}
private void initUI() {
tvTitle.setText(R.string.auto_wifi_cer_config_title2);
String password = "";
edtPassword.setText(password);
}
private void setListener() {
btnNext.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
goToChooseConfigWifiWay();
}
});
}
private void goToChooseConfigWifiWay(){
Intent toConfigIntent = new Intent(mContext, ManualChooseConfigWifiWayActivity.class);
toConfigIntent.putExtras(getIntent());
toConfigIntent.putExtra(IntentConstants.ROUTER_WIFI_SSID, tvSSID.getText().toString());
toConfigIntent.putExtra(IntentConstants.ROUTER_WIFI_PASSWORD, TextUtils.isEmpty(edtPassword.getText().toString())
? "smile" : edtPassword.getText().toString());
startActivity(toConfigIntent);
}
}
package ezviz.ezopensdkcommon.configwifi;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import ezviz.ezopensdkcommon.R;
import ezviz.ezopensdkcommon.common.RootActivity;
import ezviz.ezopensdkcommon.common.TitleBar;
public class AutoWifiPrepareStepOneActivity extends RootActivity implements OnClickListener {
private Button btnNext;
private String deviceType;
private TextView topTip;
private Button btnIntroduce;
private ImageView imageBg;
private AnimationDrawable aminBg;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.auto_wifi_prepare_step_on);
initTitleBar();
initUI();
}
private void initTitleBar() {
TitleBar mTitleBar = (TitleBar) findViewById(R.id.title_bar);
mTitleBar.setTitle(R.string.auto_wifi_step_one_title);
mTitleBar.addBackButton(new OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
@Override
protected void onResume() {
super.onResume();
}
private void initUI() {
topTip = (TextView) findViewById(R.id.topTip);
imageBg = (ImageView) findViewById(R.id.imageBg);
btnNext = (Button) findViewById(R.id.btnNext);
btnIntroduce = (Button) findViewById(R.id.btnIntroduce);
btnNext.setOnClickListener(this);
btnIntroduce.setOnClickListener(this);
topTip.setText(getString(R.string.tip_heard_voice));
imageBg.setImageResource(R.drawable.video_camera1_3);
btnNext.setText(R.string.autowifi_heard_voice);
btnIntroduce.setText(R.string.autowifi_not_heard_voice);
}
@Override
public void onClick(View v) {
Intent intent = null;
int id = v.getId();
if (id == R.id.btnNext){
intent = new Intent(this, AutoWifiNetConfigActivity.class);
intent.putExtras(getIntent());
startActivity(intent);
}else if(id == R.id.btnIntroduce){
intent = new Intent(this, AutoWifiResetActivity.class);
intent.putExtras(getIntent());
startActivity(intent);
}
// switch (v.getId()) {
// case R.id.btnNext:
// intent = new Intent(this, AutoWifiNetConfigActivity.class);
// intent.putExtras(getIntent());
// startActivity(intent);
// break;
// case R.id.btnIntroduce:
// intent = new Intent(this, AutoWifiResetActivity.class);
// intent.putExtras(getIntent());
// startActivity(intent);
// break;
// default:
// break;
// }
}
@Override
protected void onDestroy() {
if (aminBg != null) {
aminBg.stop();
aminBg = null;
}
super.onDestroy();
}
}
package ezviz.ezopensdkcommon.configwifi;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import ezviz.ezopensdkcommon.R;
import ezviz.ezopensdkcommon.common.RootActivity;
import ezviz.ezopensdkcommon.common.TitleBar;
//import com.videogo.main.CustomApplication;
public class AutoWifiResetActivity extends RootActivity implements OnClickListener {
private View btnNext;
private TextView topTip;
@Override
protected void onCreate(Bundle savedInstanceState) {
// ((CustomApplication) getApplication()).addSingleActivity(AutoWifiResetActivity.class.getName(), this);
// 页面统计
super.onCreate(savedInstanceState);
setContentView(R.layout.auto_wifi_reset);
initTitleBar();
initUI();
}
private void initTitleBar() {
TitleBar mTitleBar = (TitleBar) findViewById(R.id.title_bar);
mTitleBar.setTitle(R.string.device_reset_title);
mTitleBar.addBackButton(new OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
@Override
protected void onResume() {
super.onResume();
}
private void initUI() {
topTip = (TextView) findViewById(R.id.topTip);
btnNext = findViewById(R.id.btnNext);
topTip.setText(R.string.device_reset_tip);
btnNext.setOnClickListener(this);
}
@Override
public void onClick(View v) {
Intent intent = null;
int id = v.getId();
if (id == R.id.btnNext){
intent = new Intent(this, AutoWifiNetConfigActivity.class);
intent.putExtras(getIntent());
startActivity(intent);
}
// switch (v.getId()) {
// case R.id.btnNext:
// intent = new Intent(this, AutoWifiNetConfigActivity.class);
// intent.putExtras(getIntent());
// startActivity(intent);
// break;
// default:
// break;
// }
}
}
package ezviz.ezopensdkcommon.configwifi;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.callback.NavCallback;
import com.alibaba.android.arouter.launcher.ARouter;
import com.ezviz.sdk.configwifi.EZConfigWifiErrorEnum;
import ezviz.ezopensdkcommon.R;
import ezviz.ezopensdkcommon.common.IntentConstants;
import ezviz.ezopensdkcommon.common.LogUtil;
import ezviz.ezopensdkcommon.common.RootActivity;
import ezviz.ezopensdkcommon.common.RouteNavigator;
public class ConfigWifiExecutingActivity extends RootActivity implements ConfigWifiExecutingActivityPresenter.Callback{
private final static String TAG = ConfigWifiExecutingActivity.class.getSimpleName();
private ConfigWifiExecutingActivityPresenter mPresenter;
private View mConfigResultView;
private View mConfigSuccessView;
private View mConfigFailView;
private TextView mConfigErrorInfoTv;
private String mAllErrorInfo;
public static void launch(Context context, Intent intent){
Intent newIntent = new Intent(context, ConfigWifiExecutingActivity.class);
newIntent.putExtras(intent);
newIntent.putExtra(IntentConstants.USE_MANUAL_AP_CONFIG, true);
context.startActivity(newIntent);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_config_wifi_executing);
mPresenter = ConfigWifiExecutingActivityPresenter.getPresenter(getIntent()
.getStringExtra(IntentConstants.SELECTED_PRESENTER_TYPE));
if (mPresenter == null){
LogUtil.e(TAG, "failed to init!");
return;
}
initUI();
getWindow().getDecorView().post(new Runnable() {
@Override
public void run() {
showExecutingUi();
startConfig();
}
});
}
@Override
protected void onStop() {
super.onStop();
showToast(getString(R.string.app_common_stop_config_wifi_while_switched_to_background));
exitPage();
}
/**
* 重试
*/
public void onClickRetryConfigWifi(View view) {
showExecutingUi();
startConfig();
}
/**
* 配网成功,根据使用sdk不同,跳转到对应页面
*/
public void onClickToConfigAnother(View view) {
// 如果是在使用配网sdk,则跳转到配网开始页
if (getIntent().getBooleanExtra(IntentConstants.USING_CONFIG_WIFI_SDK, false)){
ARouter.getInstance().build(RouteNavigator.CONFIG_WIFI_MAIN_PAGE)
.navigation(this, new NavCallback() {
@Override
public void onArrival(Postcard postcard) {
exitPage();
}
@Override
public void onLost(Postcard postcard) {
// do nothing
}
});
}
}
@Override
public void onBackPressed() {
exitPage();
}
public void onClickExit(View view) {
exitPage();
}
private void exitPage(){
stopConfig();
finish();
}
@Override
public void onConnectedToWifi() {
LogUtil.i(TAG, "onConnectedToWifi");
// 仅使用配网sdk时,才展示配网成功的ui
if (getIntent().getBooleanExtra(IntentConstants.USING_CONFIG_WIFI_SDK, false)){
showConfigSuccessUi();
}
}
@Override
public void onConnectedToPlatform() {
LogUtil.i(TAG, "onConnectedToPlatform");
ARouter.getInstance().build(RouteNavigator.ADD_DEVICE_PAGE)
.withString(IntentConstants.DEVICE_SERIAL, getIntent().getStringExtra(IntentConstants.DEVICE_SERIAL))
.withString(IntentConstants.DEVICE_VERIFY_CODE, getIntent().getStringExtra(IntentConstants.DEVICE_VERIFY_CODE))
.withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK)
.navigation(this, new NavCallback() {
@Override
public void onArrival(Postcard postcard) {
exitPage();
}
@Override
public void onLost(Postcard postcard) {
// do nothing
}
});
}
@Override
public void onConfigInfo(int info) {
}
@Override
public void onConfigError(int code, String msg) {
String errorInfo = "***" + "error code is: " + code + ", error msg is: " + msg + "\n";
LogUtil.e(TAG, errorInfo);
// 仅展示新定义的错误码
for (EZConfigWifiErrorEnum error : EZConfigWifiErrorEnum.values()){
if (code == error.code){
if (mAllErrorInfo == null){
mAllErrorInfo = "" + errorInfo;
}else{
mAllErrorInfo += errorInfo;
}
break;
}
}
// 用户拒绝连接设备热点则认为配网失败
if (code == EZConfigWifiErrorEnum.USER_REFUSED_CONNECTION_REQUEST.code){
failedToConfig();
}
}
@Override
public void onTimeout() {
failedToConfig();
}
private void failedToConfig(){
stopConfig();
switch (mPresenter.getType()){
case ConfigWifiTypeConstants.CONFIG_WIFI_SDK_AP:
case ConfigWifiTypeConstants.FULL_SDK_AP:
ManualConnectDeviceHotspotActivity.Companion.launch(this, getIntent());
break;
default:
showConfigFailUi();
break;
}
}
private void startConfig(){
if (mPresenter != null){
mPresenter.setCallback(this);
mPresenter.startConfigWifi(getApplication(), getIntent());
}
}
private void stopConfig(){
if (mPresenter != null){
mPresenter.setCallback(null);
mPresenter.stopConfigWifi();
}
}
private void initUI() {
mConfigResultView = findViewById(R.id.app_common_vg_config_result);
mConfigSuccessView = findViewById(R.id.app_common_config_result_success);
mConfigFailView = findViewById(R.id.app_common_config_result_fail);
mConfigErrorInfoTv = findViewById(R.id.app_common_all_config_error_info);
}
private void showExecutingUi(){
runOnUiThread(new Runnable() {
@Override
public void run() {
mConfigResultView.setVisibility(View.GONE);
mConfigSuccessView.setVisibility(View.GONE);
mConfigFailView.setVisibility(View.GONE);
mAllErrorInfo = null;
}
});
}
private void showConfigSuccessUi(){
runOnUiThread(new Runnable() {
@Override
public void run() {
mConfigResultView.setVisibility(View.VISIBLE);
mConfigSuccessView.setVisibility(View.VISIBLE);
mConfigFailView.setVisibility(View.GONE);
mAllErrorInfo = null;
}
});
}
private void showConfigFailUi(){
runOnUiThread(new Runnable() {
@Override
public void run() {
mConfigErrorInfoTv.setText(mAllErrorInfo);
mConfigResultView.setVisibility(View.VISIBLE);
mConfigSuccessView.setVisibility(View.GONE);
mConfigFailView.setVisibility(View.VISIBLE);
mAllErrorInfo = null;
}
});
}
}
package ezviz.ezopensdkcommon.configwifi;
import android.app.Application;
import android.content.Intent;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
public abstract class ConfigWifiExecutingActivityPresenter {
private static List<ConfigWifiExecutingActivityPresenter> mAvailablePresenterList = new ArrayList<>();
protected Callback mCallback;
protected String mType;
public String getType(){
return mType;
}
public void setCallback(Callback mCallback) {
this.mCallback = mCallback;
}
public static void addPresenter(ConfigWifiExecutingActivityPresenter presenter){
// 移除同类presenter,避免互相干扰
clearPresenter(presenter.mType);
mAvailablePresenterList.add(presenter);
}
public static ConfigWifiExecutingActivityPresenter getPresenter(String type){
for (ConfigWifiExecutingActivityPresenter presenter: mAvailablePresenterList){
if (!TextUtils.isEmpty(type) && type.equals(presenter.mType)){
return presenter;
}
}
return null;
}
private static void clearPresenter(String type){
List<ConfigWifiExecutingActivityPresenter> mFoundList = new ArrayList<>();
for (ConfigWifiExecutingActivityPresenter presenter: mAvailablePresenterList){
if (!TextUtils.isEmpty(type) && type.equals(presenter.mType)){
mFoundList.add(presenter);
}
}
mAvailablePresenterList.removeAll(mFoundList);
}
public abstract void startConfigWifi(Application app, Intent configParam);
public abstract void stopConfigWifi();
public interface Callback{
void onConnectedToWifi();
/**
* 设备已经上线,仅供完整SDK使用
*/
void onConnectedToPlatform();
void onConfigInfo(int info);
void onConfigError(int code, String msg);
void onTimeout();
}
}
package ezviz.ezopensdkcommon.configwifi;
public class ConfigWifiTypeConstants {
public final static String FULL_SDK_AP = "FULL_SDK_AP";
public final static String FULL_SDK_SMART_CONFIG = "FULL_SDK_SMART_CONFIG";
public final static String FULL_SDK_SOUND_WAVE = "FULL_SDK_SOUND_WAVE";
public final static String CONFIG_WIFI_SDK_AP = "CONFIG_WIFI_SDK_AP";
public final static String CONFIG_WIFI_SDK_SMART_CONFIG = "CONFIG_WIFI_SDK_SMART_CONFIG";
public final static String CONFIG_WIFI_SDK_SOUND_WAVE = "CONFIG_WIFI_SDK_SOUND_WAVE";
}
package ezviz.ezopensdkcommon.configwifi;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import ezviz.ezopensdkcommon.R;
import ezviz.ezopensdkcommon.common.IntentConstants;
import ezviz.ezopensdkcommon.common.LogUtil;
import ezviz.ezopensdkcommon.common.RootActivity;
import ezviz.ezopensdkcommon.common.TitleBar;
public class ManualChooseConfigWifiWayActivity extends RootActivity {
private final String TAG = ManualChooseConfigWifiWayActivity.class.getSimpleName();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_manual_choose_config_wifi_way);
initTitleBar();
initUi();
}
protected void initUi() {
showAvailableConfigWays();
}
private void showAvailableConfigWays() {
boolean isUsingFullSdk = getIntent().getBooleanExtra(IntentConstants.USING_FULL_EZVIZ_SDK, false);
View toApView = findViewById(R.id.btn_to_ap);
if (toApView != null){
if (isUsingFullSdk){
toApView.setVisibility(getIntent().getBooleanExtra(IntentConstants.EXTRA_SUPPORT_AP, false) ? View.VISIBLE : View.GONE);
}
toApView.setOnClickListener(mChooseConfigWifiListener);
}
View toSmartConfigView = findViewById(R.id.btn_to_smart_config);
if (toSmartConfigView != null){
if (isUsingFullSdk){
toSmartConfigView.setVisibility(getIntent().getBooleanExtra(IntentConstants.EXTRA_SUPPORT_SMART_CONFIG, false) ? View.VISIBLE : View.GONE);
}
toSmartConfigView.setOnClickListener(mChooseConfigWifiListener);
}
View toSoundWaveView = findViewById(R.id.btn_to_sound_wave);
if (toSoundWaveView != null){
if (isUsingFullSdk){
toSoundWaveView.setVisibility(getIntent().getBooleanExtra(IntentConstants.EXTRA_SUPPORT_SOUND_WAVE, false) ? View.VISIBLE : View.GONE);
}
toSoundWaveView.setOnClickListener(mChooseConfigWifiListener);
}
}
private View.OnClickListener mChooseConfigWifiListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent toConfigIntent = new Intent();
toConfigIntent.putExtras(getIntent());
String presenterType = null;
ComponentName componentName = null;
int id = v.getId();
if (id == R.id.btn_to_ap){
if (getIntent().getBooleanExtra(IntentConstants.USING_CONFIG_WIFI_SDK, false)){
presenterType = ConfigWifiTypeConstants.CONFIG_WIFI_SDK_AP;
componentName = new ComponentName(mContext, ManualInputDeviceHotspotInfoActivity.class);
}else{
presenterType = ConfigWifiTypeConstants.FULL_SDK_AP;
componentName = new ComponentName(mContext, ConfigWifiExecutingActivity.class);
}
}else if(id == R.id.btn_to_smart_config){
if (getIntent().getBooleanExtra(IntentConstants.USING_CONFIG_WIFI_SDK, false)){
presenterType = ConfigWifiTypeConstants.CONFIG_WIFI_SDK_SMART_CONFIG;
}else{
presenterType = ConfigWifiTypeConstants.FULL_SDK_SMART_CONFIG;
}
componentName = new ComponentName(mContext, ConfigWifiExecutingActivity.class);
toConfigIntent.putExtra(IntentConstants.EXTRA_SUPPORT_SOUND_WAVE, false);
}else if(id == R.id.btn_to_sound_wave){
if (getIntent().getBooleanExtra(IntentConstants.USING_CONFIG_WIFI_SDK, false)){
presenterType = ConfigWifiTypeConstants.CONFIG_WIFI_SDK_SOUND_WAVE;
}else{
presenterType = ConfigWifiTypeConstants.FULL_SDK_SOUND_WAVE;
}
componentName = new ComponentName(mContext, ConfigWifiExecutingActivity.class);
toConfigIntent.putExtra(IntentConstants.EXTRA_SUPPORT_SMART_CONFIG, false);
}else{
toConfigIntent = null;
}
if (toConfigIntent != null){
toConfigIntent.putExtra(IntentConstants.SELECTED_PRESENTER_TYPE, presenterType);
toConfigIntent.setComponent(componentName);
startActivity(toConfigIntent);
}else{
LogUtil.e(TAG, "not find any suitable config wifi way!");
}
}
};
private void initTitleBar() {
TitleBar titleBar = (TitleBar) findViewById(R.id.title_bar);
if (titleBar != null){
titleBar.setTitle(getString(R.string.choose_config_wifi_way));
titleBar.addBackButton(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
}
}
@file:Suppress("UNUSED_PARAMETER")
package ezviz.ezopensdkcommon.configwifi
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.text.TextUtils
import android.view.View
import com.ezviz.sdk.configwifi.WiFiUtils
import com.hikvision.wifi.configuration.BaseUtil
import ezviz.ezopensdkcommon.R
import ezviz.ezopensdkcommon.common.IntentConstants.*
import ezviz.ezopensdkcommon.common.RootActivity
import kotlinx.android.synthetic.main.activity_manual_connect_device_hotspot.*
class ManualConnectDeviceHotspotActivity : RootActivity() {
private var mSSID: String? = null
private var mPWD: String? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_manual_connect_device_hotspot)
initUi()
}
override fun initUi() {
super.initUi()
intent?.apply {
val prefix = "EZVIZ_"
mSSID = getStringExtra(DEVICE_HOTSPOT_SSID)
if(TextUtils.isEmpty(mSSID)){
mSSID = prefix + getStringExtra(DEVICE_SERIAL)
}
mPWD = getStringExtra(DEVICE_HOTSPOT_PWD)
if(TextUtils.isEmpty(mPWD)){
mPWD = prefix + getStringExtra(DEVICE_VERIFY_CODE)
}
tv_ssid.text = getString(R.string.device_hotspot_ssid) + mSSID
tv_pwd.text = getString(R.string.device_hotspot_pwd) + mPWD
}
}
override fun onResume() {
super.onResume()
checkWifiInfo()
}
private fun checkWifiInfo() { // 优先使用getCurrentWifiSsid方法获取wifi名
var wifiName = WiFiUtils.getCurrentWifiSsid(this)
// 如上述方式无效,则使用getWifiSSID方法进行获取
if (!isValidWifiSSID(wifiName)) {
wifiName = BaseUtil.getWifiSSID(this)
}
val isConnected = isValidWifiSSID(wifiName)
showToast("Connected to device hotspot: $isConnected")
if (isConnected) {
intent?.apply {
putExtra(USE_MANUAL_AP_CONFIG, true)
ConfigWifiExecutingActivity.launch(mContext, this)
}
}
}
private fun isValidWifiSSID(wifiName: String): Boolean {
return mSSID != null && mSSID.equals(wifiName)
}
fun onclickGoToWifiSetting(view: View) {
val intent = Intent(Settings.ACTION_WIFI_SETTINGS)
startActivity(intent)
}
companion object {
fun launch(context: Context, intent: Intent?) {
val newIntent = Intent(context, ManualConnectDeviceHotspotActivity::class.java)
newIntent.putExtras(intent!!)
newIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
context.startActivity(newIntent)
}
}
}
\ No newline at end of file
package ezviz.ezopensdkcommon.configwifi
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.view.View
import ezviz.ezopensdkcommon.R
import ezviz.ezopensdkcommon.common.IntentConstants
import ezviz.ezopensdkcommon.common.RootActivity
import kotlinx.android.synthetic.main.activity_manual_input_device_hotspot_info.*
class ManualInputDeviceHotspotInfoActivity : RootActivity() {
private val mEzvizDeviceHotspotPrefix = "EZVIZ_"
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_manual_input_device_hotspot_info)
// app_common_device_hotspot_name.setText("")
}
fun onClickNext(view: View){
var deviceHotspotName = app_common_device_hotspot_name.text.toString()
var deviceHotspotPwd = app_common_device_hotspot_pwd.text.toString()
if (TextUtils.isEmpty(deviceHotspotName)){
deviceHotspotName = mEzvizDeviceHotspotPrefix + intent.getStringExtra(IntentConstants.DEVICE_SERIAL)
}
// if (TextUtils.isEmpty(deviceHotspotPwd)){
// deviceHotspotPwd = mEzvizDeviceHotspotPrefix + intent.getStringExtra(IntentConstants.DEVICE_VERIFY_CODE)
// }
val jumpIntent = Intent(this, ConfigWifiExecutingActivity::class.java)
jumpIntent.putExtras(intent)
jumpIntent.putExtra(IntentConstants.DEVICE_HOTSPOT_SSID, deviceHotspotName)
jumpIntent.putExtra(IntentConstants.DEVICE_HOTSPOT_PWD, deviceHotspotPwd)
startActivity(jumpIntent)
}
}
package ezviz.ezopensdkcommon.debug;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* 将当前app的指定日志级别的log写入到目标文件
* 请务必保证app具有以下权限
<!--日志读取权限-->
<uses-permission android:name="android.permission.READ_LOGS" />
<!--sd卡写入权限-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
*/
public class LogFileService {
private final static String TAG = "@@@" + LogFileService.class.getSimpleName();
private static boolean started = false;
public static boolean isStarted(){
return started;
}
public static void start(String logFileNameWithPath){
Log.w(TAG, "start()");
final File logFile = new File(logFileNameWithPath);
// step1: 检查日志文件写入功能是否已经开启
if (started){
Log.e(TAG, "LogFileService has started, do not call LogFileService.start() again!");
return;
}
// step2: 检查并创建日志文件所在目录
if (logFile.isDirectory() && !logFile.delete()){
Log.e(TAG, "logFile exist, but is a directory!");
return;
}
File logFileFolder = logFile.getParentFile();
boolean exist = logFileFolder.exists();
if (!exist){
exist = logFileFolder.mkdirs();
}
if (!exist){
Log.e(TAG, "logFileFolder can not be created!");
return;
}
new Thread(new Runnable() {
@Override
public void run() {
started = true;
try {
int currentPid = android.os.Process.myPid();
Log.w(TAG, "save log of pid" + "(" + currentPid + ")" + " to log file"+
"(" + logFile.getPath() +")");
// 日志来源
String logcatCommand = "logcat *:D --pid=" + currentPid;
Log.w(TAG, "logcatCommand is: " + logcatCommand);
Process process = Runtime.getRuntime().exec(logcatCommand);
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
// 日志输出
FileOutputStream fos = new FileOutputStream(logFile, true);
String line;
Log.w(TAG, "start to write log");
while (started) {
if ((line = bufferedReader.readLine()) != null){
fos.write((line + "\n").getBytes());
fos.flush();
}
}
fos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}).start();
}
public static void stop(){
Log.w(TAG, "stop()");
if (started){
started = false;
Log.w(TAG, "stop to write log");
}
}
}
package ezviz.ezopensdkcommon.debug;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.util.Log;
import ezviz.ezopensdkcommon.demo.DemoConfig;
public class LogFileUtil {
private final static String TAG = "@@@" + LogFileUtil.class.getSimpleName();
/**
* 保存日志文件:启动
*/
public static void startSaveLogToFile(Context context){
// 检查存储权限
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && context.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED){
Log.e(TAG, "startSaveLogToFile failed: lack of Manifest.permission.WRITE_EXTERNAL_STORAGE");
return;
}
final String logFileNameWithPath = DemoConfig.getDemoFolder() + "/log.txt";
LogFileService.start(logFileNameWithPath);
}
/**
* 保存日志文件:停止
*/
public static void stopSaveLogToFile(){
LogFileService.stop();
}
/**
* 保存日志文件:获取当前状态
*/
public static boolean isSavingLogToFile(){
return LogFileService.isStarted();
}
}
package ezviz.ezopensdkcommon.demo;
import android.os.Environment;
import ezviz.ezopensdkcommon.common.BaseApplication;
public class DemoConfig {
/**
* 是否打开调试页面
*/
public static final boolean isNeedJumpToTestPage = false;
/**
* 文件保存位置
*/
private static final String DEMO_FOLDER = BaseApplication.mInstance.getExternalCacheDir() + "/0_OpenSDK";
public static String getDemoFolder(){
return DEMO_FOLDER;
}
public static String getRecordsFolder(){
return DEMO_FOLDER + "/Records";
}
public static String getCapturesFolder(){
return DEMO_FOLDER + "/Captures";
}
public static String getStreamsFolder(){
return DEMO_FOLDER + "/Streams";
}
}
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="60"
android:fromDegrees="-4"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="3"
android:repeatMode="restart"
android:toDegrees="4" />
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/query_loding1"
android:duration="150">
</item>
<item
android:drawable="@drawable/query_loding2"
android:duration="150">
</item>
<item
android:drawable="@drawable/query_loding3"
android:duration="150">
</item>
<item
android:drawable="@drawable/query_loding4"
android:duration="150">
</item>
<item
android:drawable="@drawable/query_loding5"
android:duration="150">
</item>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/download8"
android:duration="150">
</item>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:fromYDelta="25"
android:toYDelta="100%p" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:fromYDelta="100%p"
android:toYDelta="0" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
根标签为animation-list,其中oneshot代表着是否只展示一遍,设置为false会不停的循环播放动画
根标签下,通过item标签对动画中的每一个图片进行声明
android:duration 表示展示所用的该图片的时间长度
-->
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item android:drawable="@drawable/play_full_multiple" android:duration="500"></item>
<item android:drawable="@drawable/play_full_multiple2" android:duration="500"></item>
<item android:drawable="@drawable/play_full_multiple3" android:duration="500"></item>
<item android:drawable="@drawable/play_full_multiple4" android:duration="500"></item>
<item android:drawable="@drawable/play_full_multiple5" android:duration="500"></item>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1200"
android:fromDegrees="0.0"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:repeatCount="infinite"
android:repeatMode="restart"
android:toDegrees="720.0" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#adadad"/>
<item android:color="#ff0000"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/event_message_play_btn" android:state_pressed="true"/>
<item android:drawable="@color/transparent"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:color="#1b9ee2"/>
<item android:state_pressed="true" android:color="#1b9ee2"/>
<item android:color="@color/common_text"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/gray_text"/>
<item android:state_pressed="true" android:color="@color/white"/>
<item android:color="@color/message_button_text"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/white" />
<item android:state_enabled="false" android:color="@color/quality_focused_color"/>
<item android:state_pressed="true" android:color="@color/quality_focused_color"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#adadad"/>
<item android:color="#3aa3ee"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="@color/white"/>
<item android:state_focused="true" android:color="@color/white"/>
<item android:state_pressed="true" android:color="@color/white"/>
<item android:color="@color/black_text"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#5c5b5b"/>
<item android:state_pressed="true" android:color="#5c5b5b"/>
<item android:color="#fff"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#44000000"
android:endColor="#00000000"
android:angle="90"
/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/link_account1"
android:duration="400"/>
<item
android:drawable="@drawable/link_account2"
android:duration="400"/>
<item
android:drawable="@drawable/link_account3"
android:duration="400"/>
<item
android:drawable="@drawable/link_account4"
android:duration="400"/>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/auto_wifi_wait1"
android:duration="400"/>
<item
android:drawable="@drawable/auto_wifi_wait2"
android:duration="400"/>
<item
android:drawable="@drawable/auto_wifi_wait3"
android:duration="400"/>
<item
android:drawable="@drawable/auto_wifi_wait4"
android:duration="400"/>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/back"></item>
<item android:state_pressed="true" android:drawable="@drawable/back_press"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#00000000" />
<stroke
android:width="2dp"
android:color="@color/c1" />
<padding
android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/border" android:state_pressed="true"/>
<item android:drawable="@drawable/border" android:state_selected="true"/>
<item android:drawable="@drawable/border_transparent"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#00000000" />
<stroke
android:width="1dp"
android:color="#00000000" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/auto_button_bule"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/auto_button_blue_sel" ></item>
<item android:state_enabled="false" android:drawable="@drawable/add_camera_button_dis"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/auto_button_red"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/auto_button_red_sel" ></item>
<item android:state_enabled="false" android:drawable="@drawable/add_camera_button_dis"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/btn_r1_retry_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/btn_r1_retry_normal" android:state_enabled="true" android:state_pressed="false"/>
<item android:drawable="@drawable/btn_r1_retry_pressed" android:state_enabled="true" android:state_pressed="true"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/btn_2_select" />
<item android:state_pressed="false" android:drawable="@drawable/btn_2_normal" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@color/cameralist_gray"></item>
<item android:state_pressed="false" android:drawable="@color/transparent" ></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/history_video" android:color="@color/black"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/history_video_sel" android:color="@color/black"></item>
<item android:state_enabled="false" android:drawable="@drawable/history_video_dis" android:color="@color/black"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/camera_list_item_press"></item>
<item android:state_pressed="false" android:drawable="@drawable/camera_list_item"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/capture"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/capture_press"></item>
<item android:state_enabled="false" android:drawable="@drawable/capture_disable"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/checked" android:state_checked="true"/>
<item android:drawable="@drawable/unchecked"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rotate android:drawable="@drawable/collect_loading"
android:visible="true"
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%" xmlns:android="http://schemas.android.com/apk/res/android">
</rotate>
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ckb_normal" android:state_enabled="false"/>
<item android:drawable="@drawable/ckb_normal" android:state_enabled="true" android:state_checked="false"/>
<item android:drawable="@drawable/ckb_selected" android:state_enabled="true" android:state_checked="true"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/btn_collect_prs"></item>
<item android:drawable="@drawable/btn_collect"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/common_loading"
android:pivotX="50%"
android:pivotY="50%" >
</animated-rotate>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/common_refresh"
android:pivotX="50%"
android:pivotY="50%" >
</animated-rotate>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/common_title_back_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/common_title_back"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/common_title_cancel_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/common_title_cancel"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/common_title_input_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/common_title_input"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/common_title_setup_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/common_title_setup"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/common_title_vertical_more_dark_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/common_title_vertical_more_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/common_title_vertical_more_dark"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/connect_wifi1"
android:duration="400"/>
<item
android:drawable="@drawable/connect_wifi2"
android:duration="400"/>
<item
android:drawable="@drawable/connect_wifi3"
android:duration="400"/>
<item
android:drawable="@drawable/connect_wifi4"
android:duration="400"/>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="@color/white" android:endColor="@color/white"
android:angle="90" />
<!--<gradient android:startColor="#c0173276" android:endColor="#c02e4f87"
android:angle="90" />
<stroke android:dashWidth="2dp" android:dashGap="0dp"
android:width="3dp" android:color="#FFFFFFFF"></stroke> -->
<!--
描边
-->
<corners android:bottomRightRadius="6dp"
android:bottomLeftRadius="6dp" android:topLeftRadius="6dp"
android:topRightRadius="6dp" /><!--设置圆角
-->
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/del_button_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/del_button_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/del_button"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid
android:color="@color/white"/>
<stroke
android:width="0.5dp"
android:color="@color/gray"/>
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:left="-2dp"
android:right="-2dp">
<shape>
<solid android:color="#fff"/>
<stroke
android:color="@color/c1"
android:width="0.5dp"/>
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/equipment"></item>
<item android:state_pressed="true" android:drawable="@drawable/equipment_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/exit" android:state_pressed="false"></item>
<item android:drawable="@drawable/exit_sel" android:state_pressed="true"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#00000000" />
<stroke
android:width="2dp"
android:color="@color/ez_c1" />
<padding
android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ez_border" android:state_pressed="true"/>
<item android:drawable="@drawable/ez_border" android:state_selected="true"/>
<item android:drawable="@drawable/border_transparent"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/add3_button" android:state_enabled="false"/>
<item android:drawable="@drawable/add3_button" android:state_enabled="true" android:state_pressed="false"/>
<item android:drawable="@drawable/add3_button_sel" android:state_enabled="true" android:state_pressed="true"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/ez_real_play"></item>
<item android:state_pressed="true" android:drawable="@drawable/ez_real_play_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/preview_recording"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/preview_recording_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/preview_recording_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/add2_button_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/add2_button"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/pause_sel" android:state_pressed="true"></item>
<item android:drawable="@drawable/pause"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/preview_unvoice_btn_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/preview_unvoice_btn" android:state_enabled="false"/>
<item android:drawable="@drawable/preview_unvoice_btn"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/preview_voice_btn_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/preview_voice_btn_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/preview_voice_btn"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/flashlight" android:state_checked="true"/>
<item android:drawable="@drawable/flashlight_closed"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/amplify_screen_dis" android:state_checked="false" android:state_enabled="false"/>
<item android:drawable="@drawable/shrink_screen_pressed" android:state_checked="true" android:state_pressed="true"/>
<item android:drawable="@drawable/amplify_screen_pressed" android:state_checked="false" android:state_pressed="true"/>
<item android:drawable="@drawable/shrink_screen_normal" android:state_checked="true"/>
<item android:drawable="@drawable/amplify_screen_normal" android:state_checked="false"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:state_pressed="false"
android:drawable="@drawable/graybtn"/>
<item
android:state_pressed="true"
android:drawable="@drawable/graybtn_press"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/grouplayout_item_bg_sel" android:state_pressed="true"/>
<item android:drawable="@android:color/transparent"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/horizontal_shrink_screen_pressed" android:state_checked="true" android:state_pressed="true"/>
<item android:drawable="@drawable/horizontal_shrink_screen_pressed" android:state_checked="false" android:state_pressed="true"/>
<item android:drawable="@drawable/horizontal_shrink_screen_normal" android:state_checked="true"/>
<item android:drawable="@drawable/horizontal_shrink_screen_normal" android:state_checked="false"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid
android:color="@color/white"/>
<stroke
android:width="0.5dp"
android:color="@color/line_color"/>
<corners
android:topLeftRadius="10dp"
android:topRightRadius="10dp"
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"/>
<padding
android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/add2_button_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/add2_button"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/leave_message_play"></item>
<item android:state_pressed="true" android:drawable="@drawable/leave_message_play_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/add_button_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/add_button"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/message_back_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/message_back"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@color/message_bg" />
<stroke
android:width="0.5dp"
android:color="@color/common_line" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/common_bg" android:state_pressed="true"/>
<item android:drawable="@color/white"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/message_play_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/message_play_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/message_play"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/message_video_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/message_video_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/message_video"/>
</selector>
\ No newline at end of file
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%" android:pivotY="50%"
android:fromDegrees="0" android:toDegrees="360">
<shape
android:shape="ring"
android:innerRadiusRatio="3"
android:thicknessRatio="8"
android:useLevel="false">
<gradient
android:type="sweep"
android:useLevel="false"
android:startColor="@color/white"
android:endColor="@color/black"
android:centerY="0.50" />
</shape>
</rotate>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/my_switch_on" android:state_selected="true"/>
<item android:drawable="@drawable/my_switch_off"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/name_del_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/name_del"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/message_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/message"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@color/cameralist_gray"></item>
<item android:state_pressed="false" android:drawable="@color/transparent" ></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/playback_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/playback"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/setup_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/setup"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/palyback_close"></item>
<item android:state_pressed="true" android:drawable="@drawable/palyback_close_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/palyback_previously"></item>
<item android:state_pressed="true" android:drawable="@drawable/palyback_previously_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/palyback_video_now"></item>
<item android:state_pressed="true" android:drawable="@drawable/palyback_video_now_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/palyback_video"></item>
<item android:state_pressed="true" android:drawable="@drawable/palyback_video_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:drawable="@drawable/play_balanced"></item>
<item android:state_enabled="false" android:drawable="@drawable/play_balanced_disabel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_big"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_big_press"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/play_button_sel"></item>
<item android:state_pressed="false" android:drawable="@drawable/play_button_bg" ></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_close"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_close_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:drawable="@drawable/play_flunet"></item>
<item android:state_enabled="false" android:drawable="@drawable/play_flunet_disabel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_full_pause"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_full_pause_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_full_play"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_full_play_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_full_previously"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_full_previously_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/yuntai_normal"></item>
<item android:state_pressed="true" android:drawable="@drawable/yuntai_pressed"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:state_focused="false" android:state_pressed="false" android:color="@color/white"/>
<item android:state_enabled="false" android:color="@color/white"/>
<item android:state_pressed="true" android:color="@color/preview_quality_color"/>
<item android:state_focused="true" android:color="@color/preview_quality_color"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/h_bg"></item>
<item android:state_pressed="true" android:drawable="@drawable/h_bg_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/sound_off_sel" android:state_pressed="true"></item>
<item android:drawable="@drawable/sound_off"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/sound_on_sel" android:state_pressed="true"></item>
<item android:drawable="@drawable/sound_on"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_full_stop"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_full_stop_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/h_talk"></item>
<item android:state_pressed="true" android:drawable="@drawable/h_talk_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_full_video_now"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_full_video_now_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_full_video"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_full_video_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:drawable="@drawable/play_hd"></item>
<item android:state_enabled="false" android:drawable="@drawable/play_hd_disabel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/preview_play_btn"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/preview_play_btn_sel"></item>
<item android:state_enabled="false" android:drawable="@drawable/preview_play_btn_dis"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_previously"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/play_previously_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_previously_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/preview_close_video"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/preview_close_video_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/preview_close_video_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_ptz"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/play_ptz_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_ptz_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_small"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_small_press"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_speech"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/play_speech_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_speech_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/stoplay_btn"></item>
<item android:state_pressed="true" android:drawable="@drawable/stoplay_btn_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_talk"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/play_talk_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_talk_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/play_talkback"></item>
<item android:state_pressed="true" android:drawable="@drawable/play_talkback_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_video"></item>
<item android:state_enabled="false" android:state_pressed="false" android:drawable="@drawable/play_video_dis"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_video_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play_voice"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_voice_sel"></item>
<item android:state_enabled="false" android:drawable="@drawable/play_voice_dis"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/selected_icon" android:state_checked="true"/>
<item android:drawable="@drawable/select_icon"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/playback_cut"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/playback_cut_sel"></item>
<item android:state_enabled="false" android:drawable="@drawable/playback_cut_disable"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/play"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/play_press"></item>
<item android:state_enabled="false" android:drawable="@drawable/play_disable"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/preview_down_bg_pressed" android:state_pressed="true"/>
<item android:drawable="@drawable/preview_down_bg_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/preview_enlarge_btn_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/preview_enlarge_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/preview_enlarge"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/ptz_turn"></item>
<item android:state_pressed="true" android:drawable="@drawable/ptz_turn_sel"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/push_close"/>
<item android:state_pressed="true" android:drawable="@drawable/push_close_sel"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:width="1dp" android:color="#afafafaf" />
<corners android:topLeftRadius="10dp"
android:topRightRadius="10dp"
android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/del_button_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/read_button_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/read_button"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:state_pressed="true"
android:drawable="@drawable/cameralist_add_camer_btn_sel"/>
<item
android:state_pressed="false"
android:drawable="@drawable/cameralist_add_camer_btn"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/server1"
android:duration="400"/>
<item
android:drawable="@drawable/server2"
android:duration="400"/>
<item
android:drawable="@drawable/server3"
android:duration="400"/>
<item
android:drawable="@drawable/server4"
android:duration="400"/>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/palyback_date_down" android:state_pressed="false"></item>
<item android:drawable="@drawable/palyback_date_down_sel" android:state_pressed="true"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/palyback_close" android:state_pressed="false"></item>
<item android:drawable="@drawable/palyback_close_sel" android:state_pressed="true"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/palyback_pause_sel" android:state_pressed="true"></item>
<item android:drawable="@drawable/palyback_pause"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/remote_play_sel" android:state_pressed="true"></item>
<item android:drawable="@drawable/remote_play"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/sound_off_sel_blue" android:state_pressed="true"></item>
<item android:drawable="@drawable/sound_off_blue"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/sound_on_sel_blue" android:state_pressed="true"></item>
<item android:drawable="@drawable/sound_on_blue"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@android:id/background">
<shape>
<corners android:radius="1dp" />
<gradient
android:angle="270"
android:centerColor="#ff000000"
android:centerY="1"
android:endColor="#ff000000"
android:startColor="#ff000000" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<corners android:radius="1dp" />
<gradient
android:angle="270"
android:centerColor="#249bff"
android:centerY="1"
android:endColor="#249bff"
android:startColor="#249bff" />
</shape>
</clip>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 按下状态 -->
<item android:drawable="@drawable/playbackslider_sel" android:state_pressed="true"/>
<!-- 普通无焦点状态 -->
<item android:drawable="@drawable/playbackslider" android:state_focused="false" android:state_pressed="false"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:state_pressed="false"
android:drawable="@drawable/search_bnt"/>
<item
android:state_pressed="true"
android:drawable="@drawable/search_bnt_sel"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/seekbar_thumb"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid
android:color="@color/white"/>
<stroke
android:width="0.5dp"
android:color="@color/gray"/>
<corners
android:topLeftRadius="5dp"
android:topRightRadius="5dp"
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/speech_1"
android:duration="200"/>
<item
android:drawable="@drawable/speech_2"
android:duration="200"/>
<item
android:drawable="@drawable/speech_3"
android:duration="200"/>
<item
android:drawable="@drawable/speech_4"
android:duration="200"/>
<item
android:drawable="@drawable/speech_5"
android:duration="200"/>
</animation-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/speech_1" android:state_pressed="true"/>
<item android:drawable="@drawable/speech_0"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="true" android:state_pressed="false" android:drawable="@drawable/stop"></item>
<item android:state_enabled="true" android:state_pressed="true" android:drawable="@drawable/stop_press"></item>
<item android:state_enabled="false" android:drawable="@drawable/stop_disable"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:state_pressed="false"
android:drawable="@drawable/tittel_button_bg"/>
<item
android:state_pressed="true"
android:drawable="@drawable/tittel_button_press_bg"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient android:startColor="#66888888" android:endColor="#66FFFFFF" android:type="linear" android:angle="0"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/title_down_play_sel" android:state_enabled="false"/>
<item android:drawable="@drawable/title_down_play_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/title_down_play"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/preview_voice_btn_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/preview_voice_btn_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/preview_voice_btn"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stoplay_btn_sel" android:state_pressed="true"/>
<item android:drawable="@drawable/preview_stopplay_btn_dis" android:state_enabled="false"/>
<item android:drawable="@drawable/stoplay_btn"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="false" android:drawable="@drawable/preview_video_selection"></item>
<item android:state_pressed="true" android:drawable="@drawable/preview_video_selection_hover"></item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/wifi_config_bg"
android:orientation="vertical"
android:keepScreenOn="true">
<!--title-->
<RelativeLayout
android:id="@+id/title_layout"
android:layout_width="match_parent"
android:layout_height="44dp"
android:background="@color/white"
>
<ImageView
android:id="@+id/back_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:background="@drawable/common_title_back_selector"
android:onClick="onClickExit"/>
<TextView
android:id="@+id/app_common_tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/config_wifi_page"
android:textColor="@color/title_text"
android:textSize="@dimen/title_text_size"
/>
</RelativeLayout>
<!--配网进度展示-->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:gravity="center_horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="50dp"
android:gravity="center_vertical"
android:layout_gravity="center_horizontal">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginRight="20dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/configuring_wifi"
android:textSize="@dimen/txt_size_title" />
</LinearLayout>
<TextView
android:id="@+id/tv_connecting_to_device"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ap_config_connecting_to_device"
android:textSize="@dimen/txt_size_notify"
android:layout_marginBottom="@dimen/margin_line_widget"
android:textColor="@color/black"
android:visibility="gone"/>
<TextView
android:id="@+id/tv_registering_to_platform"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ap_config_device_try_registering_ezviz_platform"
android:textSize="@dimen/txt_size_content"
android:layout_marginBottom="@dimen/margin_line_widget"
android:textColor="@color/gray"
android:visibility="gone"/>
<TextView
android:id="@+id/tv_adding_to_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/step3_adding_device_to_account"
android:textSize="@dimen/txt_size_content"
android:textColor="@color/gray"
android:visibility="gone"/>
</LinearLayout>
<!--配网结果展示-->
<RelativeLayout
android:id="@+id/app_common_vg_config_result"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:alpha="1"
android:visibility="visible">
<LinearLayout
android:id="@+id/app_common_config_result_fail"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:gravity="center_horizontal"
android:visibility="visible">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/failure_wifi" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/failed_to_config_wifi"
android:textColor="@color/red"
android:layout_marginTop="30dp"
android:layout_marginBottom="30dp"/>
<TextView
android:id="@+id/app_common_all_config_error_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_marginBottom="50dp"
android:textSize="10dp"
android:text="这里用于展示具体的错误信息"
android:textColor="@color/red"
android:textStyle="bold"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/content_text_size"
android:text="@string/try_again"
android:onClick="onClickRetryConfigWifi"/>
</LinearLayout>
<LinearLayout
android:id="@+id/app_common_config_result_success"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:gravity="center_horizontal"
android:visibility="gone">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/success_img" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/config_wifi_succeeded"
android:textColor="@color/green"
android:layout_marginTop="30dp"
android:layout_marginBottom="30dp"
android:textSize="20dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/content_text_size"
android:text="@string/config_wifi_for_another_device"
android:onClick="onClickToConfigAnother"/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@color/common_bg"
tools:context="com.videogo.devicemgt.EZUpgradeDeviceActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:weightSum="4"
android:layout_alignParentTop="true">
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/white"
android:layout_marginTop="15dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="@+id/ezupgrade_text_version_desc"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"/>
</RelativeLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_weight="3"
android:background="@color/white"
android:layout_marginBottom="46dp">
<LinearLayout
android:id="@+id/ezupgrade_ll_btn"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="left|center_vertical">
<Button
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="升级"
android:textColor="@color/white"
android:background="@drawable/login_btn_selector"
android:id="@+id/ezupgrade_button"/>
</LinearLayout>
<LinearLayout
android:id="@+id/ezupgrade_ll_progress"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal|center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
android:id="@+id/ezupgrade_progress_text"/>
</LinearLayout>
</FrameLayout>
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.videogo.ui.LanDevice.LanDeviceActivity">
<ListView
android:id="@+id/list_device"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ListView>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.videogo.ui.LanDevice.LanDeviceActivateActivity">
<RelativeLayout
android:id="@+id/title_layout"
android:layout_width="match_parent"
android:layout_height="44dp"
android:background="@drawable/common_title"
>
<LinearLayout
android:id="@+id/title_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:orientation="horizontal"
>
</LinearLayout>
<LinearLayout
android:id="@+id/title_text_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
>
<TextView
android:id="@+id/title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:text="@string/title_activate_device"
android:maxWidth="180dp"
android:singleLine="true"
android:textSize="17sp"
/>
<TextView
android:id="@+id/sub_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="end"
android:maxWidth="180dp"
android:singleLine="true"
android:textSize="11sp"
android:visibility="gone"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/title_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:orientation="horizontal"
>
</LinearLayout>
</RelativeLayout>
<FrameLayout
android:layout_below="@+id/title_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="18.67dp"
android:lineSpacingExtra="8dp"
android:text="@string/sadp_activate_state1"
android:textColor="#333333"
android:textSize="15sp" />
<EditText
android:id="@+id/passwordETV"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginTop="10dp"
android:background="@color/white"
android:digits="@string/abc123ABCOTHER"
android:hint="@string/sadp_password_input_hint"
android:inputType="textVisiblePassword"
android:maxLength="16"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:textColor="#333333"
android:textSize="18sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="7dp"
android:gravity="center"
android:text="@string/sadp_activate_state2"
android:textColor="#adadad"
android:textSize="14sp" />
<Button
android:layout_height="wrap_content"
android:id="@+id/activateBtn"
android:layout_width="match_parent"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="32dp"
android:text="@string/activate" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
</LinearLayout>
</FrameLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.videogo.ui.LanDevice.LanDevicePlayActivity">
<SurfaceView
android:id="@+id/surfaceview"
android:layout_width="match_parent"
android:layout_height="250dp"/>
<RelativeLayout
android:layout_below="@+id/surfaceview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:background="@color/common_bg" >
</RelativeLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="64dp"
android:paddingRight="64dp"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.videogo.test.InterfaceTestActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="left|top">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/interface_self_test_editText"
android:hint="@string/interface_test_hint_input_serial"/>
<Button
android:text="@string/ez_32_api_test"
android:id="@+id/interface_self_test_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="@string/interface_test_v33_api"
android:id="@+id/interface_v33_self_test_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="@string/interface_test_openCloudPage"
android:id="@+id/id_interface_self_test_openCloudPage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="forget password"
android:id="@+id/id_interface_self_test_forgetPassword"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="@string/interface_test_show_limit_dialog"
android:id="@+id/id_show_stream_limit_dialog2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="64dp"
android:paddingRight="64dp"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.videogo.test.InterfaceTestActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="left|top">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/interface_test_editText"
android:hint="@string/interface_test_hint_input_serial"/>
<Button
android:text="@string/ez_32_api_test"
android:id="@+id/interface_test_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="@string/interface_test_v33_api"
android:id="@+id/interface_v33_test_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="@string/interface_test_openCloudPage"
android:id="@+id/id_interface_test_openCloudPage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="forget password"
android:id="@+id/id_interface_test_forgetPassword"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
<Button
android:text="@string/interface_test_show_limit_dialog"
android:id="@+id/id_show_stream_limit_dialog"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick"
/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:orientation="vertical">
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<ImageView
android:id="@+id/shipin7_logo_lyt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_centerHorizontal="true"
android:background="@drawable/login_logo"
android:layout_marginTop="100dp"
>
</ImageView>
<RelativeLayout
android:id="@+id/handle_lyt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_below="@id/shipin7_logo_lyt"
>
<Button
android:id="@+id/btn_online_device"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/interface_call_btn_selector"
android:text="@string/ezviz_device"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<Button
android:id="@+id/btn_ddns"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="@string/ddns_device"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_online_device"
android:onClick="onClick" />
</RelativeLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/page_container">
<RelativeLayout
android:id="@+id/handle_lyt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:visibility="gone">
<Button
android:id="@+id/btn_ezviz_login"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/interface_call_btn_selector"
android:text="ezviz_login"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<Button
android:id="@+id/btn_sdk_login"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="sdk_login"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_ezviz_login"
android:onClick="onClick" />
<Button
android:id="@+id/btn_logout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="logout"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_sdk_login"
android:onClick="onClick" />
<Button
android:id="@+id/btn_support"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="support"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_logout" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:paddingLeft="30dp"
android:paddingRight="30dp"
android:visibility="visible"
android:gravity="center_horizontal">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/login_logo" />
<TextView
android:id="@+id/tv_sdk_ver"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/gray"
android:textSize="@dimen/button_text_size"
android:layout_marginTop="25dp"
android:layout_marginBottom="25dp"
android:text="v1.0.0.20190815"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical"
android:paddingBottom="10dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18dp"
android:text="@string/server_area"/>
<Spinner
android:id="@+id/sp_server_area"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginBottom="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/explain_of_server_area"
android:textSize="10dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18dp"
android:text="@string/app_key"/>
<EditText
android:id="@+id/et_app_key"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/explain_of_app_key"
android:textSize="10dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/access_token"
android:textSize="18dp"/>
<EditText
android:id="@+id/et_access_token"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/explain_of_access_token"
android:textSize="10dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/specified_device"
android:textSize="18dp"/>
<EditText
android:id="@+id/et_specified_device"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/tip_specified_device"
android:textSize="10dp"/>
</LinearLayout>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/start_to_experience"
android:layout_marginTop="20dp"
android:onClick="onClickStartExperience"/>
<TextView
android:id="@+id/tv_ezviz_account_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_by_ezviz_account"
android:textColor="@color/blue_text"
android:onClick="onClickLoginByEzvizAccount"
android:layout_marginTop="10dp"
android:textSize="16dp"
android:textStyle="bold"/>
</LinearLayout>
<FrameLayout
android:id="@+id/vg_login_anim"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible">
<include layout="@layout/layout_login_anim"/>
</FrameLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/wifi_config_bg"
android:orientation="vertical">
<ezviz.ezopensdkcommon.common.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50dp"
android:layout_marginBottom="50dp"
android:layout_centerInParent="true">
<Button
android:id="@+id/btn_to_ap"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/string_ap_connection"/>
<Button
android:id="@+id/btn_to_smart_config"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/string_smart_connection"
android:layout_marginTop="20dp"/>
<Button
android:id="@+id/btn_to_sound_wave"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/string_sound_wave_connection"
android:layout_marginTop="20dp"/>
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".configwifi.ManualConnectDeviceHotspotActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
android:layout_centerInParent="true">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/please_try_connect_device_hotspot_manually"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="50dp"
android:layout_marginBottom="50dp">
<TextView
android:id="@+id/tv_ssid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Device hotspot SSID"
android:textSize="16dp"
android:textColor="@android:color/holo_red_light"
android:textIsSelectable="true"/>
<TextView
android:id="@+id/tv_pwd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Device hotspot password"
android:textSize="16dp"
android:textColor="@android:color/holo_red_light"
android:textIsSelectable="true"/>
</LinearLayout>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/go_to_connect_wifi"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
android:onClick="onclickGoToWifiSetting"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/wifi_config_bg">
<LinearLayout
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/device_hotspot_name"
android:textSize="15dp"
android:textStyle="bold"/>
<EditText
android:id="@+id/app_common_device_hotspot_name"
android:layout_width="match_parent"
android:layout_height="40dp"
android:hint="@string/app_common_hint_hotspot_name"
android:textSize="15dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/device_hotspot_password"
android:textSize="15dp"
android:layout_marginTop="30dp"
android:textStyle="bold"/>
<EditText
android:id="@+id/app_common_device_hotspot_pwd"
android:layout_width="match_parent"
android:layout_height="40dp"
android:hint="@string/app_common_hint_hotspot_pwd"
android:textSize="15dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="50dp"
android:text="@string/app_common_next_step"
android:onClick="onClickNext"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<com.videogo.widget.TitleBar
android:id="@+id/titleBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"></FrameLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:id="@+id/handle_lyt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
>
<Button
android:id="@+id/btn_landevice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/interface_call_btn_selector"
android:text="Landevice"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/web_login_btn"
android:onClick="onClick" />
<Button
android:id="@+id/btn_get_device_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/interface_call_btn_selector"
android:text="Get_DeviceList"
android:layout_below="@id/btn_landevice"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<Button
android:id="@+id/btn_capture"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="capture"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_get_device_list"
android:onClick="onClick" />
<Button
android:id="@+id/btn_to_device_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="to ezviz device list"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_capture"
android:onClick="onClick" />
<Button
android:id="@+id/btn_to_alarm_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:text="to ezviz alarm list"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/btn_to_device_list"
android:onClick="onClick" />
</RelativeLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/squareVideo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray_bg"
android:orientation="vertical">
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<com.videogo.widget.pulltorefresh.PullToRefreshGridView
android:id="@+id/square_channel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
android:layout_marginBottom="3dp"
android:fadingEdge="none"
android:numColumns="auto_fit"
android:columnWidth="100dp"
android:stretchMode="spacingWidth"
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"
android:gravity="center"
/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<com.videogo.widget.pulltorefresh.PullToRefreshGridView
android:id="@+id/squareVideoList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
android:layout_marginBottom="3dp"
android:fadingEdge="none"
android:numColumns="auto_fit"
android:columnWidth="160dp"
android:stretchMode="columnWidth"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:gravity="center"
/>
</RelativeLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<android.support.v4.view.PagerTabStrip
android:id="@+id/pager_tab_strip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:background="#33b5e5"
android:paddingBottom="4dp"
android:paddingTop="4dp"
android:textColor="#fff" />
</android.support.v4.view.ViewPager>
<TextView
android:id="@+id/emptyView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Empty"
android:gravity="center"
android:visibility="gone"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
android:id="@+id/searchFragment"
android:name="com.videogo.ui.discovery.SearchVideoFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:background="@drawable/wifi_config_bg"
android:layout_height="match_parent">
<com.videogo.widget.TopBar
android:id="@+id/topbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/color_white"
app:leftIcon="@drawable/common_title_back"
app:topBarTitle="Support"
>
</com.videogo.widget.TopBar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_key"
android:textColor="@color/common_text"
android:textSize="15sp" />
<EditText
android:id="@+id/edit_appkey"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="text"
android:maxLength="64"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/access_token"
android:textColor="@color/common_text"
android:textSize="15sp" />
<EditText
android:id="@+id/edit_accesstoken"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="text"
android:maxLength="64"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/string_apiurl"
android:textColor="@color/common_text"
android:textSize="15sp" />
<EditText
android:id="@+id/edit_apiurl"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="text"
android:maxLength="64"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/string_authurl"
android:textColor="@color/common_text"
android:textSize="15sp" />
<EditText
android:id="@+id/edit_weburl"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="text"
android:maxLength="64"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/string_deviceserial"
android:textColor="@color/common_text"
android:textSize="15sp" />
<EditText
android:id="@+id/edit_deviceserial"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="text"
android:maxLength="64"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
<TextView
android:id="@+id/ok_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/orange"
android:layout_marginTop="30dp"
android:text="确定"
android:textSize="20sp"
android:layout_gravity="center_horizontal" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.test.TestConfigWifiActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btn_start_ap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="开始AP配网" />
<Button
android:id="@+id/btn_stop_ap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="停止AP配网" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ezvizapi.TestActivity">
<Button
android:id="@+id/btn_test"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="测试按钮"
android:layout_centerInParent="true"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".debug.TestPageActivity"
android:gravity="center">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Try to do something"
android:onClick="doSomething"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/application_bg"
android:orientation="vertical"
>
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<RelativeLayout
android:id="@+id/inputLinearlayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/title_bar"
android:layout_marginTop="35dp"
android:visibility="visible"
>
<!--
<ImageButton
android:id="@+id/searchBtn"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginRight="5dp"
android:background="@drawable/search_button_selector"
android:onClick="onClick"
android:paddingLeft="8dp"
android:scaleType="fitCenter"
android:src="@drawable/search" />
-->
<RelativeLayout
android:id="@+id/searchEditTextContainer"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@color/white"
>
<EditText
android:id="@+id/seriesNumberEt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/transparent"
android:focusable="true"
android:focusableInTouchMode="true"
android:hint="@string/ez_serial_add_hint"
android:inputType="text"
android:paddingLeft="5dp"
android:singleLine="true"
android:textColor="@color/gray_text"
android:textColorHint="@color/gray"
android:textSize="@dimen/tab_text_size"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/verifycodeEditTextContainer"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_below="@+id/searchEditTextContainer"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="20dp"
android:background="@color/white"
>
<EditText
android:id="@+id/verifycodeEt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/transparent"
android:focusable="true"
android:focusableInTouchMode="true"
android:hint="@string/input_device_verify_code"
android:inputType="text"
android:paddingLeft="5dp"
android:singleLine="true"
android:textColor="@color/gray_text"
android:textColorHint="@color/gray"
android:textSize="@dimen/tab_text_size"
/>
</RelativeLayout>
<Button
android:id="@+id/searchBtn"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_below="@id/verifycodeEditTextContainer"
android:layout_marginLeft="15dp"
android:layout_marginTop="39dp"
android:layout_marginRight="15dp"
android:background="@drawable/login_btn_selector"
android:onClick="onClick"
android:scaleType="fitCenter"
android:text="@string/next_button_txt"
android:textColor="@color/white" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/searchBtn"
android:background="@color/common_bg"
android:gravity="center"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding"
android:paddingTop="@dimen/device_set_text_padding"
android:text="@string/probe_not_support_tip"
android:textColor="@color/setting_hint_text"
android:textSize="@dimen/device_set_text_size"
android:visibility="gone"
/>
</RelativeLayout>
<LinearLayout
android:id="@+id/cameraListLy"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/title_bar"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone"
>
<RelativeLayout
android:layout_width="175dp"
android:layout_height="165dp"
android:layout_marginTop="50dp"
android:background="@drawable/results_pic_bg"
>
<ImageView
android:id="@+id/deviceIcon"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerInParent="true"
android:scaleType="fitXY"
android:src="@drawable/results_pic_default"
/>
</RelativeLayout>
<TextView
android:id="@+id/deviceName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text=""
android:textColor="@color/common_text"
android:textSize="@dimen/loading_text_size"
/>
<TextView
android:id="@+id/tvStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/scan_network_unavailible"
android:textColor="@color/common_text"
android:textSize="@dimen/loading_text_size"
/>
<Button
android:id="@+id/btnNext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:text="@string/scan_connet_network"
android:textColor="@color/white"
/>
<Button
android:id="@+id/unbind_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:background="@drawable/btn_white_selector"
android:gravity="center"
android:text="@string/unbind_to_bind"
android:textColor="#1b9ee2"
android:visibility="gone"
/>
<TextView
android:id="@+id/activateHint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="17.3dp"
android:background="@drawable/btn_white_selector"
android:gravity="center"
android:text="@string/promptUserToActivate"
android:textColor="#1b9ee2"
android:visibility="gone"
/>
<Button
android:id="@+id/addBtn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:text="@string/scan_add"
android:textColor="@color/white"
/>
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="1"
/>
<TextView
android:id="@+id/connectTip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:text="@string/please_connect_the_power"
android:textColor="@color/auto_tip_text"
android:textSize="@dimen/content_text_size"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/errorPage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/title_bar"
android:layout_margin="10dp"
android:background="@drawable/input_shade"
android:gravity="center"
android:orientation="vertical"
android:padding="10dp"
android:visibility="gone"
>
<TextView
android:id="@+id/failedMsg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/no_result_text"
android:textColor="@color/black_text"
android:textSize="@dimen/assistant_text_size"
/>
<Button
android:id="@+id/myRetry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:onClick="onClick"
android:text="@string/refresh"
android:textColor="@color/white"
android:textSize="@dimen/title_text_size"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/queryingCameraRyt"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/title_bar"
android:layout_marginTop="297dp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="visible">
<!-- android:background="@drawable/input_shade" -->
<ImageView
android:id="@+id/searchAnim"
android:layout_width="150dp"
android:layout_height="165dp"
android:layout_marginTop="35dp"
android:background="@anim/device_search_bg" />
<TextView
android:id="@+id/querying_camera_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:gravity="center"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="@string/querying_camera_text"
android:textColor="@color/gray_text"
android:textSize="@dimen/loading_text_size" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/wifi_config_bg"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/top_bar_bg" >
<ImageView
android:id="@+id/btnBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@drawable/back"
android:onClick="onClick"
android:layout_marginLeft="10dp"/>
<Button
android:id="@+id/cancel_btn"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:background="@drawable/tiltle_button_selector"
android:contentDescription="@string/describtion"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="@string/cancel"
android:textColor="@color/black_text"
android:textSize="@dimen/tab_text_size"
android:visibility="gone" />
<TextView
android:id="@+id/tvTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/auto_wifi_title_add_device"
android:textColor="@color/black"
android:textSize="@dimen/title_text_size"
android:textStyle="normal" />
</RelativeLayout>
<LinearLayout
android:id="@+id/addCameraContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="visible" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<ImageView
android:id="@+id/imgAnimation"
android:layout_width="wrap_content"
android:layout_height="185dp"
android:src="@drawable/failure_account" />
<TextView
android:id="@+id/tvSuccess"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="15dp"
android:gravity="center"
android:text="@string/added_camera_success_txt"
android:textColor="@color/title_text"
android:textSize="@dimen/device_set_text_size"
android:visibility="gone" />
<TextView
android:id="@+id/tvStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="@string/add_camera_success_tip"
android:textColor="@color/add_title_text_color"
android:textSize="@dimen/device_set_small_text_size"
android:visibility="gone" />
<Button
android:id="@+id/btnAddCameraSuccess"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="30dp"
android:background="@drawable/login_btn_selector"
android:text="@string/added_camera_success_txt"
android:textColor="@color/white"
android:visibility="gone" />
<Button
android:id="@+id/btnRetry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="30dp"
android:background="@drawable/ez_reaty_btn_selector"
android:text="@string/retry"
android:textColor="@color/white"
android:visibility="gone" />
<Button
android:id="@+id/btnLineConnet"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:text="@string/ez_auto_wifi_line_connect"
android:textColor="@color/white"
android:visibility="gone" />
<View
android:id="@+id/helpTop"
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="1"
android:visibility="gone" />
<TextView
android:id="@+id/help"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:gravity="center"
android:text="@string/goto_help_error_page"
android:textColor="@color/help_link"
android:textSize="@dimen/realplay_tip_text_size"
android:visibility="gone" />
</LinearLayout>
<!-- <View -->
<!-- android:layout_width="1dp" -->
<!-- android:layout_height="0dp" -->
<!-- android:layout_weight="1" /> -->
<TextView
android:id="@+id/tvDeviceWifiConfigTip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="@string/wifi_connection_finish_need_refresh"
android:textColor="@color/black"
android:textSize="@dimen/large_text_size"
android:visibility="gone" />
<Button
android:id="@+id/btnFinish"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="38dp"
android:layout_marginRight="38dp"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:text="@string/complete_txt"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:visibility="gone" />
<LinearLayout
android:id="@+id/llyCloundService"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="24dp"
android:gravity="center"
android:visibility="gone" >
<CheckBox
android:id="@+id/ckbCloundService"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:background="@drawable/ckb_selector"
android:button="@null"
android:checked="false"
android:textColor="@color/black" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:text="@string/cloud_free"
android:textColor="@color/auto_tip_text"
android:textSize="@dimen/loading_text_size" />
<TextView
android:id="@+id/tvMore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/more"
android:textColor="@color/auto_blue_text"
android:textSize="@dimen/loading_text_size" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/lineConnectContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="38dp"
android:visibility="gone" >
<ImageView
android:id="@+id/imgLineConnectGuid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="17dp"
android:src="@drawable/wifi_connect_tip" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:gravity="center"
android:text="@string/auto_wifi_line_msg"
android:textColor="@color/black"
android:textSize="@dimen/large_text_size" />
<Button
android:id="@+id/btnLineConnetOk"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/login_btn_selector"
android:text="@string/auto_wifi_line_connected"
android:textColor="@color/white" />
</LinearLayout>
<LinearLayout
android:id="@+id/connectStateContainer"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingTop="80dp"
android:visibility="visible" >
<LinearLayout
android:id="@+id/llyStatus1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/auto_wifi_connecting_status_item" />
</LinearLayout>
<LinearLayout
android:id="@+id/llyStatus2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/auto_wifi_connecting_status_item" />
</LinearLayout>
<LinearLayout
android:id="@+id/llyStatus3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/auto_wifi_connecting_status_item" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:padding="10dp" >
<TextView
android:id="@+id/tip"
style="@style/auto_wifi_status_style_normal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="@string/auto_wifi_tip_connecting_wifi" />
<ImageView
android:id="@+id/successIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@+id/tip"
android:src="@drawable/success_icon" />
<TextView
android:id="@+id/timer"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@+id/tip"
android:background="@drawable/add_device_number_bg"
android:gravity="center"
android:text="60"
android:textColor="@color/white"
android:textSize="@dimen/fourteen" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/wifi_config_bg"
android:orientation="vertical" >
<ezviz.ezopensdkcommon.common.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="10dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="@string/device_unsupport_5g_wifi"
android:textColor="@color/red"
android:textSize="15sp"
android:textStyle="bold"
android:layout_marginTop="30dp"
android:layout_marginBottom="30dp"
android:lineSpacingExtra="10dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/auto_wifi_net"
android:textColor="@color/common_text"
android:textSize="@dimen/title_text_size" />
<EditText
android:id="@+id/tvSSID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:hint="@string/auto_wifi_ssid"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="@dimen/title_text_size"
android:background="@android:color/transparent"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/inputlayout_bg"
android:padding="12dp" >
<TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_password_tv_txt"
android:textColor="@color/common_text"
android:textSize="@dimen/title_text_size" />
<EditText
android:id="@+id/edtPassword"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="text"
android:maxLength="64"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="@dimen/title_text_size" />
</LinearLayout>
<Button
android:id="@+id/btnNext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:text="@string/next_button_txt"
android:textColor="@color/white"
android:textSize="@dimen/tab_text_size" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/wifi_config_bg"
android:orientation="vertical" >
<ezviz.ezopensdkcommon.common.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="20dp" >
<TextView
android:id="@+id/topTip"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/tip_heard_voice"
android:textColor="@color/title_text"
android:textSize="@dimen/large_text_size" />
<ImageView
android:id="@+id/imageBg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="19dp"
android:src="@drawable/prepare_device" />
<Button
android:id="@+id/btnNext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="31dp"
android:background="@drawable/login_btn_selector"
android:text="@string/next_button_txt"
android:textColor="@color/white"
android:textSize="@dimen/realplay_button_text_size" />
<Button
android:id="@+id/btnIntroduce"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:background="@drawable/ez_btn_r1_retry_selector"
android:text="@string/next_button_txt"
android:textColor="@color/tv_my_blue"
android:textSize="@dimen/realplay_button_text_size" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/wifi_config_bg"
android:orientation="vertical" >
<ezviz.ezopensdkcommon.common.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="20dp" >
<TextView
android:id="@+id/topTip"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/tip_heard_voice"
android:textColor="@color/title_text"
android:textSize="@dimen/large_text_size" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="19dp"
android:src="@drawable/reset_deivce" />
<Button
android:id="@+id/btnNext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="31dp"
android:background="@drawable/login_btn_selector"
android:text="@string/device_reset_ok"
android:textColor="@color/white"
android:textSize="@dimen/realplay_button_text_size" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/application_bg"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/top_bar_bg" >
<Button
android:id="@+id/btnBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@drawable/common_title_back_selector"
android:onClick="onClick" />
<TextView
android:id="@+id/tvTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/reset_device"
android:textColor="@color/black"
android:textSize="@dimen/title_text_size"
android:textStyle="normal" />
</RelativeLayout>
<LinearLayout
android:id="@+id/lineConnectContainer"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="38dp"
android:visibility="visible" >
<ImageView
android:id="@+id/imgResetPic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="17dp"
android:src="@drawable/connect_reset" />
<TextView
android:id="@+id/tvTip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:gravity="center"
android:text="@string/reset_10_sec_to_release"
android:textColor="@color/black"
android:textSize="@dimen/large_text_size" />
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="1" />
<Button
android:id="@+id/btnReset"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/login_btn_selector"
android:text="@string/already_reset"
android:textColor="@color/white" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/opensdk_cameralist_bg"
android:orientation="vertical">
<!-- 标题栏 -->
<RelativeLayout android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="44dp">
<Button
android:id="@+id/btn_user"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_centerVertical="true"
android:background="@drawable/user"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
<TextView
android:id="@+id/text_my"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/my_devices"
android:textColor="@color/orange_text"
android:textSize="20sp"/>
<TextView
android:id="@+id/text_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="20dp"
android:text="@string/share_devices"
android:textColor="@color/black_text"
android:textSize="20sp"/>
</LinearLayout>
<Button
android:id="@+id/btn_add"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:background="@drawable/my_add"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginRight="10dp"/>
</RelativeLayout>
<com.videogo.widget.pulltorefresh.PullToRefreshListView
android:id="@+id/camera_listview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/camera_list_gc_ly"
android:layout_below="@+id/title"
android:layout_marginBottom="3dp"
android:cacheColorHint="@color/transparent"
android:divider="@color/transparent"
android:drawingCacheQuality="high"
android:fadingEdge="none"
android:fastScrollEnabled="false"
android:listSelector="@null"
android:overScrollFooter="@null"
android:scrollingCache="true"/>
<LinearLayout
android:id="@+id/no_camera_tip_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/title_bar"
android:layout_centerInParent="true"
android:onClick="onClick"
android:orientation="vertical"
android:visibility="visible"
android:gravity="center_horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/my_no_video"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/not_find_any_devices"
android:layout_marginTop="10dp"/>
</LinearLayout>
<LinearLayout
android:id="@+id/get_camera_fail_tip_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/get_camera_list_fail_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:gravity="center"
android:text="@string/get_camera_list_fail"
android:textSize="@dimen/title_text_size"/>
<Button
android:id="@+id/camera_list_refresh_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/refresh_selector"
android:onClick="onClick"
android:text="@string/refresh"
android:textColor="@color/black_text"
android:textSize="@dimen/title_text_size"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/flt_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".scan.main.CaptureActivity" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<SurfaceView
android:id="@+id/preview_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal" />
<com.videogo.scan.main.ViewfinderView
android:id="@+id/viewfinder_view"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@color/transparent" />
<TextView
android:id="@+id/txtResult"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:layout_marginBottom="50dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:gravity="center"
android:text="@string/ez_scan_cue_txt"
android:textColor="@color/white"
android:textSize="@dimen/tab_text_size" />
<CheckBox
android:id="@+id/ckbLight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:layout_marginBottom="20dp"
android:layout_marginLeft="20dp"
android:background="@drawable/flashlight_selector"
android:button="@null" />
</FrameLayout>
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="23dp" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@color/white"
android:padding="7dp">
<TextView
android:id="@+id/cityKey"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="start"
android:gravity="center"
android:textColor="@color/black"/>
<View
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<TextView
android:id="@+id/cityName"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="end"
android:gravity="center"
android:textColor="@color/black"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/opensdk_cameralist_bg"
android:orientation="vertical">
<!-- 标题栏 -->
<RelativeLayout android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="44dp">
<Button
android:id="@+id/btn_user"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:background="@drawable/user"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
<TextView
android:id="@+id/text_my"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="我的"
android:textColor="@color/orange_text"
android:textSize="20sp"/>
<TextView
android:id="@+id/text_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="20dp"
android:text="分享"
android:textColor="@color/black_text"
android:textSize="20sp"/>
</LinearLayout>
<Button
android:id="@+id/btn_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/my_add"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_alignParentBottom="true"
android:background="@color/gray"></RelativeLayout>
</RelativeLayout>
<com.videogo.widget.pulltorefresh.PullToRefreshListView
android:id="@+id/camera_listview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/title"
android:layout_marginBottom="3dp"
android:cacheColorHint="@color/transparent"
android:divider="@color/transparent"
android:drawingCacheQuality="high"
android:fadingEdge="none"
android:fastScrollEnabled="false"
android:listSelector="@null"
android:overScrollFooter="@null"
android:scrollingCache="true"/>
<LinearLayout
android:id="@+id/no_camera_tip_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/title_bar"
android:layout_centerInParent="true"
android:onClick="onClick"
android:orientation="vertical"
android:visibility="visible">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/my_no_video"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/my_shoping"/>
</LinearLayout>
<LinearLayout
android:id="@+id/get_camera_fail_tip_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:visibility="gone">
<TextView
android:id="@+id/get_camera_list_fail_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:gravity="center"
android:text="@string/get_camera_list_fail"
android:textSize="@dimen/title_text_size"/>
<Button
android:id="@+id/camera_list_refresh_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/refresh_selector"
android:onClick="onClick"
android:text="@string/refresh"
android:textColor="@color/black_text"
android:textSize="@dimen/title_text_size"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/camera_item_rl"
android:layout_width="fill_parent"
android:layout_height="73dp"
android:background="@drawable/display_frame"
android:clickable="true"
android:paddingLeft="30dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/text_serial"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/text_device_ip"
android:layout_below="@+id/text_serial"
android:layout_marginTop="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/serial_tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="45344323"
android:layout_marginLeft="5dp"
android:textColor="@color/black_text"
android:textSize="@dimen/tab_text_size" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/wifi_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wifi_connected"
android:textColor="@color/black_text"
android:textSize="@dimen/tab_text_size" />
<TextView
android:id="@+id/plat_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/plat_connected"
android:textColor="@color/black_text"
android:textSize="@dimen/tab_text_size" />
</LinearLayout>
<TextView
android:id="@+id/ip_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="192.168.0.1:5200"
android:textColor="@color/black_text"
android:textSize="@dimen/tab_text_size" />
</LinearLayout>
<Button
android:id="@+id/add_btn"
android:layout_width="40dp"
android:layout_height="wrap_content"
android:background="@drawable/btn_auto_blue_selector"
android:text="@string/add_device"
android:textColor="@color/auto_wifi_blue"
android:layout_margin="5dp"
android:onClick="onClick" />
<Button
android:id="@+id/local_realplay_btn"
android:layout_width="40dp"
android:layout_height="wrap_content"
android:background="@drawable/btn_auto_blue_selector"
android:text="@string/local_realplay"
android:textColor="@color/auto_wifi_blue"
android:layout_margin="5dp"
android:onClick="onClick" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<!-- 标题栏 -->
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/discover_tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="5dp"
android:text="@string/discovering_device"
android:textColor="@color/black_text"
android:textSize="@dimen/title_text_size" />
<Button
android:id="@+id/retry_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/btn_auto_blue_selector"
android:text="@string/retry"
android:textColor="@color/auto_wifi_blue"
android:layout_margin="5dp"
android:onClick="onClick"
android:visibility="gone" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@color/gray" />
<ListView
android:id="@+id/discover_list_lv"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginBottom="3dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginTop="3dp"
android:cacheColorHint="#00000000"
android:divider="@color/gray"
android:dividerHeight="0.5dp"
android:overScrollFooter="@null" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/common_bg"
android:orientation="vertical"
android:paddingBottom="20dp"
android:paddingTop="@dimen/device_set_layout_padding" >
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:id="@+id/device_info_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:background="@android:color/white"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
<TextView
android:id="@+id/device_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<TextView
android:id="@+id/device_type_sn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/device_set_sub_text_size" />
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="0"
android:src="@drawable/arrow_next" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
<LinearLayout
android:id="@+id/ez_device_serial_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:background="@android:color/white"
android:layout_marginTop="@dimen/device_set_layout_padding"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:textColor="@color/common_text"
android:layout_weight="1"
android:text="@string/ez_settings_device_serial"
android:textSize="@dimen/device_set_sub_text_size" />
<TextView
android:id="@+id/ez_device_serial"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/common_sub_text"
android:layout_weight="0"
android:text="123456789"
android:layout_gravity="center_vertical"
android:textSize="@dimen/device_set_text_size" />
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="0"
android:src="@drawable/arrow_next" />
</LinearLayout>
<LinearLayout
android:id="@+id/defence_plan_parent_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/defence_plan"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<ImageView
android:id="@+id/defence_plan_new"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="1"
android:scaleType="fitStart" />
<Button
android:id="@+id/defence_plan_button"
android:layout_width="60dp"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:background="@drawable/autologin_off" />
<ProgressBar
android:id="@+id/defence_plan_status_progress"
style="@android:style/Widget.ProgressBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:visibility="gone" />
<TextView
android:id="@+id/defence_plan_status_retry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:drawableLeft="@drawable/common_title_refresh"
android:drawablePadding="3dp"
android:gravity="center_vertical"
android:text="@string/refresh"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/device_set_sub_text_size"
android:visibility="gone" />
</LinearLayout>
<LinearLayout
android:id="@+id/defence_plan_set_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="@dimen/device_set_layout_height"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/set_defence_plan"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<TextView
android:id="@+id/defence_plan_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
android:textColor="@color/on_off_text_selector"
android:textSize="@dimen/device_set_sub_text_size" />
<ProgressBar
android:id="@+id/defence_plan_progress"
style="@android:style/Widget.ProgressBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:visibility="gone" />
<TextView
android:id="@+id/defence_plan_retry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:drawableLeft="@drawable/common_title_refresh"
android:drawablePadding="3dp"
android:gravity="center_vertical"
android:text="@string/refresh"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/device_set_sub_text_size"
android:visibility="gone" />
<ImageView
android:id="@+id/defence_plan_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="0"
android:src="@drawable/arrow_next" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/common_bg"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding"
android:paddingTop="@dimen/device_set_text_padding"
android:text="@string/defence_plan_tip"
android:textColor="@color/setting_hint_text"
android:textSize="@dimen/device_set_text_size" />
</LinearLayout>
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<LinearLayout
android:id="@+id/current_version_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/ez_current_version"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<TextView
android:id="@+id/current_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text=""
android:textColor="@color/common_sub_text"
android:textSize="@dimen/device_set_sub_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/version_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="@dimen/device_set_layout_height"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ez_latest_version"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<ImageView
android:id="@+id/version_notice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="@drawable/upgrade" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
android:orientation="vertical" >
<TextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_sub_text_size" />
<TextView
android:id="@+id/version_newest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:text="@string/version_newest"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/device_set_sub_text_size" />
</LinearLayout>
<ImageView
android:id="@+id/version_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="0"
android:src="@drawable/arrow_next" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<LinearLayout
android:id="@+id/defence_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:id="@+id/defence"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/detail_defend_c1_c2_f1"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<TextView
android:id="@+id/defence_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/device_set_sub_text_size" />
<Button
android:id="@+id/defence_toggle_button"
android:layout_width="60dp"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:background="@drawable/autologin_off" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
<LinearLayout
android:id="@+id/encrypt_parent_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<LinearLayout
android:id="@+id/encrypt_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/detail_safe_mode"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<Button
android:id="@+id/encrypt_button"
android:layout_width="60dp"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:background="@drawable/autologin_off" />
</LinearLayout>
<LinearLayout
android:id="@+id/modify_password_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/password_security_txt"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="0"
android:src="@drawable/arrow_next" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
</LinearLayout>
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<LinearLayout
android:id="@+id/storage_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/storage_status"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<View
android:id="@+id/storage_notice"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_weight="0"
android:background="@drawable/common_number_bg" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/device_set_arrow_padding"
android:layout_weight="0"
android:src="@drawable/arrow_next" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<TextView
android:id="@+id/device_delete"
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center"
android:text="@string/delete"
android:textColor="#ff0000"
android:textSize="@dimen/device_set_text_size" />
</com.videogo.widget.GroupLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sms_verify_dailog_ly"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/ez_sms_code_lyt"
android:layout_width="fill_parent"
android:layout_height="48dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:background="@drawable/input_shade" >
<EditText
android:id="@+id/ez_sms_code_et"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
android:gravity="left|center_vertical"
android:hint="@string/realplay_verifycode_error_placehold"
android:singleLine="true"
android:textColor="@color/gray_text"
android:textColorHint="@color/gray"
android:textSize="@dimen/button_text_size" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/ez_handle_lyt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:orientation="vertical" >
<Button
android:id="@+id/ez_square_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="63dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:text="@string/localmgt_video_square_txt"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:visibility="gone"
android:onClick="onClick" />
<Button
android:id="@+id/ez_platform_login_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:text="@string/platform_login_button_txt"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<Button
android:id="@+id/ez_v32_api_test"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:text="@string/interface_test_api"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<Button
android:id="@+id/ez_api_self_test"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/interface_call_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:text="Self Test"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
style="@style/TitleBar_Dark"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/alarm_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="centerInside"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/bottom_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@color/dark_bg_70p"
android:paddingBottom="30dp"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:paddingTop="10dp" >
<TextView
android:id="@+id/message_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:textColor="@android:color/white"
android:textSize="15sp" />
<TextView
android:id="@+id/message_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/message_type"
android:layout_marginTop="3dp"
android:textColor="@color/common_sub_text"
android:textSize="15sp" />
<TextView
android:id="@+id/message_from"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/message_time"
android:layout_marginTop="3dp"
android:textColor="@color/common_sub_text"
android:textSize="15sp" />
<Button
android:id="@+id/video_button"
android:layout_width="match_parent"
android:layout_height="39dp"
android:layout_below="@+id/message_from"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:textColor="#ffffff"
android:textSize="14sp"
android:text="@string/message_video"
/>
</RelativeLayout>
<LinearLayout
android:id="@+id/menu_layout"
android:layout_width="wrap_content"
android:layout_height="134dp"
android:layout_gravity="top|right"
android:layout_marginRight="2dp"
android:layout_marginTop="37dp"
android:background="@drawable/title_down_bg"
android:gravity="center"
android:minWidth="109.5dp"
android:orientation="vertical"
android:paddingTop="7dp"
android:visibility="gone" >
<TextView
android:id="@+id/menu_play"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLeft="@drawable/title_down_play_selector"
android:drawablePadding="2dp"
android:gravity="center_vertical"
android:paddingLeft="7dp"
android:paddingRight="7dp"
android:text="@string/realplay"
android:textColor="@color/title_down_text_selector"
android:textSize="15sp" />
</LinearLayout>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/message_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/message_item_bg_selector"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="5dp" >
<CheckBox
android:id="@+id/message_check"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="-5dp"
android:button="@drawable/check_selector"
android:visibility="gone" />
<FrameLayout
android:id="@+id/message_image_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/message_image"
android:layout_width="95dp"
android:layout_height="70dp"
android:layout_gravity="center"
android:contentDescription="@string/describtion"
android:scaleType="fitXY" />
<com.videogo.widget.ProgressBarHaveText
android:id="@+id/message_image_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility = "gone"
android:indeterminateDrawable="@drawable/my_progress_drawable"
android:max="100" />
</FrameLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:paddingBottom="5dp"
android:paddingTop="5dp" >
<ImageView
android:id="@+id/message_unread"
android:layout_width="25dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:scaleType="centerInside"
android:src="@drawable/no_read" />
<TextView
android:id="@+id/message_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/message_time"
android:layout_toRightOf="@+id/message_unread"
android:ellipsize="end"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="15sp" />
<TextView
android:id="@+id/message_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="5dp"
android:textColor="@color/common_hint_text"
android:textSize="13sp" />
<TextView
android:id="@+id/message_from_tip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/message_type"
android:layout_below="@+id/message_type"
android:layout_marginTop="5dp"
android:text="@string/message_come_from_tip"
android:textColor="@color/common_hint_text"
android:textSize="15sp" />
<TextView
android:id="@+id/message_from"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/message_from_tip"
android:layout_toRightOf="@+id/message_from_tip"
android:ellipsize="end"
android:singleLine="true"
android:textColor="@color/common_hint_text"
android:textSize="15sp" />
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="20dp"
android:background="@color/common_bg"
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView
android:id="@+id/message_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:textColor="@color/common_text"
android:textSize="13sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/main_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
android:orientation="vertical" >
<!--
<LinearLayout
android:id="@+id/check_mode_top"
android:layout_width="match_parent"
android:layout_height="44dp"
android:background="#fff"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="gone" >
<CheckBox
android:id="@+id/check_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/check_selector" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/select_all"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
-->
<View
android:id="@+id/check_mode_top_divider"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#d8d8d8"
android:visibility="gone" />
<com.videogo.widget.pulltorefresh.PullToRefreshPinnedSectionListView
android:id="@+id/message_list"
style="@style/CommonListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:divider="@color/c8"
android:dividerHeight="0.5dp" />
<View
android:id="@+id/check_mode_bottom_divider"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_weight="0"
android:background="@color/title_line"
android:visibility="gone" />
<LinearLayout
android:id="@+id/check_mode_bottom"
android:layout_width="match_parent"
android:layout_height="49dp"
android:layout_weight="0"
android:background="#f9f9f9"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:weightSum="2"
android:visibility="gone" >
<LinearLayout
android:id="@+id/check_mode_top"
android:layout_width="1dp"
android:layout_height="wrap_content"
android:background="#fff"
android:layout_weight="0"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="gone" >
<CheckBox
android:id="@+id/check_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:button="@drawable/check_selector" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/select_all"
android:background="@null"
android:textColor="@color/common_text"
android:textSize="15sp" />
</LinearLayout>
<Button
android:id="@+id/del_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/delete"
android:background="@null"
android:textColor="@color/del_button_text_selector"
android:textSize="15sp" />
<!-- android:background="@drawable/del_button_selector" -->
<Button
android:id="@+id/read_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:background="@null"
android:text="@string/ez_check_all_message"
android:textColor="@color/read_button_text_selector"
android:textSize="15sp" />
<!-- android:background="@drawable/read_button_selector"
-->
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/no_message_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
android:gravity="center"
android:orientation="vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:visibility="gone" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/no_message" />
<TextView
android:id="@+id/no_message_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/ez_no_message"
android:textColor="@color/c2"
android:textSize="@dimen/f6" />
<Button
android:id="@+id/no_message_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:visibility="gone"
android:background="@drawable/login_btn_selector"
android:gravity="center"
android:text="@string/goto_mall_to_see"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size" />
</LinearLayout>
<include
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
layout="@layout/network_error_retry_page"
android:visibility="gone" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_control_rl"
android:layout_width="match_parent"
android:layout_height="38dp"
android:background="#222222"
android:gravity="center"
android:layout_below="@+id/realplay_sv"
android:orientation="horizontal" >
<!-- 播放按钮 -->
<ImageButton
android:id="@+id/realplay_play_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/play_play_selector"
android:onClick="onClick" />
<View
android:id="@+id/sound_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<ImageButton
android:id="@+id/realplay_sound_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/ezopen_vertical_preview_sound_selector"
android:onClick="onClick" />
<View
android:id="@+id/quality_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<Button
android:id="@+id/realplay_quality_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:onClick="onClick"
android:text="@string/quality_balanced"
android:textColor="@color/white"
android:textSize="@dimen/realplay_text_size" />
<View
android:id="@+id/flow_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<!-- 播放速度 -->
<TextView
android:id="@+id/realplay_flow_tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="@color/white"
android:textSize="@dimen/realplay_text_size"
android:visibility="invisible" />
<View
android:id="@+id/mirror_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<com.videogo.widget.CheckTextButton
android:id="@+id/fullscreen_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/preview_enlarge_selector" />
<!--
<Button
android:id="@+id/play_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/vertical_preview_stop_selector" />
<View
android:id="@+id/sound_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<Button
android:id="@+id/sound_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/vertical_preview_sound_selector" />
<View
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<Button
android:id="@+id/multi_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/vertical_preview_singleframe_selector" />
<View
android:id="@+id/quality_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<Button
android:id="@+id/quality_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/quality_balanced"
android:textColor="@color/multi_quality_color_selector"
android:textSize="@dimen/quality_text_size"
android:background="@null" />
<View
android:id="@+id/mirror_line"
android:layout_width="1dp"
android:layout_height="18dp"
android:background="#404040" />
<com.videogo.widget.CheckTextButton
android:id="@+id/fullscreen_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/preview_enlarge_selector" />
-->
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_page_ly"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:gravity="center"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar_portrait"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:id="@+id/realplay_play_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/black_bg" >
<RelativeLayout
android:id="@+id/vg_play_window"
android:layout_width="match_parent"
android:layout_height="200dp">
<SurfaceView
android:id="@+id/realplay_sv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent" />
<include layout="@layout/realplay_loading_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
<include layout="@layout/ez_play_control"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_below="@id/vg_play_window"/>
<include layout="@layout/ez_realplay_prompt_layout" />
<RelativeLayout
android:id="@+id/realplay_capture_rl"
android:layout_width="65dp"
android:layout_height="45dp"
android:layout_alignBottom="@+id/vg_play_window"
android:layout_alignLeft="@+id/vg_play_window"
android:layout_alignStart="@+id/vg_play_window"
android:background="@color/white"
android:onClick="onClick"
android:padding="1dp"
android:visibility="gone">
<ImageView
android:id="@+id/realplay_capture_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
<ImageView
android:id="@+id/realplay_capture_watermark_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/video_file_watermark"
android:visibility="gone" />
</RelativeLayout>
<include layout="@layout/realplay_full_operate_layout" />
<ImageView
android:id="@+id/realplay_ptz_direction_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignBottom="@+id/vg_play_window"
android:background="@drawable/left_twinkle"
android:scaleType="fitXY"
android:visibility="gone" />
<ImageButton
android:id="@+id/realplay_full_anim_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/yuntai_pressed"
android:visibility="gone" />
<LinearLayout
android:id="@+id/vg_play_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:orientation="vertical"
android:layout_alignParentRight="true">
<TextView
android:id="@+id/tv_stream_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stream_type"
android:textColor="@color/green_text"
android:visibility="gone" />
<TextView
android:id="@+id/tv_decode_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stream_type"
android:textColor="@color/yellow_text"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
<include layout="@layout/ezopen_realplay_operate_bar" android:visibility="gone"/>
<include layout="@layout/ezopen_realplay_operate_bar2" android:visibility="gone"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_prompt_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar_landscape"
style="@style/TitleBar_Dark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/realplay_ratio_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="70dp"
android:layout_marginTop="20dp"
android:text="2.0X"
android:textColor="@color/white"
android:textSize="@dimen/realplay_ratio_text_size"
android:visibility="gone" />
<LinearLayout
android:id="@+id/realplay_record_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="false"
android:layout_centerHorizontal="true"
android:layout_centerVertical="false"
android:layout_marginRight="15dp"
android:layout_marginTop="15dp"
android:background="@drawable/play_video_time_bg"
android:gravity="center"
android:visibility="gone" >
<ImageView
android:id="@+id/realplay_record_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_record"
android:scaleType="fitXY" />
<TextView
android:id="@+id/realplay_record_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:text="00:25"
android:textColor="@color/white"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<ImageView
android:id="@+id/realplay_full_ptz_prompt_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/ptz_prompt"
android:scaleType="fitXY"
android:visibility="gone"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="105dp"
android:background="@drawable/preview_selection_bg"
android:orientation="vertical"
android:gravity="center"
android:paddingBottom="6dp"
android:paddingTop="9dp" >
<Button
android:id="@+id/quality_hd_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="13dp"
android:text="@string/quality_hd"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
<Button
android:id="@+id/quality_balanced_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="13dp"
android:text="@string/quality_balanced"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
<Button
android:id="@+id/quality_flunet_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="13dp"
android:text="@string/quality_flunet"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/remoteplayback_page_ly"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@color/common_bg"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true" />
<RelativeLayout
android:id="@+id/remoteplayback_play_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/title_bar"
android:background="@color/black_bg" >
<SurfaceView
android:id="@+id/remoteplayback_sv"
android:layout_width="600dp"
android:layout_height="300dp"
android:layout_centerInParent="true"
android:background="@android:color/transparent" />
<com.videogo.widget.TitleBar
android:id="@+id/pb_notlist_title_bar_landscape"
android:layout_width="match_parent"
android:layout_height="80dp"
android:visibility="gone"
/>
<TextView
android:id="@+id/remoteplayback_tip_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:text="设备不在线"
android:textColor="@color/white"
android:textSize="@dimen/remoteplayback_tip_text_size" />
<ImageButton
android:id="@+id/remoteplayback_replay_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/palyback_replay"
android:gravity="center"
android:onClick="onClick"
android:visibility="gone" />
<ImageButton
android:id="@+id/remoteplayback_loading_play_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/leave_message_play_selector"
android:gravity="center"
android:onClick="onClick"
android:visibility="gone" />
<LinearLayout
android:id="@+id/remoteplayback_loading_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="vertical" >
<ImageView
android:id="@+id/remoteplayback_loading_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_full_loding_logo"
android:scaleType="fitXY"
android:visibility="gone" />
<LinearLayout
android:id="@+id/remoteplayback_loading_pb_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical" >
<com.videogo.widget.loading.LoadingView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/remoteplayback_loading_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="0%"
android:textColor="@color/gray_text"
android:textSize="@dimen/remoteplayback_button_text_size" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/remoteplayback_ratio_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="70dp"
android:layout_marginTop="20dp"
android:text="2.0X"
android:textColor="@color/white"
android:textSize="@dimen/remoteplayback_ratio_text_size"
android:visibility="gone" />
<LinearLayout
android:id="@+id/remoteplayback_record_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:background="@drawable/play_video_time_bg"
android:gravity="center"
android:visibility="gone" >
<ImageView
android:id="@+id/remoteplayback_record_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_record"
android:scaleType="fitXY" />
<TextView
android:id="@+id/remoteplayback_record_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:text="00:25"
android:textColor="@color/white"
android:textSize="@dimen/remoteplayback_text_size" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/play_translucent_bg"
android:layout_alignBottom="@id/remoteplayback_sv"
android:orientation="vertical">
<LinearLayout
android:id="@+id/remoteplayback_progress_ly"
android:layout_width="match_parent"
android:layout_height="20dp"
android:background="@color/play_translucent_bg"
android:gravity="center"
android:visibility="gone" >
<TextView
android:id="@+id/remoteplayback_begin_time_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:textColor="@color/white"
android:textSize="@dimen/version_text_size" />
<SeekBar
android:id="@+id/remoteplayback_progress_seekbar"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_weight="1"
android:maxHeight="2dp"
android:minHeight="2dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:progressDrawable="@drawable/remote_seekbar_style"
android:thumb="@drawable/remote_seekbar_thumb" />
<TextView
android:id="@+id/remoteplayback_end_time_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:layout_marginRight="10dp"
android:textColor="@color/white"
android:textSize="@dimen/version_text_size" />
</LinearLayout>
<RelativeLayout
android:id="@+id/remoteplayback_control_rl"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignBottom="@+id/remoteplayback_sv"
android:background="@color/play_translucent_bg" >
<!-- 播放按钮 -->
<ImageButton
android:id="@+id/remoteplayback_play_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@drawable/remote_list_play_btn_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_sound_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/remoteplayback_play_btn"
android:background="@drawable/remote_list_soundon_btn_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_small_previously_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/remoteplayback_sound_btn"
android:background="@drawable/palyback_previously_selector"
android:onClick="onClick"
android:visibility="gone" />
<FrameLayout
android:id="@+id/remoteplayback_small_video_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/remoteplayback_small_previously_btn"
android:visibility="gone" >
<ImageButton
android:id="@+id/remoteplayback_small_video_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/palyback_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_small_video_start_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/palyback_video_now_selector"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<!-- 播放速度 -->
<TextView
android:id="@+id/remoteplayback_flow_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@+id/fullscreen_button"
android:text="12k/s 5MB"
android:textColor="@color/white"
android:textSize="@dimen/remoteplayback_text_size"
android:visibility="gone" />
<com.videogo.widget.CheckTextButton
android:id="@+id/fullscreen_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:background="@drawable/fullscreen_button_selector" />
</RelativeLayout>
</LinearLayout>
<ProgressBar
android:id="@+id/remoteplayback_progressbar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_alignBottom="@+id/remoteplayback_sv"
android:layout_gravity="center_vertical"
android:progressDrawable="@drawable/remote_seekbar_style"
android:visibility="gone" />
<RelativeLayout
android:id="@+id/remoteplayback_capture_rl"
android:layout_width="65dp"
android:layout_height="45dp"
android:layout_alignBottom="@+id/remoteplayback_sv"
android:layout_alignLeft="@+id/remoteplayback_sv"
android:background="@color/white"
android:onClick="onClick"
android:padding="1dp"
android:visibility="gone" >
<ImageView
android:id="@+id/remoteplayback_capture_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
<ImageView
android:id="@+id/remoteplayback_capture_watermark_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/video_file_watermark"
android:visibility="gone" />
</RelativeLayout>
</RelativeLayout>
<LinearLayout
android:id="@+id/remoteplayback_operate_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/remoteplayback_timebar_rl"
android:layout_below="@+id/remoteplayback_play_rl"
android:gravity="center"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical" >
<ImageButton
android:id="@+id/remoteplayback_previously_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12.5dp"
android:layout_marginRight="12.5dp"
android:background="@drawable/play_previously_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/capture"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/remoteplayback_video_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12.5dp"
android:layout_marginRight="12.5dp" >
<ImageButton
android:id="@+id/remoteplayback_video_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_video_start_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_start"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/record"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:id="@+id/remoteplayback_full_operate_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:paddingBottom="92dp"
android:visibility="gone" >
<ImageButton
android:id="@+id/remoteplayback_full_play_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="90dp"
android:background="@drawable/play_full_play_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_full_sound_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_toRightOf="@+id/remoteplayback_full_play_btn"
android:background="@drawable/play_full_soundoff_btn_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_full_previously_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_toRightOf="@+id/remoteplayback_full_sound_btn"
android:background="@drawable/play_full_previously_selector"
android:onClick="onClick" />
<FrameLayout
android:id="@+id/remoteplayback_full_video_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_toRightOf="@+id/remoteplayback_full_previously_btn" >
<ImageButton
android:id="@+id/remoteplayback_full_video_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_full_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/remoteplayback_full_video_start_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_full_video_now_selector"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<LinearLayout
android:id="@+id/remoteplayback_full_flow_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:layout_toLeftOf="@+id/remoteplayback_full_down_btn"
android:background="@anim/play_full_multiple_anim_bg"
android:gravity="center"
android:orientation="vertical" >
<TextView
android:id="@+id/remoteplayback_full_rate_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:text="523k/s"
android:textColor="@color/white"
android:textSize="@dimen/remoteplayback_channel_text_size" />
<TextView
android:id="@+id/remoteplayback_full_flow_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:text="345MB"
android:textColor="@color/white"
android:textSize="@dimen/remoteplayback_channel_text_size" />
</LinearLayout>
<ImageButton
android:id="@+id/remoteplayback_full_down_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="90dp"
android:layout_marginTop="15dp"
android:background="@drawable/palyback_full_down"
android:onClick="onClick" />
<com.videogo.widget.CheckTextButton
android:id="@+id/fullscreen_full_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:background="@drawable/horizontal_fullscreen_button_selector" />
</RelativeLayout>
<!-- 滑动控制区域 -->
<RelativeLayout
android:id="@+id/remoteplayback_timebar_rl"
android:layout_width="match_parent"
android:layout_height="87dp"
android:visibility="gone"
android:layout_alignParentBottom="true" >
<com.videogo.widget.TimeBarHorizontalScrollView
android:id="@+id/remoteplayback_timebar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fadingEdge="none"
android:scrollbars="none" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<com.videogo.ui.remoteplayback.RemoteFileTimeBar
android:id="@+id/remoteplayback_file_time_bar"
android:layout_width="match_parent"
android:layout_height="77dp"
android:layout_alignParentTop="true" />
</RelativeLayout>
</com.videogo.widget.TimeBarHorizontalScrollView>
<TextView
android:id="@+id/remoteplayback_time_tv"
android:layout_width="87dp"
android:layout_height="87dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="22dp"
android:background="@drawable/palyback_time_bg"
android:gravity="center"
android:onClick="onClick"
android:text="00:00:00"
android:textColor="@color/white" />
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ezopen_realplay_operate_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadingEdge="none"
android:background="#e0e0e0"
android:scrollbars="none" >
<LinearLayout
android:id="@+id/realplay_operate_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<LinearLayout
android:id="@+id/realplay_ptz_btn_ly"
android:layout_width="@dimen/width_functional_widget"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal">
<ImageButton
android:id="@+id/realplay_ptz_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_ptz_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/ptz"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_talk_btn_ly"
android:layout_width="@dimen/width_functional_widget"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal">
<ImageButton
android:id="@+id/realplay_talk_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_talk_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/talk"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/realplay_ssl_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/realplay_ssl_btn_rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/realplay_ssl_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/source_detection_off"
android:textColor="@color/source_detection_btn_color"
android:textSize="@dimen/source_detection_text_size"
android:background="@drawable/sound_source"
android:onClick="onClick" />
<ProgressBar
android:id="@+id/realplay_ssl_progress"
android:indeterminateDrawable="@drawable/common_loading_indeterminate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"/>
</RelativeLayout>
<TextView
android:id="@+id/realplay_ssl_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_source_localization"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_privacy_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_privacy_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_privacy_selector"
android:onClick="onClick" />
<TextView
android:id="@+id/realplay_privacy_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_camera_lens"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_previously_btn_ly"
android:layout_width="@dimen/width_functional_widget"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal">
<ImageButton
android:id="@+id/realplay_previously_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_previously_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/capture"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_video_container_ly"
android:layout_width="@dimen/width_functional_widget"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal">
<LinearLayout
android:id="@+id/realplay_video_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal">
<ImageButton
android:id="@+id/realplay_video_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_video_start_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_sel"
android:onClick="onClick"
android:visibility="gone" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/record"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</HorizontalScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ezopen_realplay_operate_bar2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadingEdge="none"
android:scrollbars="none"
android:paddingBottom="44dp" >
<RelativeLayout
android:id="@+id/realplay_operate_ly2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:layout_gravity="left"
android:paddingRight="30dp" >
<LinearLayout
android:id="@+id/realplay_ptz_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_ptz_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_ptz_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/ptz"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_talk_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_talk_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_talk_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/talk"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_ssl_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/realplay_ssl_btn_rl2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/realplay_ssl_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/source_detection_off"
android:textColor="@color/source_detection_btn_color"
android:textSize="@dimen/source_detection_text_size"
android:background="@drawable/sound_source"
android:onClick="onClick" />
<ProgressBar
android:id="@+id/realplay_ssl_progress2"
android:indeterminateDrawable="@drawable/common_loading_indeterminate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"/>
</RelativeLayout>
<TextView
android:id="@+id/realplay_ssl_tv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_source_localization"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_privacy_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_privacy_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_privacy_selector"
android:onClick="onClick" />
<TextView
android:id="@+id/realplay_privacy_tv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_camera_lens"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_previously_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_previously_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_previously_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/capture"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_video_container_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/realplay_video_container2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageButton
android:id="@+id/realplay_video_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_video_start_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_sel"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/record"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
</RelativeLayout>
</HorizontalScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@color/gray_bg">
<com.videogo.widget.pulltorefresh.PullToRefreshListView
android:id="@+id/cifyConfigList"
android:layout_width="300dp"
android:layout_height="400dp"
/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/labelbelongType"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="belongType"
android:gravity="center_horizontal"
android:textSize="24sp"
/>
<EditText
android:id="@+id/belongType"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginRight="3dp"
android:layout_toRightOf="@id/labelbelongType"
android:layout_toEndOf="@id/labelbelongType"
android:layout_alignTop="@id/labelbelongType"
android:hint="belongType"
/>
<TextView
android:id="@+id/labelLocation"
android:layout_marginTop="30dp"
android:layout_below="@id/labelbelongType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Location"
android:gravity="center_horizontal"
android:textSize="24sp"
/>
<EditText
android:id="@+id/latitude"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginRight="3dp"
android:layout_toRightOf="@id/labelLocation"
android:layout_toEndOf="@id/labelLocation"
android:layout_alignTop="@id/labelLocation"
android:hint="Latitude"
/>
<EditText
android:id="@+id/longitude"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/latitude"
android:layout_alignLeft="@id/latitude"
android:layout_alignStart="@id/latitude"
android:hint="Longitude"
/>
<TextView
android:id="@+id/labelFilter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/longitude"
android:layout_alignRight="@id/labelLocation"
android:layout_alignEnd="@id/labelLocation"
android:text="Filter"
android:gravity="center_horizontal"
android:textSize="24sp"
/>
<EditText
android:id="@+id/range"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/longitude"
android:layout_alignTop="@id/labelFilter"
android:layout_toRightOf="@id/labelFilter"
android:layout_toEndOf="@id/labelFilter"
android:layout_alignLeft="@id/longitude"
android:layout_alignStart="@id/longitude"
android:hint="range"/>
<EditText
android:id="@+id/cameraName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/range"
android:layout_alignLeft="@id/range"
android:layout_alignStart="@id/range"
android:hint="cameraName"/>
<TextView
android:id="@+id/labelSort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/cameraName"
android:layout_alignRight="@id/labelFilter"
android:layout_alignEnd="@id/labelFilter"
android:text="Sort"
android:gravity="center_horizontal"
android:textSize="24sp"
/>
<CheckBox
android:id="@+id/viewSort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="viewSort"
android:layout_toRightOf="@id/labelSort"
android:layout_toEndOf="@id/labelSort"
android:layout_alignTop="@id/labelSort"
android:layout_alignLeft="@id/cameraName"
android:layout_alignStart="@id/cameraName"
android:layout_below="@id/cameraName"
/>
<CheckBox
android:id="@+id/cameraNameSort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="cameraNameSort"
android:layout_below="@id/viewSort"
android:layout_alignLeft="@id/viewSort"
android:layout_alignStart="@id/viewSort"/>
<CheckBox
android:id="@+id/rangeSort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="rangeSort"
android:layout_below="@+id/cameraNameSort"
android:layout_alignLeft="@id/cameraNameSort"
android:layout_alignStart="@id/cameraNameSort"/>
<Button
android:id="@+id/submit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="search"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<com.videogo.widget.pulltorefresh.PullToRefreshGridView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="3dp"
android:columnWidth="160dp"
android:fadingEdge="none"
android:gravity="center"
android:horizontalSpacing="10dp"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:verticalSpacing="10dp"
android:background="@color/gray_bg" />
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:gravity="center"
android:orientation="horizontal"
android:padding="10dp"
>
<ImageView
android:id="@+id/cover"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/describtion"
android:scaleType="fitXY"
android:src="@drawable/device_other"
android:visibility="visible"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="vertical"
>
<TextView
android:id="@+id/device_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="13dp"
android:ellipsize="middle"
android:singleLine="true"
android:textColor="@color/c3"
android:textSize="@dimen/f5"
android:visibility="visible"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="13dp"
android:singleLine="true"
android:text="IP:"
android:textColor="@color/c5"
android:textSize="@dimen/f3"
android:visibility="visible"
/>
<TextView
android:id="@+id/ip_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:singleLine="true"
android:text="192.168.1.0:5050"
android:textColor="@color/c5"
android:textSize="@dimen/f3"
android:visibility="visible"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView
android:id="@+id/safe_box_tip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="@string/lan_device_pwd_tip"
android:textColor="@color/c2"
android:textSize="@dimen/button_text_size"
/>
<EditText
android:id="@+id/login_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="5dp"
android:background="@drawable/edittext_bg"
android:hint="@string/user_name_txt"
android:inputType="textPersonName"
android:minHeight="44dp"
android:singleLine="true"
android:text="@string/lan_device_login_default_name"
/>
<EditText
android:id="@+id/login_pwd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:background="@drawable/edittext_bg"
android:hint="@string/password_et_hint"
android:inputType="text"
android:maxLength="16"
android:minHeight="44dp"
android:singleLine="true"
android:text="test1234"
/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/preview_selection_bg"
android:orientation="vertical"
android:gravity="center"
android:paddingBottom="20dp">
<Button
android:id="@+id/rate_16x"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="16x"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
<Button
android:id="@+id/rate_8x"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="8x"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
<Button
android:id="@+id/rate_4x"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="4x"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
<Button
android:id="@+id/rate_1x"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="1x"
android:textColor="@color/quality_color_selector"
android:textSize="@dimen/realplay_text_size"
android:background="@color/transparent" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="30dp">
<TextView
android:id="@+id/tv_tip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="tips"
android:textColor="@color/black"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:background="@color/black"
android:alpha="0.85"
android:clickable="true">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical"
android:gravity="center_horizontal">
<ProgressBar
android:layout_width="100dp"
android:layout_height="100dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sdk_is_init"
android:layout_marginTop="20dp"
android:textSize="18dp"
android:textColor="@color/white"/>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:gravity="center_horizontal"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/imgLineConnectGuid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="90dp"
android:src="@drawable/wifi_connect_tip" />
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/tvIntroduce1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="@string/device_wificonfig_hasline_introduce"
android:textColor="@color/black"
android:textSize="@dimen/large_text_size" />
<TextView
android:id="@+id/tvIntroduce2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="50dp"
android:layout_marginTop="30dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="@string/if_your_device_has_set_time"
android:textColor="@color/gray_text"
android:textSize="@dimen/large_text_size" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="50dp"
android:layout_height="25dp"
android:background="@color/white"
android:gravity="center_vertical" >
<TextView
android:id="@+id/header_text"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_toLeftOf="@+id/timeline_image"
android:gravity="center_vertical|right"
android:text="02"
android:textColor="@color/c1"
android:textSize="10dp"
android:textStyle="bold" />
<ImageView
android:id="@+id/separate_line"
android:layout_width="0.5dp"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_marginRight="6dp"
android:background="#adadad" />
<ImageView
android:id="@+id/timeline_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:scaleType="fitXY"
android:src="@drawable/timeline_sel" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.videogo.widget.loading.LoadingView
android:id="@+id/loading_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/loading_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="0%"
android:textColor="@color/gray_text"
android:textSize="15sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<ImageView
android:id="@+id/shipin7_logo_lyt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_centerHorizontal="true"
android:background="@drawable/login_logo"
android:layout_marginTop="100dp"
>
</ImageView>
<RelativeLayout
android:id="@+id/handle_lyt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_below="@id/shipin7_logo_lyt"
>
<Button
android:id="@+id/web_login_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="63dp"
android:background="@drawable/interface_call_btn_selector"
android:text="@string/ui_call_demo_txt"
android:gravity="center_horizontal|center_vertical"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<Button
android:id="@+id/btn_landevice"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@drawable/interface_call_btn_selector"
android:text="Landevice"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/web_login_btn"
android:onClick="onClick" />
<Button
android:id="@+id/platform_login_btn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:paddingTop="160dp"
android:background="@drawable/login_btn_selector"
android:gravity="center_horizontal|center_vertical"
android:text="@string/platform_login_button_txt"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:layout_below="@id/web_login_btn"
android:visibility="gone"
android:onClick="onClick" />
<LinearLayout
android:id="@+id/id_ll_join_qq_group"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="25dp"
android:gravity="center_horizontal|center_vertical"
android:orientation="horizontal"
android:onClick="onClick"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="官方交流群 "
android:textColor="@color/gray"
android:id="@+id/id_tv_join_qq_group"/>
<Button
android:id="@+id/id_btn_join_qq_group"
android:layout_width="90px"
android:layout_height="22px"
android:background="@drawable/join_qq_group"
android:textColor="@color/gray"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<TextView
android:id="@+id/message_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:textColor="#adadad"
android:textSize="12sp" />
<RelativeLayout
android:id="@+id/message_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@drawable/message_border_bg"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/message_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp" >
<FrameLayout
android:id="@+id/message_image_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/message_image"
android:layout_width="95dp"
android:layout_height="70dp"
android:layout_gravity="center"
android:scaleType="fitXY" />
<com.videogo.widget.ProgressBarHaveText
android:id="@+id/message_image_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminateDrawable="@drawable/my_progress_drawable"
android:max="100" />
</FrameLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:orientation="vertical" >
<TextView
android:id="@+id/message_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:textColor="@color/black"
android:textSize="@dimen/sub_button_text_size" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:orientation="horizontal" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:text="@string/message_come_from_tip"
android:textColor="@color/event_message_from_tv"
android:textSize="@dimen/sub_button_text_size" />
<TextView
android:id="@+id/message_from"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:gravity="left"
android:maxLines="3"
android:textColor="@color/event_message_from_tv"
android:textSize="@dimen/sub_button_text_size" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@id/message_content"
android:background="@color/common_line" />
<LinearLayout
android:id="@+id/play_video_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/divider"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/message_video_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/event_message_bg_selector"
android:gravity="center"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:src="@drawable/message_video_selector" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:text="@string/message_video"
android:textColor="@color/message_button_text_selector"
android:textSize="12sp" />
</LinearLayout>
<View
android:id="@+id/mid_vertical_view"
android:layout_width="0.5dp"
android:layout_height="match_parent"
android:background="@color/common_line" />
<LinearLayout
android:id="@+id/message_play_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/event_message_bg_selector"
android:gravity="center"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:src="@drawable/message_play_selector" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:text="@string/message_live"
android:textColor="@color/message_button_text_selector"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.videogo.widget.pulltorefresh.PullToRefreshListView
android:id="@+id/message_list"
style="@style/CommonListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar" />
<FrameLayout
android:id="@+id/no_message_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
android:visibility="gone" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/nomessage"
android:text="@string/message_no_data_text" />
</FrameLayout>
<LinearLayout
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title_bar"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone" >
<TextView
android:id="@+id/refresh_tip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:gravity="center"
android:text="@string/message_refresh_fail_network_exception"
android:textSize="@dimen/title_text_size" />
<LinearLayout
android:id="@+id/refresh_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/refresh_selector"
android:gravity="center" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:background="@drawable/camera_list_refresh"
android:contentDescription="@string/refresh" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/refresh"
android:textColor="@color/black_text"
android:textSize="@dimen/title_text_size" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<com.videogo.widget.GroupLayout
style="@style/CommonGroupLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_layout_padding" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/device_set_layout_height"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<EditText
android:id="@+id/name_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#0000"
android:hint="@string/ez_device_name_hint"
android:imeOptions="actionDone"
android:inputType="text"
android:maxLength="50"
android:singleLine="true"
android:textColor="@color/common_text"
android:textSize="@dimen/device_set_text_size" />
<TextView
android:id="@+id/detector_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textColor="@color/setting_hint_text"
android:textSize="@dimen/device_set_text_size"
android:visibility="gone" />
<ImageButton
android:id="@+id/name_del"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_weight="0"
android:background="#0000"
android:src="@drawable/name_del_selector" />
</LinearLayout>
</com.videogo.widget.GroupLayout>
<TextView
android:id="@+id/input_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/common_bg"
android:gravity="left"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding"
android:paddingTop="@dimen/device_set_text_padding"
android:text="@string/detail_modify_device_name_limit_tip"
android:textColor="@color/setting_hint_text"
android:textSize="@dimen/device_set_text_size" />
<Button
android:id="@+id/btn_id_save_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="@drawable/login_btn_selector"
android:text="@string/ez_save"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size"
android:onClick="onClick" />
<LinearLayout
android:id="@+id/common_name_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/device_set_padding"
android:orientation="vertical"
android:paddingLeft="@dimen/device_set_padding"
android:paddingRight="@dimen/device_set_padding" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/setting_hint_text"
android:textSize="@dimen/device_set_text_size" />
<!--
<com.videogo.widget.UnscrollableGridView
android:id="@+id/common_name_gridview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnWidth="70dp"
android:horizontalSpacing="8dp"
android:numColumns="auto_fit"
android:verticalSpacing="8dp" />
-->
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:gravity="center"
android:orientation="vertical" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/face_image3" />
<TextView
android:id="@+id/error_prompt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="@string/network_error_retry_prompt"
android:textColor="@color/c3"
android:textSize="@dimen/f6" />
<Button
android:id="@+id/retry_button"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/login_btn_selector"
android:gravity="center"
android:text="@string/retry"
android:textColor="@color/white"
android:textSize="@dimen/login_text_size" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="5dp" >
<TextView
android:id="@+id/no_more_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/xlistview_footer_hint_no_more_device"
android:textColor="@color/common_text"
android:textSize="14sp" />
<!--<TextView
android:id="@+id/no_more_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:text="@string/xlistview_footer_hint_no_more_device"
android:textColor="@color/common_sub_text"
android:textSize="12sp" /> -->
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="5dp" >
<TextView
android:id="@+id/no_more_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/xlistview_footer_no_more"
android:textColor="@color/common_text"
android:textSize="14sp" />
<TextView
android:id="@+id/no_more_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:text="@string/xlistview_footer_no_more"
android:textColor="@color/common_sub_text"
android:textSize="12sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="5dp" >
<TextView
android:id="@+id/no_more_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/xlistview_footer_no_more_msg"
android:textColor="@color/common_text"
android:textSize="14sp" />
<TextView
android:id="@+id/no_more_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:text="@string/xlistview_footer_no_more_msg"
android:textColor="@color/common_sub_text"
android:textSize="12sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/camera_item_rl"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:clickable="true"
android:orientation="horizontal" >
<RelativeLayout
android:id="@+id/item_icon_area"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp" >
<ImageView
android:id="@+id/item_icon"
android:layout_width="110dp"
android:layout_height="80dp"
android:src="@drawable/notify_bg" />
<ImageView
android:id="@+id/item_offline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/offline"
android:visibility="gone" />
<com.videogo.widget.ProgressBarHaveText
android:id="@+id/watting_pb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminateDrawable="@drawable/my_progress_drawable"
android:max="100"
android:visibility="gone" />
</RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical"
android:gravity="left|center_vertical" >
<Button
android:id="@+id/camera_item_btn"
android:layout_width="fill_parent"
android:layout_height="90dp"
android:layout_marginBottom="1dp"
android:layout_marginTop="1dp"
android:background="@drawable/cameralist_item_selector"
android:ellipsize="end"
android:gravity="left|center_vertical"
android:maxWidth="20dp"
android:paddingLeft="5dp"
android:paddingRight="40dp"
android:singleLine="true"
android:textColor="@color/textview_txtcolor_selector"
android:textSize="@dimen/button_text_size" />
<TextView
android:id="@+id/name_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="35dp"
android:layout_marginTop="12dp"
android:ellipsize="end"
android:gravity="left|center_vertical"
android:maxLines="1"
android:singleLine="false"
android:textColor="@color/black"
android:textSize="@dimen/assistant_text_size" />
<TextView
android:id="@+id/from_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/name_tv"
android:layout_marginLeft="5dp"
android:layout_marginRight="45dp"
android:layout_marginTop="2dp"
android:ellipsize="end"
android:gravity="left|center_vertical"
android:singleLine="true"
android:textColor="@color/black"
android:textSize="@dimen/assistant_text_size" />
<TextView
android:id="@+id/time_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/from_tv"
android:layout_marginLeft="5dp"
android:layout_marginRight="35dp"
android:layout_marginTop="2dp"
android:ellipsize="end"
android:gravity="left|center_vertical"
android:singleLine="true"
android:textColor="#ababab"
android:textSize="@dimen/assistant_text_size" />
<TextView
android:id="@+id/message_num_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="27dp"
android:background="@drawable/number_bg"
android:gravity="center"
android:text="3"
android:textColor="@color/white"
android:textSize="@dimen/maintab_message_count_text_size"
android:visibility="gone" />
</RelativeLayout>
<View
android:id="@+id/input_view1"
android:layout_width="fill_parent"
android:layout_height="0.5dp"
android:background="@color/gray" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myRelativeLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="0.5dp"
android:background="@color/black" >
<LinearLayout
android:id="@+id/alarmlist_ly"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical"
android:visibility="gone" >
<ListView
android:id="@+id/alarmlist_lv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:clickable="true"
android:divider="@color/gray"
android:dividerHeight="1dp"
android:fastScrollEnabled="true"
android:stackFromBottom="true"
android:transcriptMode="alwaysScroll" >
</ListView>
<View
android:layout_width="fill_parent"
android:layout_height="0.5dp"
android:background="@color/gray" />
<RelativeLayout
android:id="@+id/alarm_info_rl"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:background="@color/white" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/later_alarm"
android:textColor="@color/black_text"
android:textSize="@dimen/title_text_size" />
<Button
android:id="@+id/alarm_close_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="20dp"
android:background="@drawable/push_close_selector" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sms_verify_dailog_ly"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/phone_ly"
android:layout_width="fill_parent"
android:layout_height="48dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="10dp"
android:background="@drawable/input_shade" >
<EditText
android:id="@+id/phone_et"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
android:gravity="left|center_vertical"
android:hint="@string/please_input_phonenumber_txt"
android:inputType="number"
android:singleLine="true"
android:textColor="@color/gray_text"
android:textColorHint="@color/gray"
android:textSize="@dimen/button_text_size" />
</LinearLayout>
<Button
android:id="@+id/get_sms_code_btn"
android:layout_width="fill_parent"
android:layout_height="48dp"
android:layout_margin="5dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/graybtn_secetor"
android:gravity="center_vertical|center_horizontal"
android:singleLine="true"
android:text="@string/get_sms_code"
android:textColor="@color/black_text"
android:textSize="@dimen/button_text_size" />
<LinearLayout
android:id="@+id/sms_code_lyt"
android:layout_width="fill_parent"
android:layout_height="48dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:background="@drawable/input_shade" >
<EditText
android:id="@+id/sms_code_et"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
android:gravity="left|center_vertical"
android:hint="@string/sms_verify_code_received"
android:inputType="number"
android:singleLine="true"
android:textColor="@color/gray_text"
android:textColorHint="@color/gray"
android:textSize="@dimen/button_text_size" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:orientation="vertical" >
<TextView
android:id="@+id/message1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/button_text_size" />
<EditText
android:id="@+id/new_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:inputType="textPassword"
android:maxLength="16"
android:textSize="@dimen/button_text_size" />
<TextView
android:id="@+id/message2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:textColor="@color/white"
android:gravity="center"
android:textSize="@dimen/button_text_size" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10dp" >
<TextView
android:id="@+id/footer_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/xlistview_footer_hint_normal" />
<TextView
android:id="@+id/footer_hint_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/footer_hint"
android:layout_centerHorizontal="true"
android:layout_marginTop="25dp"
android:text="@string/xlistview_footer_hint_no_more_device"
android:visibility="gone" />
<LinearLayout
android:id="@+id/footer_loading_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="horizontal"
android:visibility="invisible" >
<ProgressBar
android:id="@+id/footer_progress"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="10dp"
android:indeterminateDrawable="@drawable/common_refresh_indeterminate" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/loading" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="60dp" >
<LinearLayout
android:id="@+id/header_text_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal" >
<ImageView
android:id="@+id/header_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:src="@drawable/arrow_down" />
<ProgressBar
android:id="@+id/header_progress"
android:layout_width="24dp"
android:layout_height="24dp"
android:indeterminateDrawable="@drawable/common_refresh_indeterminate"
android:visibility="gone" />
<TextView
android:id="@+id/header_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/xlistview_header_hint_normal" />
</LinearLayout>
<TextView
android:id="@+id/header_hint_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:text="@string/no_more_leave_tip"
android:visibility="gone" />
<LinearLayout
android:id="@+id/header_time_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/xlistview_header_last_time"
android:textSize="@dimen/sub_button_text_size" />
<TextView
android:id="@+id/header_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sub_button_text_size" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_control_rl"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_below="@+id/realplay_sv"
android:background="@color/play_translucent_bg" >
<!-- 播放按钮 -->
<ImageButton
android:id="@+id/realplay_play_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="14dp"
android:background="@drawable/play_play_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_sound_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="13dp"
android:layout_toRightOf="@+id/realplay_play_btn"
android:background="@drawable/play_voice_selector"
android:onClick="onClick" />
<Button
android:id="@+id/realplay_quality_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="13dp"
android:layout_toRightOf="@+id/realplay_sound_btn"
android:background="@drawable/video_quality_selector"
android:onClick="onClick"
android:text="@string/quality_balanced"
android:textColor="@color/white"
android:textSize="@dimen/realplay_text_size" />
<!-- 播放速度 -->
<TextView
android:id="@+id/realplay_flow_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="13dp"
android:layout_toLeftOf="@+id/fullscreen_button"
android:text="12k/s 5MB"
android:textColor="@color/white"
android:textSize="@dimen/realplay_text_size"
android:visibility="gone" />
<com.videogo.widget.CheckTextButton
android:id="@+id/fullscreen_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="11dp"
android:background="@drawable/fullscreen_button_selector" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_full_operate_layout"
android:layout_alignBottom="@+id/realplay_sv"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<RelativeLayout
android:id="@+id/realplay_full_operate_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="15dp"
android:visibility="gone">
<ImageButton
android:id="@+id/realplay_full_play_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="15dp"
android:background="@drawable/play_full_play_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_full_sound_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="9dp"
android:layout_toRightOf="@+id/realplay_full_play_btn"
android:background="@drawable/play_full_soundon_btn_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_full_talk_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="9dp"
android:layout_toRightOf="@+id/realplay_full_sound_btn"
android:background="@drawable/speech_full_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_full_previously_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="9dp"
android:layout_toRightOf="@+id/realplay_full_talk_btn"
android:background="@drawable/play_full_previously_selector"
android:onClick="onClick" />
<FrameLayout
android:id="@+id/realplay_full_video_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="9dp"
android:layout_toRightOf="@+id/realplay_full_previously_btn" >
<ImageButton
android:id="@+id/realplay_full_video_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_full_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_full_video_start_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_full_video_now_selector"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<ImageButton
android:id="@+id/realplay_full_ptz_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="9dp"
android:layout_toRightOf="@+id/realplay_full_video_container"
android:background="@drawable/play_full_ptz_selector"
android:onClick="onClick" />
<LinearLayout
android:id="@+id/realplay_full_flow_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="74dp"
android:layout_alignParentRight="true"
android:background="@anim/play_full_multiple_anim_bg"
android:gravity="center"
android:orientation="vertical" >
<TextView
android:id="@+id/realplay_full_rate_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:text="523k/s"
android:textColor="@color/white"
android:textSize="@dimen/realplay_channel_text_size" />
<TextView
android:id="@+id/realplay_full_flow_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:text="345MB"
android:textColor="@color/white"
android:textSize="@dimen/realplay_channel_text_size" />
</LinearLayout>
</RelativeLayout>
<ImageButton
android:id="@+id/realplay_full_talk_anim_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_marginLeft="15dp"
android:background="@drawable/speech"
android:onClick="onClick"
android:visibility="gone" />
<ImageButton
android:id="@+id/realplay_full_ptz_anim_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_marginLeft="15dp"
android:background="@drawable/yuntai_pressed"
android:onClick="onClick"
android:visibility="gone" />
<com.videogo.widget.CheckTextButton
android:id="@+id/fullscreen_full_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="15dp"
android:layout_marginBottom="15dp"
android:background="@drawable/horizontal_fullscreen_button_selector"
android:visibility="gone" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_loading_rl"
android:layout_width="match_parent"
android:layout_height="200dp"
android:background="@color/black_bg" >
<TextView
android:id="@+id/realplay_tip_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:text="设备不在线"
android:textColor="@color/white"
android:textSize="@dimen/realplay_tip_text_size"
android:visibility="gone" />
<ImageView
android:id="@+id/realplay_play_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:onClick="onClick"
android:scaleType="fitXY"
android:src="@drawable/ez_leave_message_play_selector"
android:visibility="gone" />
<com.videogo.widget.loading.LoadingTextView
android:id="@+id/realplay_loading"
style="@style/LoadingTextView_Percent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<LinearLayout
android:id="@+id/realplay_privacy_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/preview_close1_video_ico"
android:scaleType="fitXY" />
<TextView
android:id="@+id/realplay_privacy_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/camera_lens_closed"
android:textColor="@color/viewfinder_frame"
android:textSize="@dimen/realplay_button_text_size" />
</LinearLayout>
<ImageView
android:id="@+id/realplay_page_anim_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_operate_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadingEdge="none"
android:scrollbars="none" >
<LinearLayout
android:id="@+id/realplay_operate_ly"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="left"
android:gravity="center"
android:orientation="horizontal"
android:paddingRight="25dp"
android:layout_marginBottom="44dp" >
<LinearLayout
android:id="@+id/realplay_ptz_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:orientation="vertical" >"
<ImageButton
android:id="@+id/realplay_ptz_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_ptz_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/ptz"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_talk_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_talk_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_talk_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/talk"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_ssl_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/realplay_ssl_btn_rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/realplay_ssl_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/source_detection_off"
android:textColor="@color/source_detection_btn_color"
android:textSize="@dimen/source_detection_text_size"
android:background="@drawable/sound_source"
android:onClick="onClick" />
<ProgressBar
android:id="@+id/realplay_ssl_progress"
android:indeterminateDrawable="@drawable/common_loading_indeterminate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"/>
</RelativeLayout>
<TextView
android:id="@+id/realplay_ssl_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_source_localization"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_privacy_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_privacy_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_privacy_selector"
android:onClick="onClick" />
<TextView
android:id="@+id/realplay_privacy_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_camera_lens"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_previously_btn_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_previously_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_previously_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/capture"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_video_container_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/realplay_video_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageButton
android:id="@+id/realplay_video_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_video_start_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_sel"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/record"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
</LinearLayout>
</HorizontalScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_operate_bar2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadingEdge="none"
android:scrollbars="none"
android:paddingBottom="44dp" >
<RelativeLayout
android:id="@+id/realplay_operate_ly2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:layout_gravity="left"
android:paddingRight="30dp" >
<LinearLayout
android:id="@+id/realplay_ptz_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_ptz_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_ptz_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/ptz"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_talk_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_talk_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_talk_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/talk"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_ssl_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/realplay_ssl_btn_rl2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/realplay_ssl_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/source_detection_off"
android:textColor="@color/source_detection_btn_color"
android:textSize="@dimen/source_detection_text_size"
android:background="@drawable/sound_source"
android:onClick="onClick" />
<ProgressBar
android:id="@+id/realplay_ssl_progress2"
android:indeterminateDrawable="@drawable/common_loading_indeterminate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"/>
</RelativeLayout>
<TextView
android:id="@+id/realplay_ssl_tv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_source_localization"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_privacy_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_privacy_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_privacy_selector"
android:onClick="onClick" />
<TextView
android:id="@+id/realplay_privacy_tv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/close_camera_lens"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_previously_btn_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<ImageButton
android:id="@+id/realplay_previously_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_previously_selector"
android:onClick="onClick" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/capture"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<LinearLayout
android:id="@+id/realplay_video_container_ly2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/realplay_video_container2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageButton
android:id="@+id/realplay_video_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_selector"
android:onClick="onClick" />
<ImageButton
android:id="@+id/realplay_video_start_btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_sel"
android:onClick="onClick"
android:visibility="gone" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:text="@string/record"
android:layout_gravity="center"
android:textColor="@color/common_sub_text"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
</RelativeLayout>
</HorizontalScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_page_ly"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/common_bg"
android:gravity="center"
android:orientation="vertical" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar_portrait"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:id="@+id/realplay_play_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/black_bg" >
<SurfaceView
android:id="@+id/realplay_sv"
android:layout_width="600dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
android:background="@android:color/transparent" />
<include layout="@layout/realplay_loading_layout" />
<!--
<include layout="@layout/realplay_control_layout" />
-->
<include layout="@layout/ez_play_control" />
<include layout="@layout/realplay_prompt_layout" />
<RelativeLayout
android:id="@+id/realplay_capture_rl"
android:layout_width="65dp"
android:layout_height="45dp"
android:layout_alignBottom="@+id/realplay_sv"
android:layout_alignLeft="@+id/realplay_sv"
android:background="@color/white"
android:onClick="onClick"
android:padding="1dp"
android:visibility="gone" >
<ImageView
android:id="@+id/realplay_capture_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
<ImageView
android:id="@+id/realplay_capture_watermark_iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/video_file_watermark"
android:visibility="gone" />
</RelativeLayout>
<include layout="@layout/realplay_full_operate_layout" />
<ImageView
android:id="@+id/realplay_ptz_direction_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignBottom="@+id/realplay_sv"
android:background="@drawable/left_twinkle"
android:scaleType="fitXY"
android:visibility="gone" />
<ImageButton
android:id="@+id/realplay_full_anim_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/yuntai_pressed"
android:visibility="gone" />
</RelativeLayout>
<include layout="@layout/realplay_operate_bar" android:visibility="gone"/>
<include layout="@layout/realplay_operate_bar2" android:visibility="gone"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/realplay_prompt_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<com.videogo.widget.TitleBar
android:id="@+id/title_bar_landscape"
style="@style/TitleBar_Dark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/realplay_ratio_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="70dp"
android:layout_marginTop="20dp"
android:text="2.0X"
android:textColor="@color/white"
android:textSize="@dimen/realplay_ratio_text_size"
android:visibility="gone" />
<LinearLayout
android:id="@+id/realplay_record_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="false"
android:layout_centerHorizontal="true"
android:layout_centerVertical="false"
android:layout_marginRight="15dp"
android:layout_marginTop="15dp"
android:background="@drawable/play_video_time_bg"
android:gravity="center"
android:visibility="gone" >
<ImageView
android:id="@+id/realplay_record_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/play_video_record"
android:scaleType="fitXY" />
<TextView
android:id="@+id/realplay_record_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:text="00:25"
android:textColor="@color/white"
android:textSize="@dimen/realplay_text_size" />
</LinearLayout>
<ImageView
android:id="@+id/realplay_full_ptz_prompt_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/ptz_prompt"
android:scaleType="fitXY"
android:visibility="gone"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="@color/common_bg" >
<ImageButton
android:id="@+id/ptz_close_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:background="@drawable/play_close_selector"
android:onClick="onClick" />
<LinearLayout
android:id="@+id/ptz_control_ly"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_centerInParent="true"
android:background="@drawable/ptz_bg"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/ptz_top_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/ptz_left_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null"
android:layout_weight="3" />
<ImageButton
android:id="@+id/ptz_flip_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible"
android:background="@drawable/ptz_turn_selector"
android:layout_weight="2" />
<ImageButton
android:id="@+id/ptz_right_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null"
android:layout_weight="3" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/ptz_bottom_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment