3
3
using Android . Content . PM ;
4
4
using Android . Graphics . Drawables ;
5
5
using Android . OS ;
6
- using Android . Support . Design . Widget ;
7
- using Android . Support . V4 . App ;
8
- using Android . Support . V4 . View ;
9
- using Android . Support . V7 . App ;
10
6
using Android . Views ;
11
7
using Android . Widget ;
12
8
using Java . Lang ;
13
9
using Com . EightbitLab . BlurViewBinding ;
14
- //using Com.EightbitLab.SupportRenderScriptBlurBinding;
15
-
16
- // Ported from:
17
- // https://github.com/Dimezis/BlurView/blob/master/app/src/main/java/com/eightbitlab/blurview_sample/MainActivity.java
10
+ using AndroidX . ViewPager . Widget ;
11
+ using AndroidX . AppCompat . App ;
12
+ using Google . Android . Material . Tabs ;
13
+ using AndroidX . Fragment . App ;
14
+ //using Com.EightbitLab.SupportRenderScriptBlurBinding;
15
+
16
+ // Ported from:
17
+ // https://github.com/Dimezis/BlurView/blob/b5f6f414ae16885acb709fe5a65d24df05c4c62a/app/src/main/java/com/eightbitlab/blurview_sample/MainActivity.java
18
18
namespace SampleApp
19
19
{
20
20
[ Activity (
@@ -63,7 +63,6 @@ void SetupBlurView()
63
63
. SetBlurRadius ( radius )
64
64
. SetHasFixedTransformationMatrix ( true ) ;
65
65
66
-
67
66
var bottomViewSettings = bottomBlurView . SetupWith ( root )
68
67
. SetFrameClearDrawable ( windowBackground )
69
68
. SetBlurAlgorithm ( new RenderScriptBlur ( this ) ) // SupportRenderScriptBlur
@@ -94,8 +93,8 @@ class ViewPagerAdapter : FragmentPagerAdapter
94
93
{
95
94
List < BaseFragment > pages ;
96
95
97
- public ViewPagerAdapter ( Android . Support . V4 . App . FragmentManager fragmentManager )
98
- : base ( fragmentManager )
96
+ public ViewPagerAdapter ( AndroidX . Fragment . App . FragmentManager fragmentManager )
97
+ : base ( fragmentManager , BehaviorResumeOnlyCurrentFragment )
99
98
{
100
99
pages = new List < BaseFragment >
101
100
{
@@ -107,7 +106,7 @@ public ViewPagerAdapter(Android.Support.V4.App.FragmentManager fragmentManager)
107
106
108
107
public override int Count => pages . Count ;
109
108
110
- public override Android . Support . V4 . App . Fragment GetItem ( int position )
109
+ public override AndroidX . Fragment . App . Fragment GetItem ( int position )
111
110
{
112
111
return pages [ position ] ;
113
112
}
0 commit comments