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

Xamarin.form elements are not rendering in android platform

$
0
0

I derived a class from StackLayout

    public class MyTestPage : StackLayout
    {
        public MyTestPage()
        {
            this.Children.Add(new Label { Text = "test" });
        }

    }

Also I wrote a custom ViewRenderer in android as below with some codes to detect the Gestures

[assembly: ExportRenderer(typeof(MyTestPage), typeof(MyTestPageRenderer))]

namespace SwipeCell.Droid
{
    class MyTestPageRenderer : ViewRenderer
    {
        public MyTestPageRenderer()
        {

        }
    }
}

The label which I have added is not visible in android device after deployment of the app.

What is wrong here ?

Please help


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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