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

The blur not work when the activity's window is translucent. #12

Open
imknown opened this issue Apr 5, 2017 · 1 comment
Open

The blur not work when the activity's window is translucent. #12

imknown opened this issue Apr 5, 2017 · 1 comment

Comments

@imknown
Copy link

imknown commented Apr 5, 2017

AndroidManifest.xml

<activity
    android:name=".MineActivity"
    android:theme="@style/translucentActivity" />

styles.xml

<style name="translucentActivity" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowAnimationStyle">@style/Animation.AppCompat.Dialog</item>
</style>

activity_mine.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <com.github.mmin18.widget.RealtimeBlurView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:realtimeBlurRadius="10dp"
        app:realtimeOverlayColor="@color/blackOpaque70" />
<RelativeLayout />
@imknown
Copy link
Author

imknown commented Apr 5, 2017

I am rewriting these using the Dialog and PopupWindow temporarily.

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

1 participant