Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to add componets to a view by code?

$
0
0

I've made this simple piece of code

View tela = new View();
TextView texto = new TextView ();
texto.Text = "beterraba";

How can i add my texto to the tela view?

I need to programmatically create a view that will hold some textViews and some Buttons and then i ll inflate in a alertDialog, how can i do that?


Viewing all articles
Browse latest Browse all 204402

Trending Articles