Comments (5)
微信的实现方式,没有去考虑,只是参考了他的实现效果;这个思路也是由于目前接触到的需求来确定的,最低要求Api14及其以上,基本兼容各个手机;如果要用hidden api,当时可能需要用反射的方式,这样就需要去判断Api和不断地去维护,觉得有点得不偿失了。
from and_swipeback.
@hackware1993 能详细说明一下么,我试着对 activityA 在 start 新的activityB 后 调用 activityA 的 convertFromTranslucent ,确实没有了透明背景造成的性能问题,但是返回的时候 activityA 似乎被 stop 了,有一些动画效果无法被执行,我试了在返回之前 调用 activityA 的 convertToTranslucent,依旧没有效果。
from and_swipeback.
@hackware1993 我又尝试了一下 在 activityA 的生命周期里调用 上述方法,貌似一切正常了
@OverRide
protected void onResume() {
super.onResume();
Utils.convertActivityToTranslucent(this);
}
@Override
protected void onPause() {
super.onPause();
Utils.convertActivityFromTranslucent(BaseActivity.this);
}
from and_swipeback.
@hackware1993 @XBeats
很多启发,非常感谢,我换了思路把自己的实现重构了,现在基本不用担心性能和界面被销毁了
from and_swipeback.
@29995270 convert方案是有兼容性问题的,不能做到通用,你要小心
from and_swipeback.
Related Issues (20)
- 使用Monkey测试时发现一个问题
- 滑动返回,惯性滑动的同时点击返回键会出现白屏的现象 HOT 1
- 将上个Activity的ContenView添加到打开的Activity所带来的性能问题 HOT 1
- webview执行webview.onpause()的时候滑动返回会白屏
- [Bug fix] Fix bug case flickering on Oreo HOT 2
- ShadowView的构造函数报空指针
- NestedScrollView自动上滑
- viewPager+fragment 打开的activity侧滑没反应
- 目前出现的滑动闪屏的一个解决方法 HOT 4
- 过快滑动出现闪屏的情况 HOT 2
- 手指放在屏幕左侧边缘位置会出现上一个页面内容
- 快速滑动有问题,滑不出去! HOT 1
- 从 Fragment 跳到 Activity 侧滑返回沉浸式的效果失效
- 返回沉浸页面时,布局向下抖动了一个状态栏高度后恢复原状 HOT 2
- 滑动开始重置不返回,背景一次正常一次白屏
- 不支持androidx么 HOT 1
- 初始页面滑动退出时没有动画也没有跟着手指动 直接就退出了
- 两三个页面的情况下,快速连续滑动返回会崩溃
- 顶部沉浸栏支持,类似于微信
- java.lang.NullPointerException Attempt to invoke interface method 'boolean java.util.List.contains(java.lang.Object)' on a null object reference hg.zp.ui.ui.activity.WelcomeActivity.onDestroy(WelcomeActivity.java:108)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from and_swipeback.