Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit d15aa9d

Browse files
committed
Update projects.
1 parent 7847f3b commit d15aa9d

20 files changed

+5959
-4488
lines changed

src/SampleApp/MainActivity.cs

100755100644
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,28 @@ protected override void OnCreate(Bundle savedInstanceState)
4646

4747
SetupBlurView();
4848
SetupViewPager();
49-
}
50-
49+
}
50+
5151
void SetupBlurView()
5252
{
5353
float radius = 25f;
5454
float minBlurRadius = 10f;
5555
float step = 4f;
5656

5757
//set background, if your root layout doesn't have one
58-
Drawable windowBackground = Window.DecorView.Background;
59-
58+
Drawable windowBackground = Window.DecorView.Background;
59+
6060
var topViewSettings = topBlurView.SetupWith(root)
61-
.WindowBackground(windowBackground)
62-
.BlurAlgorithm(new RenderScriptBlur(this)) // SupportRenderScriptBlur
63-
.BlurRadius(radius)
61+
.SetFrameClearDrawable(windowBackground)
62+
.SetBlurAlgorithm(new RenderScriptBlur(this)) // SupportRenderScriptBlur
63+
.SetBlurRadius(radius)
6464
.SetHasFixedTransformationMatrix(true);
6565

6666

6767
var bottomViewSettings = bottomBlurView.SetupWith(root)
68-
.WindowBackground(windowBackground)
69-
.BlurAlgorithm(new RenderScriptBlur(this)) // SupportRenderScriptBlur
70-
.BlurRadius(radius)
68+
.SetFrameClearDrawable(windowBackground)
69+
.SetBlurAlgorithm(new RenderScriptBlur(this)) // SupportRenderScriptBlur
70+
.SetBlurRadius(radius)
7171
.SetHasFixedTransformationMatrix(true);
7272

7373
int initialProgress = (int)(radius * step);
@@ -77,8 +77,8 @@ void SetupBlurView()
7777
{
7878
float blurRadius = args.Progress / step;
7979
blurRadius = Math.Max(blurRadius, minBlurRadius);
80-
topViewSettings.BlurRadius(blurRadius);
81-
bottomViewSettings.BlurRadius(blurRadius);
80+
topViewSettings.SetBlurRadius(blurRadius);
81+
bottomViewSettings.SetBlurRadius(blurRadius);
8282
};
8383
}
8484

@@ -95,7 +95,7 @@ class ViewPagerAdapter : FragmentPagerAdapter
9595
List<BaseFragment> pages;
9696

9797
public ViewPagerAdapter(Android.Support.V4.App.FragmentManager fragmentManager)
98-
: base (fragmentManager)
98+
: base(fragmentManager)
9999
{
100100
pages = new List<BaseFragment>
101101
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.BlurView.SampleApp" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
3-
<uses-sdk android:minSdkVersion="15" />
3+
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="29" />
44
<application android:label="@string/app_name" android:icon="@drawable/Icon" android:theme="@style/Theme.MyTheme"></application>
55
</manifest>

src/SampleApp/Resources/AboutResources.txt

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)