2019年

在用到webview的activity的配置项中加入 android:hardwareAccelerated="true"即可。
TBS x5 WebView 卡顿

开启硬件加速。

在Android中,可以四给不同层次上开启硬件加速:
1、Application <application android:hardwareAccelerated="true">
2、Activity <activity android:hardwareAccelerated="true">
3、Window getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
4、View view.setLayerType(View.LAYER_TYPE_SOFTWARE,null);
在apk的AndroidManifest中,如果指定了minSDKVersion&targetSDKVersion=7,会使得应用无法使用硬件加速进行绘图。

腾讯X5引擎官网:

http://x5.tencent.com/tbs/

近期12.12,中国移动发送短信提醒,查网龄可以送流量,测试了下还真给力。之前参与过查网龄送流量活动的还可以再次参与。
具体如下:

短信内容:

尊敬的客户,感谢您长久以来的信赖与陪伴,愿我们的心意给您送去冬日的温暖!现发送“9999”到10086即可根据您的网龄,最多享60G国内流量(每月最高10G,连享6个月)。网龄越长,流量越多!赶快发送短信参与吧!回复TD退订

按提示操作后

尊敬的客户,您自使用中国移动服务至今已*年,为感谢您长期以来的支持和信任,每月为您扩容5GB流量,连续扩容6个月,首笔立即到账,其余自次月开始每月月初到账,限当月有效。感谢您的参与!【中国移动】

查询流量包:

移动查网龄最多享60G国内流量

累计的流量:
中国移动免费流量 年末福利

温馨提示:

1.之前参与过查网龄送流量活动的还可以再次参与。
2.流量当月有效。

在进行界面间的跳转和传递数据的时候,我们有的时候要获得跳转之后界面传递回来的状态,数据等信息。这个时候,我们不一定需要使用Intent进行跳转回原先设置的界面,而是使用onActivityResult方法就可以解决这个问题。

原理如图:

onActivityResult 原理图

流程解释

我们这里假设有A、B两个Activity,由A跳转到B,然后B返回到A。
在这一过程中,我们在A启动B的过程中调用startActivityForResult()方法来启动B,
然后在B中调用Context.setResult()方法来传递返回的Code,
并在A中的onActivityResult()方法中解析返回的结果,并做相应的逻辑操作。

Redmi notebook product
Xiaomi's brand Redmi held a new product launch in Beijing. In addition to the K30, Redmi also released its first 13-inch notebook product, the RedmiBook 13.

This time the RedmiBook 13 focuses on the concept of thin and light and full screen. The entire A / C / D surface is made of metal. The body weight is 1.23kg, and the basic version (excluding the independent graphics card) weighs only 1.19kg.

The RedmiBook 13 uses a 13.3-inch 1080p Full HD anti-glare screen with ultra-narrow sides on all sides. The official screen ratio figure reached 89%. When there is no more room for narrowing the left, right, and upper borders of the screen, RedmiBook 13 challenges the width of the lower border and uses Bent180 ° packaging technology to fold the screen circuit board to the back of the screen to further reduce the width of the lower border to 9.96. mm.

In terms of hardware, the RedmiBook 13 is equipped with Intel Core 10th generation 14nm ++ processor, there are two versions of i5 and i7, respectively using i5-10210U and i7-10510U processors, and it has an independent graphics card NVIDIA GeForce MX250.

In terms of battery life, it is equipped with a large 40Whr battery, which can provide users with a long battery life of up to 11 hours. It also supports 1C fast charge technology, which can charge up to 50% in 35 minutes.

In terms of ecology, Xiaomi also emphasized the file transfer experience between mobile phones and notebooks, notebooks and laptops at the press conference. Through the "Smart Interconnect" application, file sharing and interworking between Xiaomi mobile phones and notebooks can be easily completed.

In terms of price, the RedmiBook 13 has three versions, of which the i5 version of the integrated display is priced at 4,199 yuan, the i5 version of the independent display is priced at 4,499 yuan, and the i7 version of the independent display is priced at 5,199 yuan.

  GitHub 或正式登陆中国!据外媒报道,全球最大的软件开发平台 GitHub 计划在中国开设分公司。此前 GitHub 曝出封禁“受美国制裁”国家账号,引起舆论哗然。

  GitHub~要~登~陆~中~国~啦~

  据英国《金融时报》,全球最大的软件开发平台 GitHub 计划在中国开设子公司。
github china

  GitHub 首席运营官 Erica Brescia 在接受英国《金融时报》采访时表示,对于该公司在中国扩张的计划,中国方面“非常鼓励”。
 开源项目贡献者数量增长最多的是中国香港。除开源之外,从公共和私人贡献来看,亚洲的开发者社区在 2019 年增长迅速。其中 31% 的亚洲贡献者来自中国。自 2014 年以来,美国以外地区开发者数量不断上升,亚洲贡献者群体的年增长率已超过欧洲和北美。

01185-grkgijxdmts.png

  中国的开发者对于 GitHub 来讲是不可或缺的重要组成部分,但鉴于当前的紧张形势,谁又能保证 GitHub 未来不会迫于压力对中国账号进行限制呢?这样看来,GitHub 进军中国是对双方都是有好处的。

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。