Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On android 4.4.4 when swiping I see my phone's background #38

Closed
rootux opened this issue Jul 15, 2014 · 9 comments
Closed

On android 4.4.4 when swiping I see my phone's background #38

rootux opened this issue Jul 15, 2014 · 9 comments

Comments

@rootux
Copy link

rootux commented Jul 15, 2014

Tried the version in the play store,
When I swipe instead of showing the old activity it shows my phone background / the task manager.
this happens on 4.4.4

@ghost
Copy link

ghost commented Jul 29, 2014

  • android:background="@android:color/black" activity's contentView ===> xml rootView

**for example :


@xuanliao
Copy link

xuanliao commented Aug 1, 2014

Modify java.lang.reflect.Method.Utils class

public static void convertActivityFromTranslucent(Activity activity) {
    try {
        if(Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
            Method method = Activity.class.getDeclaredMethod("convertFromTranslucent");
            method.setAccessible(true);
            method.invoke(activity);
        }
    } catch (Throwable t) {
    }
}

above 4.4.2 version, don't need invoke this method

@egor-n
Copy link

egor-n commented Aug 17, 2014

Anyone has a fix for this problem? I tried adding black as background and tried modifying convertActivityFromTranslucent - neither helped.

BTW, on stock KitKat I see my phones background, but on CyanogenMod I see previous activity (as intended).

EDIT: setting windowIsTranslucent to false for bottom activity seems to work.

@ikew0ng
Copy link
Owner

ikew0ng commented Aug 22, 2014

yes the bottom activity should be set to untranslucent.

@ikew0ng ikew0ng closed this as completed Aug 22, 2014
@digitalsoftspk
Copy link

In my case background is always black. My minSdk=14 and maxSdk=19 .

@ikew0ng
Copy link
Owner

ikew0ng commented Sep 13, 2014

Have you set windowIsTranslucent to true in your theme?

@xiaotaotao
Copy link

你好,我也遇到了"android 4.4.4侧滑退出显示app启动界面"同样的问题",我想问的是,能不能动态的设置windowIsTranslucen成true 或者false而不是写死在xml里面?毕竟最顶层的activity的windowIsTranslucen设置成false的话,就通过不能swipeback看到桌面...效果大打则扣 谢谢

@ikew0ng
Copy link
Owner

ikew0ng commented Sep 24, 2014

这个是不行的
2014年9月24日 上午6:52于 "xiaotaotao" notifications@github.com写道:

你好,我也遇到了"android
4.4.4侧滑退出显示app启动界面"同样的问题",我想问的是,能不能动态的设置windowIsTranslucen成true
或者false而不是写死在xml里面?毕竟最顶层的activity的windowIsTranslucen设置成false的话,就通过不能swipeback看到桌面...效果大打则扣
谢谢


Reply to this email directly or view it on GitHub
#38 (comment)
.

@sharpwhisper
Copy link

在我的S3(4.0.4),Nexus 4(4.4.4),Nexus4(5.0)上swipeback在屏幕底端失效,要在上半部分滑动才能启动。这是为什么》

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants