@UiThread void hideReFreshAnimation() { if (ll_connect_to_camera.getVisibility() == View.VISIBLE) { ll_connect_to_camera.setVisibility(View.GONE); AnimationUtils.cancelAnmation(iv_refresh); } }
private void loadingConnectPage() { bt_click_connect.setVisibility(View.INVISIBLE); bt_click_connect.setClickable(false); bt_click_connect.setEnabled(false); iv_loading_icon.setVisibility(View.VISIBLE); tv_find_edr.setVisibility(View.GONE); tv_little_tip.setVisibility(View.VISIBLE); tv_little_tip_detail.setVisibility(View.VISIBLE); AnimationUtils.rotate(iv_loading_icon); iv_close_connect.setVisibility(View.VISIBLE); ((HomeActivity) mActivity).hideBottombar(); }
@UiThread void connectSuccess() { bt_go_photo.setEnabled(true); bt_take_photo.setEnabled(true); ((HomeActivity) mActivity).hideBottombar(); ((HomeActivity) mActivity).showAppBarWithDisConnect(); rl_connect_page.setVisibility(View.GONE); bt_click_connect.setVisibility(View.VISIBLE); iv_loading_icon.setVisibility(View.GONE); tv_find_edr.setVisibility(View.VISIBLE); tv_little_tip.setVisibility(View.GONE); tv_little_tip_detail.setVisibility(View.GONE); iv_close_connect.setVisibility(View.GONE); AnimationUtils.cancelAnmation(iv_loading_icon); mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); }
@UiThread void resumeConnectPage() { bt_go_photo.setEnabled(false); bt_take_photo.setEnabled(false); iv_first_icon.setVisibility(View.GONE); iv_two_icon.setVisibility(View.GONE); iv_three_icon.setVisibility(View.GONE); rl_connect_page.setVisibility(View.VISIBLE); bt_click_connect.setVisibility(View.VISIBLE); bt_click_connect.setClickable(true); bt_click_connect.setEnabled(true); iv_loading_icon.setVisibility(View.GONE); tv_find_edr.setVisibility(View.VISIBLE); tv_little_tip.setVisibility(View.GONE); tv_little_tip_detail.setVisibility(View.GONE); iv_close_connect.setVisibility(View.GONE); AnimationUtils.cancelAnmation(iv_loading_icon); ((HomeActivity) mActivity).showBottombar(); ((HomeActivity) mActivity).hideAppBar(); mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }
/* private void initPlayerController(boolean walkCde) { if (!LeautoCameraAppLication.sCmfInitSuccess) { return; } sourceList = new ArrayList<MediaSource>(); MediaSource source = new MediaSource(); // 设置播放源,必须设置 Logger.e("rtsp://" + com.letv.leauto.cameracmdlibrary.common.Config.CAMERA_IP + "/live"); source.setSource("rtsp://" + com.letv.leauto.cameracmdlibrary.common.Config.CAMERA_IP + "/live"); // 设置媒体类型,必须设置,默认为点播 source.setType(MediaSource.TYPE_LIVE); source.setEncrypt(false).setTransfer(walkCde); sourceList.add(source); mPlayController.play(sourceList); }*/ private void startReFreshAnimation() { if (ll_connect_to_camera.getVisibility() == View.GONE) { ll_connect_to_camera.setVisibility(View.VISIBLE); AnimationUtils.rotate(iv_refresh); } }