Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix android scrollbar visibility issue (#8090) fixes #7629 #8015
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderjangra authored and rmarinho committed Oct 23, 2019
1 parent 2bc3114 commit b5ade76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ScrollViewRenderer : NestedScrollView, IVisualElementRenderer, IEff
LayoutDirection _prevLayoutDirection = LayoutDirection.Ltr;
bool _checkedForRtlScroll = false;

public ScrollViewRenderer(Context context) : base(context)
public ScrollViewRenderer(Context context) : base(new ContextThemeWrapper(context, Resource.Style.NestedScrollBarStyle))
{
}

Expand Down
3 changes: 3 additions & 0 deletions Xamarin.Forms.Platform.Android/Resources/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
<style name="collectionViewStyle" android:id="@+id/collectionViewStyle">
<item name="android:scrollbars">vertical|horizontal</item>
</style>
<style name="NestedScrollBarStyle" android:id="@+id/nestedScrollViewStyle">
<item name="android:scrollbars">vertical|horizontal</item>
</style>
</resources>

0 comments on commit b5ade76

Please sign in to comment.