Skip to content

Commit

Permalink
BlurView Creation
Browse files Browse the repository at this point in the history
*Upgrade Custom UI to BlurView.
  • Loading branch information
rayliverified committed Feb 23, 2018
1 parent b62f345 commit 6764f93
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repositories {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.github.searchy2:CustomPermissionsDialogue:1.6.0'
implementation 'com.github.searchy2:CustomAlertViewDialogue:2.0'
implementation 'com.github.searchy2:CustomAlertViewDialogue:2.1'
implementation 'com.github.searchy2:AndroidCrossPromotion:1.4'

implementation 'com.android.support:appcompat-v7:27.0.2'
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/java/stream/rocketnotes/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ private void InitializeRecyclerView() {
//Create FastScroller.
FastScroller fastScroller = findViewById(R.id.fast_scroller);
fastScroller.setAutoHideEnabled(true); //true is the default value
fastScroller.setAutoHideDelayInMillis(1000L); //1000ms is the default value
fastScroller.setAutoHideDelayInMillis(500L); //1000ms is the default value
fastScroller.setIgnoreTouchesOutsideHandle(false); //false is the default value
//0 pixel is the default value. When > 0 it mimics the fling gesture
fastScroller.setMinimumScrollThreshold(70);
fastScroller.setMinimumScrollThreshold(100);
fastScroller.setBubbleAndHandleColor(ContextCompat.getColor(mContext, R.color.colorPrimary));
fastScroller.addOnScrollStateChangeListener(new FastScroller.OnScrollStateChangeListener() {
@Override
public void onFastScrollerStateChange(boolean scrolling) {
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/stream/rocketnotes/SettingsFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public void OnClick(View view, Dialog dialog) {
}
})
.setBoxInputHint(boxHint)
.setDecorView(getActivity().getWindow().getDecorView())
.build();
alert.show();

Expand Down Expand Up @@ -289,6 +290,7 @@ public void OnClick(View view, Dialog dialog) {
dialog.dismiss();
}
})
.setDecorView(getActivity().getWindow().getDecorView())
.build();
alert.show();
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public void OnClick(View view, Dialog dialog) {
}
})
.setBoxInputHint(boxHint)
.setDecorView(activity.getWindow().getDecorView())
.build();
alert.show();
}
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/fast_scroller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_alignTop="@+id/swipeRefreshLayout"
android:layout_alignBottom="@+id/swipeRefreshLayout"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
app:fastScrollerAutoHideEnabled="true"
Expand Down

0 comments on commit 6764f93

Please sign in to comment.