Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Strange behavior of Editor in TableView on Android

$
0
0

I can't seem to make an Editor behave properly when it is in a cell of a TableView on Android. It is also a little funky on iOS, but that can wait.

I have the Editor contained in a ViewCell, which in turn is contained in a TableSection of a TableView. The Editor appears okay, and when tapped/touched the keyboard pops up correctly. But the caret disappears from the Editor and the keyboard input does not show up. No amount of tapping the Editor can make the caret remain. I have included a test page below which should illustrate the behavior in question. Am I doing something wrong, or is this a bug? If a bug, is there a known workaround?

Thanks,
Jon

public class EditorTestPage : ContentPage
{
    public EditorTestPage()
    {
        Title = "Editor Test";
        Content = new TableView
        {
            Intent = TableIntent.Form,
            HasUnevenRows = true,
            Root = new TableRoot
            {
                new TableSection("Editor Section")
                {
                    new ViewCell
                    {
                        View = new Editor
                        {
                        }
                    }
                }
            }
        };
    }
}

Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>