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