SpaceMonkey

Badges

Fourth Anniversary5 AnswersPhotogenic5 LikesThird Anniversary100 CommentsFirst Answer10 CommentsName DropperFirst CommentFirst AnniversarySecond Anniversary

About

Username
SpaceMonkey
Location
GB
Joined
Visits
201
Last Active
Roles
Member
Points
117
Badges
12

SpaceMonkey ✭✭✭

About

Username
SpaceMonkey
Location
GB
Joined
Visits
201
Last Active
Roles
Member
Points
117
Badges
12
  • Re: ITagHandler cannot be implemented?

    @rmacias

    Yes I figured that out, but it's still giving me the same error.

    public class HtmlTagHandler : Java.Lang.Object, Android.Text.Html.ITagHandler

  • Re: Sound in WebView is still playing in the background

    @adamkemp

    I've managed to solve the issue using:

        protected override void OnDetachedFromWindow ()
        {
            base.OnDetachedFromWindow ();
            // Make it stop w/e video or sound it's playing
            // http://forums.xamarin.com/discussion/43500/sound-in-webview-is-still-playing-in-the-background#latest
            // http://stackoverflow.com/questions/5946698/how-to-stop-youtube-video-playing-in-android-webview
            if (Control != null){
                Control.StopLoading(); 
                Control.LoadUrl("");
                Control.Reload();
            }
        }
    

    in the custom web renderer

  • Re: ListView ScrollTo is not scrolling correctly

    @FabioP I had the same issue and I found out that it worked fine when I switched to using custom renderers for the cells.

    I'm on Android.

  • Re: ListView space issue when HasUnevenRows=true. Need a solution.

    Oh man, you don't know how long I've fiddled with this and never found a solution...
    It happens when I use a Grid layout for my viewcell, but disappears when I use nested StackLayouts, but that's too expensive.
    It also happened in other cases, one time I spent so much time trying to fix it only to discover it's because I render an image which is too big and it gets scaled down to fit, even though it gets scaled down anyway, it still causes the row to have extra space...

    Bottom line: Using Xamarin.Forms cross platform viewcells is:

    • Slow as hell
    • Has this shitty problem with having extra space in some rows seemingly randomly (by that I don't mean actually random, but it depends on little details that shouldn't affect it and you wouldn't be able to guess i.e. buggy)
  • Re: Reference a custom view in xml

    The answer is to use it as the XML element tag and it should be:
    namespace.ClassName