diff --git a/app/src/androidTest/java/com/yonsz/z1/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/yonsz/z1/ExampleInstrumentedTest.java new file mode 100644 index 0000000..e228c3d --- /dev/null +++ b/app/src/androidTest/java/com/yonsz/z1/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.yonsz.z1; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumentation test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.administrator.unikong", appContext.getPackageName()); + } +} diff --git a/app/src/ansunxan/java/com/ansunxan.z1/wxapi/WXEntryActivity.java b/app/src/ansunxan/java/com/ansunxan.z1/wxapi/WXEntryActivity.java new file mode 100644 index 0000000..793e4aa --- /dev/null +++ b/app/src/ansunxan/java/com/ansunxan.z1/wxapi/WXEntryActivity.java @@ -0,0 +1,101 @@ +package com.ansunxan.z1.wxapi; + +import android.app.Activity; +import android.content.Intent; +import android.graphics.Bitmap; +import android.os.Bundle; +import android.util.Log; + +import com.tencent.mm.opensdk.modelbase.BaseReq; +import com.tencent.mm.opensdk.modelbase.BaseResp; +import com.tencent.mm.opensdk.modelmsg.SendAuth; +import com.tencent.mm.opensdk.openapi.IWXAPI; +import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; +import com.tencent.mm.opensdk.openapi.WXAPIFactory; +import com.yonsz.z1.R; +import com.yonsz.z1.database.entity.entitya2.WxLoginEvent; + +import java.io.ByteArrayOutputStream; + +import de.greenrobot.event.EventBus; + +import static com.yonsz.z1.difference.DifferConstans.WX_APP_ID; + + +public class WXEntryActivity extends Activity implements IWXAPIEventHandler { + private IWXAPI iwxapi; + + public static byte[] bmpToByteArray(final Bitmap bmp, final boolean needRecycle) { + ByteArrayOutputStream output = new ByteArrayOutputStream(); + bmp.compress(Bitmap.CompressFormat.PNG, 100, output); + if (needRecycle) { + bmp.recycle(); + } + byte[] result = output.toByteArray(); + try { + output.close(); + } catch (Exception e) { + e.printStackTrace(); + } + return result; + } + + @Override + + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_wxentry); + iwxapi = WXAPIFactory.createWXAPI(this, WX_APP_ID, false); + iwxapi.handleIntent(getIntent(), this); + iwxapi.registerApp(WX_APP_ID); + } + + + @Override + protected void onNewIntent(Intent intent) { + super.onNewIntent(intent); + setIntent(intent); + iwxapi.handleIntent(intent, this); + } + + @Override + public void onReq(BaseReq baseReq) { + Log.i("BaseReq", "" + baseReq.openId + "---" + baseReq.transaction); + } + + @Override + public void onResp(BaseResp resp) { + Log.i("BaseReq", "" + resp.openId + "---" + resp.transaction + "===" + resp.errCode + "==" + resp.errStr); + String result; + switch (resp.errCode) { + case BaseResp.ErrCode.ERR_OK: + result = getString(R.string.Share_success); + if (resp instanceof SendAuth.Resp) { + String code = ((SendAuth.Resp) resp).code; + Log.i("BaseReq", "LoginActivity onResp()" + code); + EventBus.getDefault().post( + new WxLoginEvent(code)); + } else { + + } + break; + case BaseResp.ErrCode.ERR_USER_CANCEL: + result = "取消分享"; + break; + case BaseResp.ErrCode.ERR_AUTH_DENIED: + result = "分享被拒绝"; + break; + default: + result = "发送返回"; + break; + } + finish(); + } + + private String buildTransaction(final String type) { + return (type == null) ? String.valueOf(System.currentTimeMillis()) : type + System.currentTimeMillis(); + } + + enum SHARE_TYPE {Type_WXSceneSession, Type_WXSceneTimeline} + +} diff --git a/app/src/ansunxan/java/com/ansunxan.z1/wxapi/WXPayEntryActivity.java b/app/src/ansunxan/java/com/ansunxan.z1/wxapi/WXPayEntryActivity.java new file mode 100644 index 0000000..6d08828 --- /dev/null +++ b/app/src/ansunxan/java/com/ansunxan.z1/wxapi/WXPayEntryActivity.java @@ -0,0 +1,55 @@ +package com.ansunxan.z1.wxapi; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; + +import com.tencent.mm.opensdk.constants.ConstantsAPI; +import com.tencent.mm.opensdk.modelbase.BaseReq; +import com.tencent.mm.opensdk.modelbase.BaseResp; +import com.tencent.mm.opensdk.openapi.IWXAPI; +import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; +import com.tencent.mm.opensdk.openapi.WXAPIFactory; +import com.yonsz.z1.R; +import static com.yonsz.z1.difference.DifferConstans.WX_APP_ID; + +public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler { + + private final String TAG = "WXPayEntryActivity"; + + private IWXAPI api; + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_wxentry); + api = WXAPIFactory.createWXAPI(this, WX_APP_ID); + api.handleIntent(getIntent(), this); + } + + @Override + protected void onNewIntent(Intent intent) { + super.onNewIntent(intent); + setIntent(intent); + api.handleIntent(intent, this); + } + @Override + public void onReq(BaseReq req) { + } + + @Override + public void onResp(BaseResp resp) { + Log.i(TAG,"errCode = " + resp.errCode); + //最好依赖于商户后台的查询结果 + if (resp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) { + //如果返回-1,很大可能是因为应用签名的问题。用官方的工具生成 + //签名工具下载:https://open.weixin.qq.com/zh_CN/htmledition/res/dev/download/sdk/Gen_Signature_Android.apk + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setTitle("提示"); + builder.setMessage(getString(R.string.pay_result_callback_msg, String.valueOf(resp.errCode))); + builder.show(); + } + finish(); + } +} \ No newline at end of file diff --git a/app/src/ansunxan/java/com/yonsz/z1/difference/DifferConstans.java b/app/src/ansunxan/java/com/yonsz/z1/difference/DifferConstans.java new file mode 100644 index 0000000..8e300da --- /dev/null +++ b/app/src/ansunxan/java/com/yonsz/z1/difference/DifferConstans.java @@ -0,0 +1,20 @@ +package com.yonsz.z1.difference; + +/** + * Created by Administrator on 2018/6/21. + */ + +public class DifferConstans { + //后台版本控制 + public static final String VERSION_S = "v1"; + public static final String APPID_S = "1103"; + public static final String APPSECRET_S = "ysz666888"; + public static final String APPID_S_VOICE = "110301"; + public static final String WX_APP_ID = "wx809b2ddc1b72ecb6"; + public static final String SERVER_BACKUP4 = "https://openapi.lechange.cn:443";//乐橙 + public static final String TEPRINCIPLE_UPDATE = "teprinciple2.update"; + public static String versionUrl = "http://a.app.qq.com/o/simple.jsp?pkgname=com.ansunxan.z1"; + public static String LECHENG_KEY = "ysz123456"; + public static String LECHENG_APPID = "lcc58705630dd248d1"; + public static String LECHENG_APPSECRET = "91ac51eb533b4253ae2b917470ad27"; +} diff --git a/app/src/ansunxan/java/com/yonsz/z1/login/LoginActivity.java b/app/src/ansunxan/java/com/yonsz/z1/login/LoginActivity.java new file mode 100644 index 0000000..548b037 --- /dev/null +++ b/app/src/ansunxan/java/com/yonsz/z1/login/LoginActivity.java @@ -0,0 +1,509 @@ +package com.yonsz.z1.login; + +import android.content.Intent; +import android.os.Bundle; +import android.os.Message; +import android.text.Editable; +import android.text.TextUtils; +import android.text.TextWatcher; +import android.util.Log; +import android.view.MotionEvent; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import android.widget.Toast; + +import com.alibaba.fastjson.JSON; +import com.tencent.mm.opensdk.modelbase.BaseReq; +import com.tencent.mm.opensdk.modelbase.BaseResp; +import com.tencent.mm.opensdk.modelmsg.SendAuth; +import com.tencent.mm.opensdk.openapi.IWXAPI; +import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; +import com.tencent.mm.opensdk.openapi.WXAPIFactory; +import com.yonsz.z1.R; +import com.yonsz.z1.activity.BaseActivity; +import com.yonsz.z1.database.entity.ResponeEntity; +import com.yonsz.z1.database.entity.TokenEntity; +import com.yonsz.z1.database.entity.entitya2.WxLoginEvent; +import com.yonsz.z1.difference.DifferConstans; +import com.yonsz.z1.listener.OnTitleItemClickListener; +import com.yonsz.z1.login.forgetpw.ForgetPWActivity; +import com.yonsz.z1.login.register.RegisterActivity; +import com.yonsz.z1.login.register.WxRegisterActivity; +import com.yonsz.z1.net.Constans; +import com.yonsz.z1.net.NetWorkUrl; +import com.yonsz.z1.net.NetWorkUtil; +import com.yonsz.z1.utils.DensityUtil; +import com.yonsz.z1.utils.KeyboardUtil; +import com.yonsz.z1.utils.SharedpreferencesUtil; +import com.yonsz.z1.utils.ToastUtil; +import com.yonsz.z1.utils.VerificationUtils; +import com.yonsz.z1.version4.MainActivity4; +import com.yonsz.z1.view.TitleView; +import com.yonsz.z1.view.loading.LoadingDialog; + +import java.util.HashMap; + +import de.greenrobot.event.EventBus; + +import static com.yonsz.z1.R.id.clean_password; +import static com.yonsz.z1.R.id.iv_clean_phone; +import static com.yonsz.z1.difference.DifferConstans.APPID_S; +import static com.yonsz.z1.difference.DifferConstans.APPSECRET_S; +import static com.yonsz.z1.difference.DifferConstans.WX_APP_ID; +import static com.yonsz.z1.net.Constans.FAN_LEARN_WHAT; +import static com.yonsz.z1.net.Constans.GET_PHONE_AREA; +import static com.yonsz.z1.net.Constans.GET_TOKEN_FAIL; +import static com.yonsz.z1.net.Constans.LOGIN_FAIL; +import static com.yonsz.z1.net.Constans.LOGIN_SUCCESS; +import static com.yonsz.z1.net.Constans.WX_LOGIN_FAIL; +import static com.yonsz.z1.net.Constans.WX_LOGIN_REGISTER; +import static com.yonsz.z1.net.Constans.WX_LOGIN_SUCCESS; + +/** + * Created by Administrator on 2017/5/16. + */ + +public class LoginActivity extends BaseActivity implements IWXAPIEventHandler { + private TitleView mTitle; + private Button mLogin; + private TextView mRegister; + private TextView mForgetPw; + private EditText mUserName; + private EditText mPassWord; + private ImageView cleanPhoneIv; + private ImageView cleanPasswordIv; + private LoadingDialog mLoadingDialog; + private RelativeLayout rl_weixin_login; + private LinearLayout phoneAreaLl; + + private IWXAPI iwxapi; + private TextView phoneArea; + + @Override + public boolean dispatchTouchEvent(MotionEvent ev) { + switch (ev.getAction()) { + case MotionEvent.ACTION_DOWN: + View view = getCurrentFocus(); + KeyboardUtil.hideKeyboard(ev, view, LoginActivity.this);//调用方法判断是否需要隐藏键盘 + break; + + default: + break; + } + return super.dispatchTouchEvent(ev); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_login); + initView(); + initListener(); + + iwxapi = WXAPIFactory.createWXAPI(this, WX_APP_ID, true); + iwxapi.handleIntent(this.getIntent(), this); + iwxapi.registerApp(WX_APP_ID); + + if (TextUtils.isEmpty(SharedpreferencesUtil.get(Constans.SEESSIONID, ""))) { + getToken(); + } + } + + private void getToken() { + NetWorkUtil util = NetWorkUtil.instans(); + HashMap map = new HashMap<>(); + map.put("appId", APPID_S); + map.put("appSecret", APPSECRET_S); + util.requestPostByAsynewApi(NetWorkUrl.GET_TOKEN, map, new NetWorkUtil.ReqCallBack() { + @Override + public void onSuccess(String respone) { + Log.i("getToken", "onSuccess: " + respone); + TokenEntity entity = JSON.parseObject(respone, TokenEntity.class); + SharedpreferencesUtil.save(Constans.TOKENID, entity.getData().getToken().toString().trim()); + } + + @Override + public void onFail(String message) { + Log.i("getToken", "onSuccess: " + message); + Message msg = mHandler.obtainMessage(GET_TOKEN_FAIL); + msg.obj = message; + mHandler.sendMessage(msg); + } + }); + } + + @Override + public boolean enableSliding() { + return false; + } + + public void onEventMainThread(WxLoginEvent event) { + String msg = event.getMsg(); + Log.e("nettyUtil", msg); + Message message = new Message(); + message.what = FAN_LEARN_WHAT; + message.obj = msg; + mHandler.sendMessage(message); + } + + + private void initView() { + phoneArea = (TextView) findViewById(R.id.tv_phone_area); + phoneAreaLl = (LinearLayout) findViewById(R.id.ll_phone_area); + cleanPhoneIv = (ImageView) findViewById(iv_clean_phone); + cleanPasswordIv = (ImageView) findViewById(clean_password); + mUserName = (EditText) findViewById(R.id.edit_username); + mUserName.setText(SharedpreferencesUtil.get(Constans.USERPHONE, "")); + if (!TextUtils.isEmpty(mUserName.getText().toString())) { + cleanPhoneIv.setVisibility(View.VISIBLE); + } + mPassWord = (EditText) findViewById(R.id.edit_pw); + mLogin = (Button) findViewById(R.id.bt_sure); + mLogin.setBackgroundDrawable(getResources().getDrawable(R.drawable.btn_round_9cc6f6)); + mRegister = (TextView) findViewById(R.id.tv_register); + mForgetPw = (TextView) findViewById(R.id.txt_forget_pw); + rl_weixin_login = (RelativeLayout) findViewById(R.id.rl_weixin_login); + mLoadingDialog = new LoadingDialog(this); + mTitle = (TitleView) findViewById(R.id.title_login); + mTitle.setHead(R.string.login); + mTitle.setHeadBackGone(); + mTitle.setHeadFuntionTxt(" "); + mTitle.setTitleListener(new OnTitleItemClickListener() { + @Override + public void onBack() { + + } + + @Override + public void onFunction() { + } + + @Override + public void onFunctionText() { + } + }); + } + + private void initListener() { + rl_weixin_login.setOnClickListener(this); + mLogin.setOnClickListener(this); + mRegister.setOnClickListener(this); + mForgetPw.setOnClickListener(this); + cleanPasswordIv.setOnClickListener(this); + cleanPhoneIv.setOnClickListener(this); + phoneAreaLl.setOnClickListener(this); + mUserName.addTextChangedListener(new TextWatcher() { + @Override + public void beforeTextChanged(CharSequence s, int start, int count, int after) { + + } + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + int i = s.length(); + if (i == 0 || TextUtils.isEmpty(mPassWord.getText())) { + mLogin.setBackgroundDrawable(getResources().getDrawable(R.drawable.btn_round_9cc6f6)); + mLogin.setEnabled(false); + } else { + mLogin.setBackgroundDrawable(getResources().getDrawable(R.drawable.btn_round_398dee)); + mLogin.setEnabled(true); + } + } + + @Override + public void afterTextChanged(Editable s) { + if (!TextUtils.isEmpty(s) && cleanPhoneIv.getVisibility() == View.GONE) { + cleanPhoneIv.setVisibility(View.VISIBLE); + } else if (TextUtils.isEmpty(s)) { + cleanPhoneIv.setVisibility(View.GONE); + } + } + }); + mPassWord.addTextChangedListener(new TextWatcher() { + @Override + public void beforeTextChanged(CharSequence s, int start, int count, int after) { + + } + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + int i = s.length(); + if (i == 0 || TextUtils.isEmpty(mUserName.getText())) { + mLogin.setBackgroundDrawable(getResources().getDrawable(R.drawable.btn_round_9cc6f6)); + mLogin.setEnabled(false); + } else { + mLogin.setBackgroundDrawable(getResources().getDrawable(R.drawable.btn_round_398dee)); + mLogin.setEnabled(true); + } + } + + @Override + public void afterTextChanged(Editable s) { + if (!TextUtils.isEmpty(s) && cleanPasswordIv.getVisibility() == View.GONE) { + cleanPasswordIv.setVisibility(View.VISIBLE); + } else if (TextUtils.isEmpty(s)) { + cleanPasswordIv.setVisibility(View.GONE); + } + if (s.toString().isEmpty()) + return; + if (!s.toString().matches("[A-Za-z0-9]+")) { + String temp = s.toString(); + Toast.makeText(LoginActivity.this, R.string.Enter_a_number, Toast.LENGTH_SHORT).show(); + s.delete(temp.length() - 1, temp.length()); + mPassWord.setSelection(s.length()); + + } + } + }); + } + + @Override + public void onClick(View v) { + super.onClick(v); + switch (v.getId()) { + case R.id.bt_sure: + if (DensityUtil.isNetworkConnected(this)) { + login(); + } else { + ToastUtil.show(this, R.string.no_network_connection); + } + break; + case R.id.tv_register: + startActivity(new Intent(LoginActivity.this, RegisterActivity.class)); + break; + case R.id.txt_forget_pw: + Intent intent = new Intent(LoginActivity.this, ForgetPWActivity.class); + intent.putExtra("tag", "LoginActivity"); + startActivity(intent); + break; + case R.id.iv_clean_phone: + mUserName.setText(""); + break; + case R.id.clean_password: + mPassWord.setText(""); + break; + case R.id.rl_weixin_login: + if (!iwxapi.isWXAppInstalled()) { + Toast.makeText(this, getString(R.string.not_installed_Wechat), Toast.LENGTH_SHORT).show(); + return; + } + wxLogin(); + break; + case R.id.ll_phone_area: + Intent intent1 = new Intent(LoginActivity.this, PhoneAreaActivity.class); + intent1.putExtra("type", "login"); + startActivityForResult(intent1, GET_PHONE_AREA); + break; + } + } + + private void wxLogin() { + SendAuth.Req req1 = new SendAuth.Req(); + req1.scope = "snsapi_userinfo"; + req1.state = "wechat_sdk_demo_test"; + iwxapi.sendReq(req1); + } + + private void login() { + String name = mUserName.getText().toString(); + String phoneCode = phoneArea.getText().toString(); + SharedpreferencesUtil.save(Constans.USERPHONE, mUserName.getText().toString()); + if (!VerificationUtils.isMobile(name.trim())) { + ToastUtil.show(this, R.string.phone_error); + return; + } + String password = mPassWord.getText().toString(); + if (TextUtils.isEmpty(password.trim()) || password.length() < 6) { + ToastUtil.show(this, R.string.password_error); + return; + } + NetWorkUtil util = NetWorkUtil.instans(); + HashMap map = new HashMap<>(); + // mobileLogin=true&isValidatjeesiteLogin=false&username=admin&password=admin + map.put("appId", DifferConstans.APPID_S); + map.put("mobile", name); + map.put("password", password); + map.put("telAreaCode", phoneCode.substring(phoneCode.indexOf("+") + 1, phoneCode.length())); + map.put("mobileLogin", "true"); + map.put("clientType", "1"); + // map.put("isValidatjeesiteLogin", "false"); + mLoadingDialog.show(); + util.requestPostByAsynewApi(NetWorkUrl.LOGIN_URL, map, new NetWorkUtil.ReqCallBack() { + @Override + public void onSuccess(String respone) { + ResponeEntity entity = JSON.parseObject(respone, ResponeEntity.class); + Log.i("login111", "onSuccess: " + respone); + if (1 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(LOGIN_SUCCESS); + msg.obj = entity; + mHandler.sendMessage(msg); + } else { + Message msg = mHandler.obtainMessage(LOGIN_FAIL); + msg.obj = entity.getMsg(); + mHandler.sendMessage(msg); + } + } + + @Override + public void onFail(String message) { + Message msg = mHandler.obtainMessage(LOGIN_FAIL); + msg.obj = message; + mHandler.sendMessage(msg); + } + }); + } + + @Override + public void callBackUiThread(Message msg) { + mLoadingDialog.dismiss(); + switch (msg.what) { + case LOGIN_FAIL: + ToastUtil.show(this, (String) msg.obj); + break; + case WX_LOGIN_FAIL: + if (null != mLoadingDialog) { + mLoadingDialog.dismiss(); + } + ToastUtil.show(this, (String) msg.obj); + break; + case LOGIN_SUCCESS: + ResponeEntity entity = (ResponeEntity) msg.obj; + // ToastUtil.show(this, entity.getMsg()); + Toast.makeText(LoginActivity.this, R.string.login_success, Toast.LENGTH_SHORT).show(); + SharedpreferencesUtil.save(Constans.SEESSIONID, entity.getData().getSession()); + SharedpreferencesUtil.save(Constans.USERID, entity.getData().getUserId()); + // SharedpreferencesUtil.save(Constans.USERNAME, entity.getObj().getUser().getName()); + SharedpreferencesUtil.save(Constans.PASSWORD, mPassWord.getText().toString()); + boolean isSetting = TextUtils.isEmpty(SharedpreferencesUtil. + get(SharedpreferencesUtil.get(Constans.USERID, ""), "")); + startActivity(new Intent(this, MainActivity4.class)); + finish(); + /*if (isSetting) { + Intent intent = new Intent(this, SetGestureCodeActivity.class); + intent.putExtra("isset", true); + intent.putExtra("SEESSIONID", entity.getObj().getLogininfo().getSessionId()); + startActivity(intent); + + } else { + startActivity(new Intent(this, MainActivity.class)); + }*/ + break; + case WX_LOGIN_SUCCESS: + ResponeEntity wxLoginEntity = (ResponeEntity) msg.obj; + Toast.makeText(LoginActivity.this, R.string.login_success, Toast.LENGTH_SHORT).show(); +// SharedpreferencesUtil.save(Constans.USERPHONE, wxLoginEntity.getObj().getUserInfo().getLoginName()); + SharedpreferencesUtil.save(Constans.SEESSIONID, wxLoginEntity.getData().getSession()); + SharedpreferencesUtil.save(Constans.USERID, wxLoginEntity.getData().getUserId()); +// SharedpreferencesUtil.save(Constans.USERNAME, wxLoginEntity.getObj().getUserInfo().getName()); + startActivity(new Intent(this, MainActivity4.class)); + finish(); + break; + case WX_LOGIN_REGISTER: + //去注册 + ResponeEntity entity1 = (ResponeEntity) msg.obj; + Intent intent = new Intent(LoginActivity.this, WxRegisterActivity.class); + intent.putExtra("wxId", entity1.getObj().getWxId()); + intent.putExtra("headUrl", entity1.getObj().getHeadUrl()); + intent.putExtra("userName", entity1.getObj().getUserName()); + startActivity(intent); + break; + + case FAN_LEARN_WHAT: + String code = (String) msg.obj; + quickLogin(code); + break; + } + } + + /** + * 微信登录 + * + * @param code + */ + private synchronized void quickLogin(String code) { + if (mLoadingDialog.isShowing()) { + return; + } + mLoadingDialog.show(); + NetWorkUtil util = NetWorkUtil.instans(); + HashMap map = new HashMap<>(); + map.put("code", code); + map.put("appId", DifferConstans.APPID_S); + util.requestPostByAsynewApi(NetWorkUrl.WX_QUICK_LOGIN, map, new NetWorkUtil.ReqCallBack() { + @Override + public void onSuccess(String respone) { + Log.i("quickLogin", "onSuccess: " + respone); + ResponeEntity entity = JSON.parseObject(respone, ResponeEntity.class); + if (1 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(WX_LOGIN_SUCCESS); + msg.obj = entity; + mHandler.sendMessage(msg); + } else if (1011 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(WX_LOGIN_REGISTER); + msg.obj = entity; + mHandler.sendMessage(msg); + } else if (1013 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(WX_LOGIN_REGISTER); + msg.obj = entity; + mHandler.sendMessage(msg); + } else { + Message msg = mHandler.obtainMessage(WX_LOGIN_FAIL); + msg.obj = entity.getMsg(); + mHandler.sendMessage(msg); + } + } + + @Override + public void onFail(String message) { + Message msg = mHandler.obtainMessage(LOGIN_FAIL); + msg.obj = message; + mHandler.sendMessage(msg); + } + }); + } + + @Override + public void onReq(BaseReq baseReq) { + + } + + @Override + public void onResp(BaseResp resp) { + Log.i("BaseReq", "" + resp.openId + "---" + resp.transaction + "===" + resp.errCode + "==" + resp.errStr); + String code = ((SendAuth.Resp) resp).code; + Log.i("BaseReq", "LoginActivity onResp()" + code); + String result; + switch (resp.errCode) { + case BaseResp.ErrCode.ERR_OK: + result = getString(R.string.Share_success); + EventBus.getDefault().post( + new WxLoginEvent(code)); + break; + case BaseResp.ErrCode.ERR_USER_CANCEL: + result = "取消分享"; + break; + case BaseResp.ErrCode.ERR_AUTH_DENIED: + result = "分享被拒绝"; + break; + default: + result = "发送返回"; + break; + } + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + switch (requestCode) { + case GET_PHONE_AREA: + if (data != null && data.getExtras().get("phoneArea") != null) { + phoneArea.setText(data.getExtras().get("phoneArea").toString()); + } + break; + } + } +} diff --git a/app/src/ansunxan/java/com/yonsz/z1/login/WelcomeActivity.java b/app/src/ansunxan/java/com/yonsz/z1/login/WelcomeActivity.java new file mode 100644 index 0000000..32fc9ba --- /dev/null +++ b/app/src/ansunxan/java/com/yonsz/z1/login/WelcomeActivity.java @@ -0,0 +1,319 @@ +package com.yonsz.z1.login; + +import android.Manifest; +import android.annotation.TargetApi; +import android.content.Intent; +import android.graphics.Rect; +import android.os.Build; +import android.os.Bundle; +import android.os.Message; +import android.text.TextUtils; +import android.util.Log; +import android.view.DisplayCutout; +import android.view.Gravity; +import android.view.LayoutInflater; +import android.view.View; +import android.view.WindowInsets; +import android.widget.Toast; + +import com.alibaba.fastjson.JSON; +import com.qw.soul.permission.SoulPermission; +import com.qw.soul.permission.bean.Permission; +import com.qw.soul.permission.bean.Permissions; +import com.qw.soul.permission.callbcak.CheckRequestPermissionsListener; +import com.tencent.android.tpush.XGIOperateCallback; +import com.tencent.android.tpush.XGPushManager; +import com.yonsz.z1.R; +import com.yonsz.z1.activity.BaseActivity; +import com.yonsz.z1.database.entity.TokenEntity; +import com.yonsz.z1.fragment.person.WebViewActivity; +import com.yonsz.z1.net.Constans; +import com.yonsz.z1.net.NetWorkUrl; +import com.yonsz.z1.net.NetWorkUtil; +import com.yonsz.z1.utils.AppGenerUtil; +import com.yonsz.z1.utils.DensityUtil; +import com.yonsz.z1.utils.SharedpreferencesUtil; +import com.yonsz.z1.version4.MainActivity4; +import com.yonsz.z1.view.PrivacyPopupWindow; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; + +import static com.yonsz.z1.UniKongApp.getActivity; +import static com.yonsz.z1.difference.DifferConstans.APPID_S; +import static com.yonsz.z1.difference.DifferConstans.APPSECRET_S; +import static com.yonsz.z1.net.Constans.CLOSE_THIS_ACTIVITY; +import static com.yonsz.z1.net.Constans.GET_TOKEN_FAIL; +import static com.yonsz.z1.net.Constans.GET_TOKEN_SUCCESS; + +/** + * Created by Administrator on 2017/5/17. + */ + +public class WelcomeActivity extends BaseActivity { + + private final static int FLAG_TO_LOGIN = 1001; + private final static int FLAG_TO_GUIDER = 1002; + private final static int FLAG_TO_GESTURE = 1003; + private final static int FLAG_TO_MAIN = 1004; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_welcome); + /*if (Build.VERSION.SDK_INT >= 28) { + getNotchParams(); + }*/ + } + + @Override + public boolean enableSliding() { + return false; + } + + @Override + public void onResume() { + super.onResume(); + if (DensityUtil.isNetworkConnected(this) && DensityUtil.isNetConnected(this)) { + getToken(); + } else { + initNext(); + } + } + + private void getToken() { + NetWorkUtil util = NetWorkUtil.instans(); + HashMap map = new HashMap<>(); + map.put("appId", APPID_S); + map.put("appSecret", APPSECRET_S); + util.requestPostByAsynewApi(NetWorkUrl.GET_TOKEN, map, new NetWorkUtil.ReqCallBack() { + @Override + public void onSuccess(String respone) { + Log.i("getToken", "onSuccess: " + respone); + TokenEntity entity = JSON.parseObject(respone, TokenEntity.class); + if (1 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(GET_TOKEN_SUCCESS); + msg.obj = entity; + mHandler.sendMessage(msg); + } else { + Message msg = mHandler.obtainMessage(GET_TOKEN_FAIL); + msg.obj = entity.getMsg(); + mHandler.sendMessage(msg); + } + } + + @Override + public void onFail(String message) { + Log.i("getToken", "onSuccess: " + message); + Message msg = mHandler.obtainMessage(GET_TOKEN_FAIL); + msg.obj = message; + mHandler.sendMessage(msg); + } + }); + } + + private void initNext() { + /** + * 如果USERID不是空,进入手势页面,如果已经过了引导页,如果SEESSIONID不是空,进入主页面,如果 + * 是空重新登录,都不是就进入引导页 + */ + if (null != SharedpreferencesUtil.get(Constans.PORT, null) && SharedpreferencesUtil.get(Constans.PORT, null).contains(":")) { + + } else { + SharedpreferencesUtil.save(Constans.PORT, "wss.yonsz.net:25533"); + } + /*if (!TextUtils.isEmpty(SharedpreferencesUtil.get(Constans.SEESSIONID, ""))) { + mHandler.sendEmptyMessageDelayed(FLAG_TO_MAIN, 1000); + } else { + mHandler.sendEmptyMessageDelayed(FLAG_TO_LOGIN, 1000); + } + boolean isSetting = TextUtils.isEmpty(SharedpreferencesUtil. + get(SharedpreferencesUtil.get(Constans.USERID, ""), ""));*/ + SoulPermission.getInstance().checkAndRequestPermissions( + Permissions.build(Manifest.permission.ACCESS_FINE_LOCATION), + //if you want do noting or no need all the callbacks you may use SimplePermissionsAdapter instead + new CheckRequestPermissionsListener() { + @Override + public void onAllPermissionOk(Permission[] allPermissions) { + setPermission(); + } + + @Override + public void onPermissionDenied(Permission[] refusedPermissions) { + setPermission(); + } + }); + } + + private void setPermission() { + SoulPermission.getInstance().checkAndRequestPermissions( + Permissions.build(Manifest.permission.WRITE_EXTERNAL_STORAGE), + //if you want do noting or no need all the callbacks you may use SimplePermissionsAdapter instead + new CheckRequestPermissionsListener() { + @Override + public void onAllPermissionOk(Permission[] allPermissions) { + if (SharedpreferencesUtil.get(Constans.ISOVER)) { + gotoNext(); + } else { + showPrivacy(); + } + } + + @Override + public void onPermissionDenied(Permission[] refusedPermissions) { + if (SharedpreferencesUtil.get(Constans.ISOVER)) { + gotoNext(); + } else { + showPrivacy(); + } + } + }); + } + + private void gotoNext() { + if (!TextUtils.isEmpty(SharedpreferencesUtil.get(Constans.SEESSIONID, ""))) { + if (!TextUtils.isEmpty(SharedpreferencesUtil.get(Constans.ADIMAGEURL, ""))) { + mHandler.sendEmptyMessageDelayed(FLAG_TO_GESTURE, 1000); + } else { + mHandler.sendEmptyMessageDelayed(FLAG_TO_MAIN, 1000); + } + } else { + if (!TextUtils.isEmpty(SharedpreferencesUtil.get(Constans.ADIMAGEURL, ""))) { + mHandler.sendEmptyMessageDelayed(FLAG_TO_GESTURE, 1000); + } else { + mHandler.sendEmptyMessageDelayed(FLAG_TO_LOGIN, 1000); + } + } + } + + private void showPrivacy() { + View rootview = LayoutInflater.from(getActivity()).inflate(R.layout.activity_child_device_a2, null); + PrivacyPopupWindow popupWindow = new PrivacyPopupWindow(getActivity(), new PrivacyPopupWindow.OnCompleteListener() { + @Override + public void onComplete() { + SharedpreferencesUtil.save(Constans.ISOVER, true); + gotoNext(); + } + + @Override + public void onFinish() { + finish(); + } + + @Override + public void onPrivacy() { + Intent intent = new Intent(getActivity(), WebViewActivity.class); + intent.putExtra("platform", "register"); + startActivity(intent); + } + }); + popupWindow.showAtLocation(rootview, Gravity.BOTTOM, 0, 0); + } + + @Override + public void callBackUiThread(Message msg) { + switch (msg.what) { + case FLAG_TO_LOGIN: + startActivity(new Intent(this, LoginActivity.class)); + finish(); + break; + case FLAG_TO_GUIDER: + startActivity(new Intent(this, GuiderActivity.class)); + overridePendingTransition(R.anim.activity_exit_in, R.anim.activity_exit_out); + finish(); + break; + case FLAG_TO_GESTURE: + startActivity(new Intent(this, AdinfoActivity.class)); + finish(); + break; + case FLAG_TO_MAIN: + startActivity(new Intent(this, MainActivity4.class)); + SharedpreferencesUtil.save("isShowMobilePlay", "0"); + finish(); + break; + case GET_TOKEN_SUCCESS: + TokenEntity entity = (TokenEntity) msg.obj; + if (SharedpreferencesUtil.get(Constans.TOKENID, "").equals(entity.getData().getToken().toString().trim())) { + + } else { + SharedpreferencesUtil.save(Constans.SEESSIONID, ""); + } + SharedpreferencesUtil.save(Constans.TOKENID, entity.getData().getToken().toString().trim()); +// SharedpreferencesUtil.save(Constans.ADIMAGEURL, entity.getData().getStartUpImgUrl()); + String androidVersions = entity.getData().getAndroidVersions().toString(); + if (null != androidVersions) { + String packageVersion = AppGenerUtil.getPackageVersion(this); + List result = Arrays.asList(androidVersions.split(",")); + initNext(); + /*if (result.contains(packageVersion)) { + initNext(); + } else { + // initNext(); + UpdateAppUtils.from(this) + .apkPath(versionUrl) + .downloadBy(DOWNLOAD_BY_BROWSER) + .isForce(true) + .update(true); + }*/ + } else { + initNext(); + } + /*if (null != SharedpreferencesUtil.get(Constans.TOKENID, "")) { + if (entity.getObj().toString().trim().equals(SharedpreferencesUtil.get(Constans.TOKENID, ""))) { + initNext(); + } else { + ToastUtil.show(this, "token已过期"); + mHandler.sendEmptyMessageDelayed(CLOSE_THIS_ACTIVITY, 1000); + } + } else { + SharedpreferencesUtil.save(Constans.TOKENID, entity.getObj().toString().trim()); + initNext(); + }*/ + break; + case CLOSE_THIS_ACTIVITY: + finish(); + break; + case GET_TOKEN_FAIL: + initNext(); + break; + } + } + + @TargetApi(28) + public void getNotchParams() { + final View decorView = getWindow().getDecorView(); + + decorView.post(new Runnable() { + @Override + public void run() { + WindowInsets rootWindowInsets = decorView.getRootWindowInsets(); + if (rootWindowInsets == null) { + Log.e("TAG", "rootWindowInsets为空了"); + return; + } + DisplayCutout displayCutout = rootWindowInsets.getDisplayCutout(); + Log.e("TAG", "安全区域距离屏幕左边的距离 SafeInsetLeft:" + displayCutout.getSafeInsetLeft()); + Log.e("TAG", "安全区域距离屏幕右部的距离 SafeInsetRight:" + displayCutout.getSafeInsetRight()); + Log.e("TAG", "安全区域距离屏幕顶部的距离 SafeInsetTop:" + displayCutout.getSafeInsetTop()); + Log.e("TAG", "安全区域距离屏幕底部的距离 SafeInsetBottom:" + displayCutout.getSafeInsetBottom()); + + List rects = displayCutout.getBoundingRects(); + if (rects == null || rects.size() == 0) { + Log.e("TAG", "不是刘海屏"); + } else { + if (displayCutout.getSafeInsetTop() > 140) { + SharedpreferencesUtil.save(Constans.ISALLSCREEN, "true"); + } else { + SharedpreferencesUtil.save(Constans.ISALLSCREEN, "false"); + } + Log.e("TAG", "刘海屏数量:" + rects.size()); + for (Rect rect : rects) { + Log.e("TAG", "刘海屏区域:" + rect); + } + } + } + }); + } +} diff --git a/app/src/ansunxan/java/com/yonsz/z1/login/register/CopyRightActivity.java b/app/src/ansunxan/java/com/yonsz/z1/login/register/CopyRightActivity.java new file mode 100644 index 0000000..42ccb7f --- /dev/null +++ b/app/src/ansunxan/java/com/yonsz/z1/login/register/CopyRightActivity.java @@ -0,0 +1,46 @@ +package com.yonsz.z1.login.register; + +import android.os.Bundle; +import android.os.Message; + +import com.yonsz.z1.R; +import com.yonsz.z1.activity.BaseActivity; +import com.yonsz.z1.listener.OnTitleItemClickListener; +import com.yonsz.z1.view.TitleView; + +/** + * Created by Administrator on 2017/6/15. + */ + +public class CopyRightActivity extends BaseActivity { + private TitleView mTitleView; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_copyright); + mTitleView = (TitleView) findViewById(R.id.title_text); + mTitleView.setHead("用户协议"); + mTitleView.setTitleListener(new OnTitleItemClickListener() { + @Override + public void onBack() { + finish(); + } + + @Override + public void onFunction() { + + } + + @Override + public void onFunctionText() { + + } + }); + } + + @Override + public void callBackUiThread(Message msg) { + + } +} diff --git a/app/src/ansunxan/java/com/yonsz/z1/mine/aboutversion/AboutVersionActivity.java b/app/src/ansunxan/java/com/yonsz/z1/mine/aboutversion/AboutVersionActivity.java new file mode 100644 index 0000000..09dcf5e --- /dev/null +++ b/app/src/ansunxan/java/com/yonsz/z1/mine/aboutversion/AboutVersionActivity.java @@ -0,0 +1,353 @@ +package com.yonsz.z1.mine.aboutversion; + +import android.Manifest; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.net.Uri; +import android.os.Bundle; +import android.os.Message; +import android.support.v4.app.ActivityCompat; +import android.util.Log; +import android.view.Gravity; +import android.view.View; +import android.view.Window; +import android.view.WindowManager; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import android.widget.Toast; + +import com.alibaba.fastjson.JSON; +import com.qw.soul.permission.SoulPermission; +import com.qw.soul.permission.bean.Permission; +import com.qw.soul.permission.bean.Permissions; +import com.qw.soul.permission.callbcak.CheckRequestPermissionsListener; +import com.tencent.mm.opensdk.modelbase.BaseReq; +import com.tencent.mm.opensdk.modelbase.BaseResp; +import com.tencent.mm.opensdk.modelmsg.SendMessageToWX; +import com.tencent.mm.opensdk.modelmsg.WXImageObject; +import com.tencent.mm.opensdk.modelmsg.WXMediaMessage; +import com.tencent.mm.opensdk.openapi.IWXAPI; +import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; +import com.tencent.mm.opensdk.openapi.WXAPIFactory; +import com.yonsz.z1.R; +import com.yonsz.z1.activity.BaseActivity; +import com.yonsz.z1.database.entity.VersionEntity; +import com.yonsz.z1.listener.NoDoubleClickListener; +import com.yonsz.z1.listener.OnTitleItemClickListener; +import com.yonsz.z1.mine.aboutversion.customview.ConfirmDialog; +import com.yonsz.z1.mine.aboutversion.customview.DeviceBottomDialog; +import com.yonsz.z1.mine.aboutversion.feature.Callback; +import com.yonsz.z1.mine.aboutversion.util.ScoreUtils; +import com.yonsz.z1.mine.aboutversion.util.UpdateAppUtils; +import com.yonsz.z1.net.Constans; +import com.yonsz.z1.net.NetWorkUrl; +import com.yonsz.z1.net.NetWorkUtil; +import com.yonsz.z1.utils.AppGenerUtil; +import com.yonsz.z1.utils.SharedpreferencesUtil; +import com.yonsz.z1.utils.ToastUtil; +import com.yonsz.z1.view.TitleView; + +import java.util.ArrayList; +import java.util.HashMap; + +import static com.tencent.mm.opensdk.modelmsg.SendMessageToWX.Req.WXSceneSession; +import static com.tencent.mm.opensdk.modelmsg.SendMessageToWX.Req.WXSceneTimeline; +import static com.yonsz.z1.UniKongApp.getActivity; +import static com.yonsz.z1.difference.DifferConstans.APPID_S; +import static com.yonsz.z1.difference.DifferConstans.APPID_S_VOICE; +import static com.yonsz.z1.difference.DifferConstans.WX_APP_ID; +import static com.yonsz.z1.difference.DifferConstans.versionUrl; +import static com.yonsz.z1.fragment.person.PersonFragment.bmpToByteArray; +import static com.yonsz.z1.mine.aboutversion.util.UpdateAppUtils.DOWNLOAD_BY_APP; +import static com.yonsz.z1.net.Constans.GET_USER_SESSION_NULL; +import static com.yonsz.z1.net.Constans.UPDATE_STATE_FAIL; +import static com.yonsz.z1.net.Constans.UPDATE_STATE_SUCCESS; +import static com.yonsz.z1.version4.MainActivity4.versionId; + +/** + * Created by Administrator on 2017/5/26. + */ +public class AboutVersionActivity extends BaseActivity implements IWXAPIEventHandler { + private TextView tv_version; + private TextView tv_public_goto; + private ImageView iv_code; + private IWXAPI iwxapi; + private RelativeLayout scoreRl, versionDecalreRl, versionUpdateRl; + private TextView serviceHotlineTv; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_about_version); + iwxapi = WXAPIFactory.createWXAPI(this, WX_APP_ID, false); + iwxapi.handleIntent(getIntent(), this); + iwxapi.registerApp(WX_APP_ID); + + TitleView titleView = (TitleView) findViewById(R.id.title_about_version); + titleView.setHead(R.string.about_version); + titleView.setTitleListener(new OnTitleItemClickListener() { + @Override + public void onBack() { + finish(); + } + + @Override + public void onFunction() { + + } + + @Override + public void onFunctionText() { + + } + }); + scoreRl = (RelativeLayout) findViewById(R.id.rl_to_score); + serviceHotlineTv = (TextView) findViewById(R.id.tv_customer_service_hotline); + versionDecalreRl = (RelativeLayout) findViewById(R.id.rl_version_declare); + versionUpdateRl = (RelativeLayout) findViewById(R.id.rl_version_update); + iv_code = (ImageView) findViewById(R.id.iv_code); + tv_public_goto = (TextView) findViewById(R.id.tv_public_goto); + tv_version = (TextView) findViewById(R.id.tv_version); + tv_version.setText("V" + AppGenerUtil.getPackageVersion(this)); + + checkUpdate(1); + + + iv_code.setOnClickListener(new NoDoubleClickListener() { + @Override + protected void onNoDoubleClick(View v) { + // showDioalog(); + } + }); + tv_public_goto.setOnClickListener(new NoDoubleClickListener() { + @Override + public void onNoDoubleClick(View v) { + super.onClick(v); + // showDioalog(); + } + }); + scoreRl.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + ArrayList strings = ScoreUtils.SelectedInstalledAPPs(getApplicationContext(), ScoreUtils.InstalledAPPs(getApplicationContext())); + ScoreUtils.launchAppDetail(AboutVersionActivity.this, "com.yonsz.z1", strings.get(0)); + } + }); + versionDecalreRl.setOnClickListener(new NoDoubleClickListener() { + @Override + protected void onNoDoubleClick(View v) { + Intent intent = new Intent(AboutVersionActivity.this, VersionDecalreActivity.class); + intent.putExtra("activity", "AboutVersionActivity"); + startActivity(intent); + } + }); + versionUpdateRl.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + updataUserState(); + } + }); + serviceHotlineTv.setOnClickListener(new NoDoubleClickListener() { + @Override + protected void onNoDoubleClick(View v) { + callHotline(); + } + }); + } + + private void callHotline() { + ConfirmDialog dialog = new ConfirmDialog(getActivity(), new Callback() { + @Override + public void callback(int position) { + switch (position) { + case 0: + break; + case 1: + callPhone("4001365663"); + break; + } + } + }); + dialog.setContent("400 136 5663"); + dialog.setCancleBtn(R.string.cancel); + dialog.setSureBtn(R.string.call); + dialog.setCancelable(false); + dialog.show(); + } + + public void callPhone(String phoneNum) { + SoulPermission.getInstance().checkAndRequestPermissions( + Permissions.build(Manifest.permission.CALL_PHONE, + Manifest.permission.READ_PHONE_STATE, + Manifest.permission.WRITE_EXTERNAL_STORAGE), + //if you want do noting or no need all the callbacks you may use SimplePermissionsAdapter instead + new CheckRequestPermissionsListener() { + @Override + public void onAllPermissionOk(Permission[] allPermissions) { + Intent intent = new Intent(Intent.ACTION_CALL); + Uri data = Uri.parse("tel:" + phoneNum); + intent.setData(data); + if (ActivityCompat.checkSelfPermission(AboutVersionActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) { + return; + } + startActivity(intent); + } + + @Override + public void onPermissionDenied(Permission[] refusedPermissions) { + ToastUtil.show(AboutVersionActivity.this, "请开启权限"); + } + }); + } + + private void checkUpdate(int tag) { + UpdateAppUtils.from(this) + .checkBy(UpdateAppUtils.CHECK_BY_VERSION_NAME) + .serverVersionName(versionId) + .serverVersionCode(5) + .apkPath(versionUrl) + .downloadBy(DOWNLOAD_BY_APP) + .isForce(false) + .update(tag); + } + + private void showDioalog() { + if (!iwxapi.isWXAppInstalled()) { + Toast.makeText(this, getString(R.string.not_installed_Wechat), Toast.LENGTH_SHORT).show(); + return; + } + //初始化一个WXImageObject对象 + Bitmap thumb = BitmapFactory.decodeResource(getResources(), R.drawable.pic_public_code); + WXImageObject imageObject = new WXImageObject(thumb); + WXMediaMessage msg = new WXMediaMessage(); //这个对象是用来包裹发送信息的对象 + msg.mediaObject = imageObject; + //设置缩略图 + Bitmap thumbBitmap = Bitmap.createScaledBitmap(thumb, 60, 60, true); + msg.thumbData = bmpToByteArray(thumbBitmap, true); + final SendMessageToWX.Req req = new SendMessageToWX.Req(); //创建一个请求对象 + req.message = msg; //把msg放入请求对象中 + req.transaction = buildTransaction("Req"); + + + /*WXWebpageObject webpageObject = new WXWebpageObject(); + webpageObject.webpageUrl = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yonsz.z1"; + WXMediaMessage msg = new WXMediaMessage(webpageObject); + msg.title = "Unikong"; + msg.description = "欢迎下载『语音遥控器APP』"; + Bitmap thumb = BitmapFactory.decodeResource(getResources(), R.mipmap.app_lan); + msg.thumbData = bmpToByteArray(thumb, true); + final SendMessageToWX.Req req = new SendMessageToWX.Req(); + req.transaction = buildTransaction("Req"); + req.message = msg;*/ + //分享到微信好友或者朋友圈 + // startActivity(new Intent(getActivity(), WXEntryActivity.class)); + DeviceBottomDialog dialog2 = new DeviceBottomDialog(this, new Callback() { + @Override + public void callback(int position1) { + switch (position1) { + case 0: + //取消 + break; + case 1: + //微信朋友圈 + req.scene = WXSceneTimeline; + iwxapi.sendReq(req); + break; + case 2: + //重新命名 + break; + case 3: + //微信好友 + req.scene = WXSceneSession; + iwxapi.sendReq(req); + break; + case 4: + break; + } + } + }); + dialog2.setContent(); + dialog2.setTop(getString(R.string.WeChat_friends)); + dialog2.setBottom(getString(R.string.WeChat_friends_circle)); + dialog2.setLearn(); + dialog2.setOtherNameGone(); + dialog2.setCancelable(false); + Window dialogWindow = dialog2.getWindow(); + dialogWindow.setGravity(Gravity.BOTTOM); + //获得窗体的属性 + WindowManager.LayoutParams lp = dialogWindow.getAttributes(); + lp.width = WindowManager.LayoutParams.MATCH_PARENT; + // 将属性设置给窗体 + dialogWindow.setAttributes(lp); + dialog2.show(); + } + + private String buildTransaction(final String type) { + return (type == null) ? String.valueOf(System.currentTimeMillis()) : type + System.currentTimeMillis(); + } + + + @Override + public void callBackUiThread(Message msg) { + switch (msg.what) { + case UPDATE_STATE_SUCCESS: + VersionEntity.ObjEntity versionEntity = (VersionEntity.ObjEntity) msg.obj; + versionId = versionEntity.getVersionInfo().getVersionId().substring(2, 7); + versionUrl = versionEntity.getVersionInfo().getServiceUrl(); + checkUpdate(2); + break; + } + } + + @Override + public void onReq(BaseReq baseReq) { + + } + + @Override + public void onResp(BaseResp baseResp) { + + } + + //上传用户经纬度信息 + private void updataUserState() { + NetWorkUtil util = NetWorkUtil.instans(); + HashMap map = new HashMap<>(); + map.put("userId", SharedpreferencesUtil.get(Constans.USERPHONE, "")); + map.put("appId", APPID_S); + map.put("appBrandId", APPID_S_VOICE); + util.requestPostByAsynewApi(NetWorkUrl.UPDATE_USERINFO_STATE, map, new NetWorkUtil.ReqCallBack() { + @Override + public void onSuccess(String respone) { + Log.i("updataUserState", "onSuccess: " + respone); + if (respone.length() < 100) { + return; + } + VersionEntity entity = JSON.parseObject(respone, VersionEntity.class); + if (-401 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(GET_USER_SESSION_NULL); + msg.obj = entity; + mHandler.sendMessage(msg); + } else if (1 == entity.getFlag()) { + Message msg = mHandler.obtainMessage(UPDATE_STATE_SUCCESS); + msg.obj = entity.getObj(); + mHandler.sendMessage(msg); + } else { + Message msg = mHandler.obtainMessage(UPDATE_STATE_FAIL); + msg.obj = entity.getMsg(); + mHandler.sendMessage(msg); + } + } + + @Override + public void onFail(String message) { + Message msg = mHandler.obtainMessage(UPDATE_STATE_FAIL); + msg.obj = message; + mHandler.sendMessage(msg); + } + }); + } +} diff --git a/app/src/ansunxan/res/anim/slide_left_in.xml b/app/src/ansunxan/res/anim/slide_left_in.xml new file mode 100644 index 0000000..efac524 --- /dev/null +++ b/app/src/ansunxan/res/anim/slide_left_in.xml @@ -0,0 +1,5 @@ + + + + diff --git a/app/src/ansunxan/res/anim/slide_left_out.xml b/app/src/ansunxan/res/anim/slide_left_out.xml new file mode 100644 index 0000000..2b1e672 --- /dev/null +++ b/app/src/ansunxan/res/anim/slide_left_out.xml @@ -0,0 +1,5 @@ + + + + diff --git a/app/src/ansunxan/res/anim/slide_right_in.xml b/app/src/ansunxan/res/anim/slide_right_in.xml new file mode 100644 index 0000000..2fc61e8 --- /dev/null +++ b/app/src/ansunxan/res/anim/slide_right_in.xml @@ -0,0 +1,5 @@ + + + + diff --git a/app/src/ansunxan/res/anim/slide_right_out.xml b/app/src/ansunxan/res/anim/slide_right_out.xml new file mode 100644 index 0000000..9934aa3 --- /dev/null +++ b/app/src/ansunxan/res/anim/slide_right_out.xml @@ -0,0 +1,5 @@ + + + + diff --git a/app/src/ansunxan/res/drawable-hdpi/Thumbs.db b/app/src/ansunxan/res/drawable-hdpi/Thumbs.db new file mode 100644 index 0000000..9952f7a Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/Thumbs.db differ diff --git a/app/src/ansunxan/res/drawable-hdpi/common_icon_remind.png b/app/src/ansunxan/res/drawable-hdpi/common_icon_remind.png new file mode 100644 index 0000000..b497932 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/common_icon_remind.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/common_switch_off.png b/app/src/ansunxan/res/drawable-hdpi/common_switch_off.png new file mode 100644 index 0000000..39bccc0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/common_switch_off.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/common_switch_on.png b/app/src/ansunxan/res/drawable-hdpi/common_switch_on.png new file mode 100644 index 0000000..323435b Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/common_switch_on.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/device_btn_wiredadd.png b/app/src/ansunxan/res/drawable-hdpi/device_btn_wiredadd.png new file mode 100644 index 0000000..4a5b09c Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/device_btn_wiredadd.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/device_icon_wifiadd.png b/app/src/ansunxan/res/drawable-hdpi/device_icon_wifiadd.png new file mode 100644 index 0000000..fab8fa0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/device_icon_wifiadd.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_bg_device.png b/app/src/ansunxan/res/drawable-hdpi/list_bg_device.png new file mode 100644 index 0000000..5cec7e3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_bg_device.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_bg_nomessage.png b/app/src/ansunxan/res/drawable-hdpi/list_bg_nomessage.png new file mode 100644 index 0000000..6ee12f2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_bg_nomessage.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_bg_norecord.png b/app/src/ansunxan/res/drawable-hdpi/list_bg_norecord.png new file mode 100644 index 0000000..3be55b7 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_bg_norecord.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_bg_video.png b/app/src/ansunxan/res/drawable-hdpi/list_bg_video.png new file mode 100644 index 0000000..acf7cc4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_bg_video.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_cloudvideo.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_cloudvideo.png new file mode 100644 index 0000000..7724ada Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_cloudvideo.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_deletedevice.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_deletedevice.png new file mode 100644 index 0000000..af8bbeb Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_deletedevice.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_deletemessage.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_deletemessage.png new file mode 100644 index 0000000..4753bc8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_deletemessage.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_livevideo.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_livevideo.png new file mode 100644 index 0000000..5992c03 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_livevideo.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_localvideo.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_localvideo.png new file mode 100644 index 0000000..08e659e Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_localvideo.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_message.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_message.png new file mode 100644 index 0000000..ff83411 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_message.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_btn_setting.png b/app/src/ansunxan/res/drawable-hdpi/list_btn_setting.png new file mode 100644 index 0000000..6187aa7 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_btn_setting.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/list_icon_offline.png b/app/src/ansunxan/res/drawable-hdpi/list_icon_offline.png new file mode 100644 index 0000000..c698996 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/list_icon_offline.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_fluent.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_fluent.png new file mode 100644 index 0000000..9e452e1 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_fluent.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_fullscreen.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_fullscreen.png new file mode 100644 index 0000000..6abcf5f Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_fullscreen.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_hd.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_hd.png new file mode 100644 index 0000000..86b013c Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_hd.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_ptz_off.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_ptz_off.png new file mode 100644 index 0000000..53f67c6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_ptz_off.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_ptz_on.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_ptz_on.png new file mode 100644 index 0000000..57fde53 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_ptz_on.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_record_click.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_record_click.png new file mode 100644 index 0000000..65e33c1 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_record_click.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_record_nor.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_record_nor.png new file mode 100644 index 0000000..9dab395 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_record_nor.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_screenshot_click.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_screenshot_click.png new file mode 100644 index 0000000..212135a Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_screenshot_click.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_screenshot_nor.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_screenshot_nor.png new file mode 100644 index 0000000..bd49937 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_screenshot_nor.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_smallscreen.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_smallscreen.png new file mode 100644 index 0000000..8fc3dee Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_smallscreen.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_sound_off.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_sound_off.png new file mode 100644 index 0000000..f0ba8d4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_sound_off.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_sound_on.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_sound_on.png new file mode 100644 index 0000000..5930aba Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_sound_on.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_talk_click.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_talk_click.png new file mode 100644 index 0000000..1a036d2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_talk_click.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_btn_talk_nor.png b/app/src/ansunxan/res/drawable-hdpi/live_btn_talk_nor.png new file mode 100644 index 0000000..b3d5575 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_btn_talk_nor.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_pic_record.png b/app/src/ansunxan/res/drawable-hdpi/live_pic_record.png new file mode 100644 index 0000000..78315bc Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_pic_record.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/live_pic_talkback.png b/app/src/ansunxan/res/drawable-hdpi/live_pic_talkback.png new file mode 100644 index 0000000..aa166e2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/live_pic_talkback.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/record_btn_fullscreen.png b/app/src/ansunxan/res/drawable-hdpi/record_btn_fullscreen.png new file mode 100644 index 0000000..f54118a Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/record_btn_fullscreen.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/record_btn_pause.png b/app/src/ansunxan/res/drawable-hdpi/record_btn_pause.png new file mode 100644 index 0000000..b2499ad Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/record_btn_pause.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/record_btn_play.png b/app/src/ansunxan/res/drawable-hdpi/record_btn_play.png new file mode 100644 index 0000000..49c834f Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/record_btn_play.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/record_btn_smallscreen.png b/app/src/ansunxan/res/drawable-hdpi/record_btn_smallscreen.png new file mode 100644 index 0000000..8b8e290 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/record_btn_smallscreen.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/record_progress_point.png b/app/src/ansunxan/res/drawable-hdpi/record_progress_point.png new file mode 100644 index 0000000..03eb09d Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/record_progress_point.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/splash_bg.png b/app/src/ansunxan/res/drawable-hdpi/splash_bg.png new file mode 100644 index 0000000..dc375a8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/splash_bg.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/splash_btn_admin.png b/app/src/ansunxan/res/drawable-hdpi/splash_btn_admin.png new file mode 100644 index 0000000..801753b Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/splash_btn_admin.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/splash_btn_user.png b/app/src/ansunxan/res/drawable-hdpi/splash_btn_user.png new file mode 100644 index 0000000..40677ee Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/splash_btn_user.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/title_btn_back.png b/app/src/ansunxan/res/drawable-hdpi/title_btn_back.png new file mode 100644 index 0000000..ed6b962 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/title_btn_back.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/title_btn_deviceadd.png b/app/src/ansunxan/res/drawable-hdpi/title_btn_deviceadd.png new file mode 100644 index 0000000..6df0fd9 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/title_btn_deviceadd.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/title_btn_search.png b/app/src/ansunxan/res/drawable-hdpi/title_btn_search.png new file mode 100644 index 0000000..0384291 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/title_btn_search.png differ diff --git a/app/src/ansunxan/res/drawable-hdpi/video_btn_play.png b/app/src/ansunxan/res/drawable-hdpi/video_btn_play.png new file mode 100644 index 0000000..0372032 Binary files /dev/null and b/app/src/ansunxan/res/drawable-hdpi/video_btn_play.png differ diff --git a/app/src/ansunxan/res/drawable-xhdpi/Thumbs.db b/app/src/ansunxan/res/drawable-xhdpi/Thumbs.db new file mode 100644 index 0000000..a0aa192 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xhdpi/Thumbs.db differ diff --git a/app/src/ansunxan/res/drawable-xhdpi/custom_calendar_row_left.png b/app/src/ansunxan/res/drawable-xhdpi/custom_calendar_row_left.png new file mode 100644 index 0000000..84efb1f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xhdpi/custom_calendar_row_left.png differ diff --git a/app/src/ansunxan/res/drawable-xhdpi/custom_calendar_row_right.png b/app/src/ansunxan/res/drawable-xhdpi/custom_calendar_row_right.png new file mode 100644 index 0000000..f8af65c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xhdpi/custom_calendar_row_right.png differ diff --git a/app/src/ansunxan/res/drawable-xhdpi/list_btn_download.png b/app/src/ansunxan/res/drawable-xhdpi/list_btn_download.png new file mode 100644 index 0000000..9355262 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xhdpi/list_btn_download.png differ diff --git a/app/src/ansunxan/res/drawable-xhdpi/sdk_launcher.png b/app/src/ansunxan/res/drawable-xhdpi/sdk_launcher.png new file mode 100644 index 0000000..50a9616 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xhdpi/sdk_launcher.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/bg.png b/app/src/ansunxan/res/drawable-xxhdpi/bg.png new file mode 100644 index 0000000..1966b69 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/bg.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_airer.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_airer.png new file mode 100644 index 0000000..869e562 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_airer.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_alone.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_alone.png new file mode 100644 index 0000000..bd913a5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_alone.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_autogate.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_autogate.png new file mode 100644 index 0000000..1ff1717 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_autogate.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_bright.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_bright.png new file mode 100644 index 0000000..04e3c22 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_bright.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_bungalow.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_bungalow.png new file mode 100644 index 0000000..99c8af0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_bungalow.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_camera.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_camera.png new file mode 100644 index 0000000..bacf22b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_camera.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_camera_set.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_camera_set.png new file mode 100644 index 0000000..6de4c1f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_camera_set.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_chandelier.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_chandelier.png new file mode 100644 index 0000000..05d58c2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_chandelier.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_chazuo.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_chazuo.png new file mode 100644 index 0000000..3af7226 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_chazuo.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_choice_r.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_choice_r.png new file mode 100644 index 0000000..b10d472 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_choice_r.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_clean.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_clean.png new file mode 100644 index 0000000..3f24f66 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_clean.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_close_control.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_close_control.png new file mode 100644 index 0000000..36d4c64 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_close_control.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_control_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_control_nor.png new file mode 100644 index 0000000..573f8e0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_control_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_control_per.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_control_per.png new file mode 100644 index 0000000..92ec36e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_control_per.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_video_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_video_nor.png new file mode 100644 index 0000000..e4a8a7c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_video_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_video_per.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_video_per.png new file mode 100644 index 0000000..b3c05f2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_cloud_video_per.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_control_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_control_nor.png new file mode 100644 index 0000000..79174cf Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_control_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_control_pre.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_control_pre.png new file mode 100644 index 0000000..086ee49 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_control_pre.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_lockscreen.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_lockscreen.png new file mode 100644 index 0000000..eeec8e1 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_lockscreen.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_lockscreen_per.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_lockscreen_per.png new file mode 100644 index 0000000..8ac8f92 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_lockscreen_per.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_photograph.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_photograph.png new file mode 100644 index 0000000..1a99785 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_photograph.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_play.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_play.png new file mode 100644 index 0000000..8a88067 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_play.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_screen.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_screen.png new file mode 100644 index 0000000..189b18d Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_screen.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend.png new file mode 100644 index 0000000..eef96d6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend1.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend1.png new file mode 100644 index 0000000..603778f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend1.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend_per.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend_per.png new file mode 100644 index 0000000..b7d2ec3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_suspend_per.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_videotape.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_videotape.png new file mode 100644 index 0000000..b8d0aeb Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_videotape.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_column_videotape_per.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_videotape_per.png new file mode 100644 index 0000000..03019ed Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_column_videotape_per.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_combination.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_combination.png new file mode 100644 index 0000000..089781c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_combination.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_control_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_control_nor.png new file mode 100644 index 0000000..ec2ee6d Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_control_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_control_pre.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_control_pre.png new file mode 100644 index 0000000..31c30b0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_control_pre.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_close.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_close.png new file mode 100644 index 0000000..2507367 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_close.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_elevator.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_elevator.png new file mode 100644 index 0000000..975fbc6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_elevator.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_open.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_open.png new file mode 100644 index 0000000..f15a2f5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_open.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_stop.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_stop.png new file mode 100644 index 0000000..44b1419 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtain_stop.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_curtaingauzecurtain.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtaingauzecurtain.png new file mode 100644 index 0000000..87a4413 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtaingauzecurtain.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_curtains.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtains.png new file mode 100644 index 0000000..69e9813 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_curtains.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_custom_room.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_custom_room.png new file mode 100644 index 0000000..3fece95 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_custom_room.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_dark.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_dark.png new file mode 100644 index 0000000..7342dff Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_dark.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_deletel_home.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_deletel_home.png new file mode 100644 index 0000000..1c27f58 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_deletel_home.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_desklamp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_desklamp.png new file mode 100644 index 0000000..a16263c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_desklamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_device_more.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_more.png new file mode 100644 index 0000000..6a2c13c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_more.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_device_plug_t1.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_plug_t1.png new file mode 100644 index 0000000..97a9f37 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_plug_t1.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_device_plug_t4.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_plug_t4.png new file mode 100644 index 0000000..3af7226 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_plug_t4.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_device_qingjing_t5.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_qingjing_t5.png new file mode 100644 index 0000000..f10ff45 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_qingjing_t5.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_device_wallsocket_t2.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_wallsocket_t2.png new file mode 100644 index 0000000..97affb0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_wallsocket_t2.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_device_wifi_socket.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_wifi_socket.png new file mode 100644 index 0000000..0eaedfe Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_device_wifi_socket.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_dialogue_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_dialogue_nor.png new file mode 100644 index 0000000..1611fe5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_dialogue_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_dialogue_pre.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_dialogue_pre.png new file mode 100644 index 0000000..8b0cdf1 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_dialogue_pre.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_direction.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction.png new file mode 100644 index 0000000..94ae68e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_down.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_down.png new file mode 100644 index 0000000..9933da5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_down.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_left.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_left.png new file mode 100644 index 0000000..546c249 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_left.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_right.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_right.png new file mode 100644 index 0000000..c986771 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_right.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_up.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_up.png new file mode 100644 index 0000000..8ee18ab Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_direction_up.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_dwx.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_dwx.png new file mode 100644 index 0000000..b536425 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_dwx.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_elevator.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_elevator.png new file mode 100644 index 0000000..11ba70e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_elevator.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_exhaust.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_exhaust.png new file mode 100644 index 0000000..694a4eb Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_exhaust.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_five_room.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_five_room.png new file mode 100644 index 0000000..45d71e4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_five_room.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_fork.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_fork.png new file mode 100644 index 0000000..c090f77 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_fork.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_four_room.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_four_room.png new file mode 100644 index 0000000..506fab8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_four_room.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_fs.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_fs.png new file mode 100644 index 0000000..3d03c15 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_fs.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_garage.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_garage.png new file mode 100644 index 0000000..f4ca044 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_garage.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_gas.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_gas.png new file mode 100644 index 0000000..03a186f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_gas.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_gas_433.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_gas_433.png new file mode 100644 index 0000000..9d33aaa Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_gas_433.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_gatemagnetic.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_gatemagnetic.png new file mode 100644 index 0000000..8dc9ff4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_gatemagnetic.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_gatemagnetic_433.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_gatemagnetic_433.png new file mode 100644 index 0000000..fad7175 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_gatemagnetic_433.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_gateway_dh.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_gateway_dh.png new file mode 100644 index 0000000..f8e24b2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_gateway_dh.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_gauze.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_gauze.png new file mode 100644 index 0000000..16731fc Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_gauze.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_goback_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_goback_nor.png new file mode 100644 index 0000000..88bb428 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_goback_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_heater.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_heater.png new file mode 100644 index 0000000..606f109 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_heater.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_implement_open.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_implement_open.png new file mode 100644 index 0000000..ec43e5c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_implement_open.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_implement_shut.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_implement_shut.png new file mode 100644 index 0000000..b8d5ac6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_implement_shut.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_index_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_index_nor.png new file mode 100644 index 0000000..1233bb7 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_index_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_infrared.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_infrared.png new file mode 100644 index 0000000..3fbcfc0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_infrared.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_infrared_433.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_infrared_433.png new file mode 100644 index 0000000..07c2e25 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_infrared_433.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_kettle.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_kettle.png new file mode 100644 index 0000000..a09590d Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_kettle.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_kitchenpower.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_kitchenpower.png new file mode 100644 index 0000000..90064a1 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_kitchenpower.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_kt.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_kt.png new file mode 100644 index 0000000..590e5a6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_kt.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_lamp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_lamp.png new file mode 100644 index 0000000..1460b04 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_lamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_leanhelp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_leanhelp.png new file mode 100644 index 0000000..3cf51fd Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_leanhelp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_light.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_light.png new file mode 100644 index 0000000..ff37835 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_light.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_lightbelt.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_lightbelt.png new file mode 100644 index 0000000..9cafed8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_lightbelt.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_local_video_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_local_video_nor.png new file mode 100644 index 0000000..2330b9f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_local_video_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_local_video_per.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_local_video_per.png new file mode 100644 index 0000000..1be1d80 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_local_video_per.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_menu_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_menu_nor.png new file mode 100644 index 0000000..2c23ca4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_menu_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_message_alert.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_message_alert.png new file mode 100644 index 0000000..f8e9089 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_message_alert.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_message_system.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_message_system.png new file mode 100644 index 0000000..0ece579 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_message_system.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_multifunctional.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_multifunctional.png new file mode 100644 index 0000000..797a013 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_multifunctional.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_music.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_music.png new file mode 100644 index 0000000..369963a Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_music.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_music_mute.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_music_mute.png new file mode 100644 index 0000000..a900531 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_music_mute.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_music_suspend.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_music_suspend.png new file mode 100644 index 0000000..44b1419 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_music_suspend.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_nav_add.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_nav_add.png new file mode 100644 index 0000000..9c2202d Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_nav_add.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_nav_reduce.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_nav_reduce.png new file mode 100644 index 0000000..8a0dfd4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_nav_reduce.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_new_home.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_new_home.png new file mode 100644 index 0000000..d7c61dd Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_new_home.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_no_video.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_no_video.png new file mode 100644 index 0000000..644f319 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_no_video.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_one_room.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_one_room.png new file mode 100644 index 0000000..fbf89c2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_one_room.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_photograph_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_photograph_nor.png new file mode 100644 index 0000000..bc646f9 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_photograph_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_photograph_pre.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_photograph_pre.png new file mode 100644 index 0000000..220dba3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_photograph_pre.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_popup_attention_offline.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_popup_attention_offline.png new file mode 100644 index 0000000..36b07ad Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_popup_attention_offline.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_porchlamp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_porchlamp.png new file mode 100644 index 0000000..7ee1bc7 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_porchlamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_quiet_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_quiet_nor.png new file mode 100644 index 0000000..6b69328 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_quiet_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_quiet_press.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_quiet_press.png new file mode 100644 index 0000000..a900531 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_quiet_press.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_room_three.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_room_three.png new file mode 100644 index 0000000..d2da9f4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_room_three.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_screen_cloud_control.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_screen_cloud_control.png new file mode 100644 index 0000000..a6c4a08 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_screen_cloud_control.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_search_airer.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_search_airer.png new file mode 100644 index 0000000..9c8df07 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_search_airer.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_set_top_box.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_set_top_box.png new file mode 100644 index 0000000..c27bf4a Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_set_top_box.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_share_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_share_nor.png new file mode 100644 index 0000000..d165f16 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_share_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_share_pre.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_share_pre.png new file mode 100644 index 0000000..5158ac3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_share_pre.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_smoke.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_smoke.png new file mode 100644 index 0000000..09dfdce Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_smoke.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_smoke_433.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_smoke_433.png new file mode 100644 index 0000000..7cd343f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_smoke_433.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_spray.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_spray.png new file mode 100644 index 0000000..1a77c1f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_spray.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_step.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_step.png new file mode 100644 index 0000000..222e529 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_step.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_step_three.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_step_three.png new file mode 100644 index 0000000..ec08cf0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_step_three.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_sterilizing_lamp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_sterilizing_lamp.png new file mode 100644 index 0000000..4e49d7e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_sterilizing_lamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_style.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_style.png new file mode 100644 index 0000000..49f0ebf Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_style.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_sunshade.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_sunshade.png new file mode 100644 index 0000000..5b4af14 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_sunshade.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_off.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_off.png new file mode 100644 index 0000000..ace3494 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_off.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_on.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_on.png new file mode 100644 index 0000000..075c903 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_on.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_open.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_open.png new file mode 100644 index 0000000..075c903 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_switch_open.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_tubelamp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_tubelamp.png new file mode 100644 index 0000000..168f488 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_tubelamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_tv.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_tv.png new file mode 100644 index 0000000..ce5a501 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_tv.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_tv_ok.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_tv_ok.png new file mode 100644 index 0000000..6fa7c9c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_tv_ok.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_two_room.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_two_room.png new file mode 100644 index 0000000..90e0eee Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_two_room.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_video_control.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_video_control.png new file mode 100644 index 0000000..f757236 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_video_control.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_videotape_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_videotape_nor.png new file mode 100644 index 0000000..928c88b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_videotape_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_videotape_pre.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_videotape_pre.png new file mode 100644 index 0000000..15c9620 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_videotape_pre.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_villa.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_villa.png new file mode 100644 index 0000000..6535f0e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_villa.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_help.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_help.png new file mode 100644 index 0000000..6db4ce6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_help.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_nor.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_nor.png new file mode 100644 index 0000000..0b529ef Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_nor.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_off.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_off.png new file mode 100644 index 0000000..0ae61f2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_off.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_on.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_on.png new file mode 100644 index 0000000..bdfc4af Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_on.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_robot.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_robot.png new file mode 100644 index 0000000..23dc69a Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_voice_robot.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_vol_add.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_vol_add.png new file mode 100644 index 0000000..9c2202d Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_vol_add.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_vol_reduce.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_vol_reduce.png new file mode 100644 index 0000000..8a0dfd4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_vol_reduce.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_walllamp.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_walllamp.png new file mode 100644 index 0000000..b6ece2c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_walllamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_wallsocket.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_wallsocket.png new file mode 100644 index 0000000..96fe96b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_wallsocket.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_waterimmersion.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_waterimmersion.png new file mode 100644 index 0000000..4ed529f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_waterimmersion.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_waterimmersion_433.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_waterimmersion_433.png new file mode 100644 index 0000000..e0bfba5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_waterimmersion_433.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_wifi.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_wifi.png new file mode 100644 index 0000000..e8dded8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_wifi.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/icon_window_opener.png b/app/src/ansunxan/res/drawable-xxhdpi/icon_window_opener.png new file mode 100644 index 0000000..581dc5b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/icon_window_opener.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/lecheng_icon.png b/app/src/ansunxan/res/drawable-xxhdpi/lecheng_icon.png new file mode 100644 index 0000000..4047c62 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/lecheng_icon.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/loading_icon.png b/app/src/ansunxan/res/drawable-xxhdpi/loading_icon.png new file mode 100644 index 0000000..c32340f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/loading_icon.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_add_finish_camera.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_add_finish_camera.png new file mode 100644 index 0000000..b43637f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_add_finish_camera.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_add_socket.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_add_socket.png new file mode 100644 index 0000000..321ded9 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_add_socket.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_airer_decline.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_airer_decline.png new file mode 100644 index 0000000..25d108f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_airer_decline.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_autogate.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_autogate.png new file mode 100644 index 0000000..1491d8c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_autogate.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_camera_indicator.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_camera_indicator.png new file mode 100644 index 0000000..472c1d0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_camera_indicator.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_camera_overtime.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_camera_overtime.png new file mode 100644 index 0000000..a8c5eaa Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_camera_overtime.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_chandelier.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_chandelier.png new file mode 100644 index 0000000..ab348a5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_chandelier.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo.png new file mode 100644 index 0000000..a236b11 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo_2.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo_2.png new file mode 100644 index 0000000..94d076b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo_2.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo_t4.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo_t4.png new file mode 100644 index 0000000..8ec0bad Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_chazuo_t4.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_close_back.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_close_back.png new file mode 100644 index 0000000..b8f7b41 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_close_back.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_close_window.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_close_window.png new file mode 100644 index 0000000..ae86722 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_close_window.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene.png new file mode 100644 index 0000000..8304c79 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene1.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene1.png new file mode 100644 index 0000000..a21cbf8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene1.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene2.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene2.png new file mode 100644 index 0000000..11ef32b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene2.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene3.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene3.png new file mode 100644 index 0000000..9cdf370 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene3.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene4.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene4.png new file mode 100644 index 0000000..ea9ac4e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene4.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene6.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene6.png new file mode 100644 index 0000000..15b5469 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_control_scene6.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_curtain.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_curtain.png new file mode 100644 index 0000000..7e2afed Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_curtain.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_curtain_elevator.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_curtain_elevator.png new file mode 100644 index 0000000..1653027 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_curtain_elevator.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_dehumidify_back.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_dehumidify_back.png new file mode 100644 index 0000000..47d084b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_dehumidify_back.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_desklamp.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_desklamp.png new file mode 100644 index 0000000..9fb36ab Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_desklamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_dwx.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_dwx.png new file mode 100644 index 0000000..2efbfc5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_dwx.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_electricfan.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_electricfan.png new file mode 100644 index 0000000..d5e1f32 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_electricfan.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_elevator.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_elevator.png new file mode 100644 index 0000000..f5263fe Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_elevator.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_exhaust.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_exhaust.png new file mode 100644 index 0000000..050a8f2 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_exhaust.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_garage.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_garage.png new file mode 100644 index 0000000..14a24a0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_garage.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_gauze.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_gauze.png new file mode 100644 index 0000000..9a25328 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_gauze.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage1.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage1.png new file mode 100644 index 0000000..817c7e5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage1.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage2.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage2.png new file mode 100644 index 0000000..b6cc57b Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage2.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage3.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage3.png new file mode 100644 index 0000000..450958f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_guidepage3.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_heater.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_heater.png new file mode 100644 index 0000000..e396f9c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_heater.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_heating_back.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_heating_back.png new file mode 100644 index 0000000..fea82f8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_heating_back.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_kettle.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_kettle.png new file mode 100644 index 0000000..fa65c88 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_kettle.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_kitchenpower.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_kitchenpower.png new file mode 100644 index 0000000..2e1d5be Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_kitchenpower.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_lamp.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_lamp.png new file mode 100644 index 0000000..c420a36 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_lamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_light_close.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_light_close.png new file mode 100644 index 0000000..8c6987a Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_light_close.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_light_open.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_light_open.png new file mode 100644 index 0000000..8c6987a Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_light_open.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_lightbelt.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_lightbelt.png new file mode 100644 index 0000000..f80a7e3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_lightbelt.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_multifunctional.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_multifunctional.png new file mode 100644 index 0000000..74b68fc Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_multifunctional.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_music_add.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_add.png new file mode 100644 index 0000000..942c287 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_add.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_music_key.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_key.png new file mode 100644 index 0000000..ebb8b19 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_key.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_music_last.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_last.png new file mode 100644 index 0000000..7f979e0 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_last.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_music_next.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_next.png new file mode 100644 index 0000000..6c58cc3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_next.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_music_reduce.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_reduce.png new file mode 100644 index 0000000..3e77433 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_music_reduce.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_plug_t1.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_plug_t1.png new file mode 100644 index 0000000..368ebc3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_plug_t1.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_plug_t4.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_plug_t4.png new file mode 100644 index 0000000..a236b11 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_plug_t4.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_porchlamp.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_porchlamp.png new file mode 100644 index 0000000..1db220c Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_porchlamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_public_code.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_public_code.png new file mode 100644 index 0000000..fd3e863 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_public_code.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_refrigeration_back.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_refrigeration_back.png new file mode 100644 index 0000000..9670ec3 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_refrigeration_back.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_router.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_router.png new file mode 100644 index 0000000..4d59bc4 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_router.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_security.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_security.png new file mode 100644 index 0000000..7d77ac6 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_security.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_spray.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_spray.png new file mode 100644 index 0000000..59c5396 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_spray.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_sterilizing_lamp.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_sterilizing_lamp.png new file mode 100644 index 0000000..e58534e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_sterilizing_lamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_storage.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_storage.png new file mode 100644 index 0000000..b602f1e Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_storage.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_sunshade.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_sunshade.png new file mode 100644 index 0000000..d4784ae Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_sunshade.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_tubelamp.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_tubelamp.png new file mode 100644 index 0000000..929507f Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_tubelamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_video_background.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_video_background.png new file mode 100644 index 0000000..7405cef Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_video_background.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_videotape.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_videotape.png new file mode 100644 index 0000000..1465176 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_videotape.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_walllamp.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_walllamp.png new file mode 100644 index 0000000..e69bd17 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_walllamp.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_wallsocket_t2.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_wallsocket_t2.png new file mode 100644 index 0000000..fb7ada8 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_wallsocket_t2.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_wifi_socket.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_wifi_socket.png new file mode 100644 index 0000000..97716a7 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_wifi_socket.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/pic_window.png b/app/src/ansunxan/res/drawable-xxhdpi/pic_window.png new file mode 100644 index 0000000..ae86722 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/pic_window.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/select_reveal_copy.png b/app/src/ansunxan/res/drawable-xxhdpi/select_reveal_copy.png new file mode 100644 index 0000000..5375943 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/select_reveal_copy.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/select_unnor1.png b/app/src/ansunxan/res/drawable-xxhdpi/select_unnor1.png new file mode 100644 index 0000000..ee4be75 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/select_unnor1.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/select_unnor2.png b/app/src/ansunxan/res/drawable-xxhdpi/select_unnor2.png new file mode 100644 index 0000000..fb8a828 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/select_unnor2.png differ diff --git a/app/src/ansunxan/res/drawable-xxhdpi/wode_icon_device_management.png b/app/src/ansunxan/res/drawable-xxhdpi/wode_icon_device_management.png new file mode 100644 index 0000000..fde8da5 Binary files /dev/null and b/app/src/ansunxan/res/drawable-xxhdpi/wode_icon_device_management.png differ diff --git a/app/src/ansunxan/res/drawable/alarm_message_underline.xml b/app/src/ansunxan/res/drawable/alarm_message_underline.xml new file mode 100644 index 0000000..a43ef0f --- /dev/null +++ b/app/src/ansunxan/res/drawable/alarm_message_underline.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/app/src/ansunxan/res/drawable/bg_wheel.xml b/app/src/ansunxan/res/drawable/bg_wheel.xml new file mode 100644 index 0000000..2e8ad22 --- /dev/null +++ b/app/src/ansunxan/res/drawable/bg_wheel.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/ansunxan/res/drawable/btn_moveplan_switch.xml b/app/src/ansunxan/res/drawable/btn_moveplan_switch.xml new file mode 100644 index 0000000..6500b79 --- /dev/null +++ b/app/src/ansunxan/res/drawable/btn_moveplan_switch.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/app/src/ansunxan/res/drawable/btn_round_360_bg.xml b/app/src/ansunxan/res/drawable/btn_round_360_bg.xml new file mode 100644 index 0000000..369cd2d --- /dev/null +++ b/app/src/ansunxan/res/drawable/btn_round_360_bg.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/app/src/ansunxan/res/drawable/btn_round_360_bg_center.xml b/app/src/ansunxan/res/drawable/btn_round_360_bg_center.xml new file mode 100644 index 0000000..bd7c76e --- /dev/null +++ b/app/src/ansunxan/res/drawable/btn_round_360_bg_center.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/ansunxan/res/drawable/btn_round_360_stroke.xml b/app/src/ansunxan/res/drawable/btn_round_360_stroke.xml new file mode 100644 index 0000000..c2c23f8 --- /dev/null +++ b/app/src/ansunxan/res/drawable/btn_round_360_stroke.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/app/src/ansunxan/res/drawable/icon_cloud_control.xml b/app/src/ansunxan/res/drawable/icon_cloud_control.xml new file mode 100644 index 0000000..54fcd7c --- /dev/null +++ b/app/src/ansunxan/res/drawable/icon_cloud_control.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/ansunxan/res/drawable/select_lockscreen.xml b/app/src/ansunxan/res/drawable/select_lockscreen.xml new file mode 100644 index 0000000..5cc57b7 --- /dev/null +++ b/app/src/ansunxan/res/drawable/select_lockscreen.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/ansunxan/res/layout/activity_about_version.xml b/app/src/ansunxan/res/layout/activity_about_version.xml new file mode 100644 index 0000000..6361880 --- /dev/null +++ b/app/src/ansunxan/res/layout/activity_about_version.xml @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/ansunxan/res/layout/activity_admin_login.xml b/app/src/ansunxan/res/layout/activity_admin_login.xml new file mode 100644 index 0000000..c8718c6 --- /dev/null +++ b/app/src/ansunxan/res/layout/activity_admin_login.xml @@ -0,0 +1,50 @@ + + + + + + + + + +