- 博客(9)
- 资源 (2)
- 收藏
- 关注
转载 H5 适配 iPhone X
1,设置网页在可视窗口的布局方式新增 viweport-fit 属性,使得页面内容完全覆盖整个窗口:<meta name=“viewport” content=“width=device-width, viewport-fit=cover”>只有设置了 viewport-fit=cover,才能使用 env 函数。contain: 可视窗口完全包含网页内容(左图)cove...
2018-12-28 11:02:56
1032
转载 On SDK version 23 and up, your app data will be automatically backed up and restored on app install.
导致这样的问题是你的menifest文件中的application 中android:allowBackup=“true”;allowBackup安全风险描述:Android API Level 8及其以上Android系统提供了为应用程序数据的备份和恢复功能,此功能的开关决定于该应用程序中AndroidManif est.xml文件中的allowBackup属性值[1] ,其属性值默认是Tr...
2018-12-19 09:44:50
2435
原创 App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW in
AndroidManifest 中 application 提示:App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details. less… (Ctrl+F1...
2018-12-19 09:25:07
1429
原创 Android Studio 升级3.2之后找不到moudle中的类?
以友盟推送为例,PushAgent报错,找不到 com.umeng.message.PushAgent,在as3.0+的版本之后,引用的方式 compile 变为 implementation,但是在moudle中,需要用api的方式代替 implementation,重新编译即可,不然会找不到对外暴露的类或方法...
2018-12-18 19:14:14
1416
1
原创 The SourceSet ‘instrumentTest’ is not recognized by the Android Gradle Plugin. AS升级问题
The SourceSet ‘instrumentTest’ is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?在android studio 升级3.2的过程中遇到这个问题,解决办法instrumentTest 已经废弃 ,在build.gradle文件中找到instrumen...
2018-12-18 19:04:54
740
原创 Android Studio 3.1升级3.2 实践
1.升级Android Studio打开Android Studio 选择 help,选择check for updates,选择update and restart也可以选择官网下载升级:https://developer.android.google.cn/studio/2.升级gradle文件重启之后a.修改app文件夹下的build.gradle文件,修改引用compil...
2018-12-18 18:57:04
1368
原创 微信小程序 关闭当前页面
wx.redirectTo(Object object)关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。 wx.redirectTo({ url: '../index/index' })
2018-12-16 22:36:27
34527
1
原创 Android 仿美团悬浮购物车显示隐藏
效果图:这是美团的效果 通过效果图可以看到 静止的时候是购物车图标是显示的,滑动的时候是隐藏一半并半透明显示的。这里用到一个触摸反馈的方法dispatchTouchEventMotionEvent.ACTION_DOWN://手指按下MotionEvent.ACTION_MOVE://手指滑动MotionEvent.ACTION_UP://手指抬起整体的思路就是在滑动过程中...
2018-12-10 15:13:47
4350
原创 BigDecimal 去除末尾多余的0
假如你的数据是9.90,要变成9.9new BigDecimal(“9.90”).stripTrailingZeros();9.00 变 9new BigDecimal(“9.00”).stripTrailingZeros();这时计算结果会变成为4E+1 或者其他值所以,最终的写法应该是new BigDecimal(“9.00”).stripTrailingZe...
2018-12-05 13:21:52
5364
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人