public static View CreateOverlayFromView(int customViewID, AssetManager assets, Activity activity) { View customView = activity.LayoutInflater.Inflate(customViewID, null); customView.Background = activity.Resources.GetDrawable(Resource.Drawable.RoundedButton, null); AlertDialog builder = new AlertDialog.Builder(activity).Create(); builder.SetView(customView); builder.Show(); FontChangeCrawler.ChangeTypeFaceToKrungthep(customView, assets); return(customView); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); //change fontface FontChangeCrawler.ChangeTypeFaceToKrungthep(FindViewById(Resource.Id.root_main), Assets); //get views Button loginButton = FindViewById <Button>(Resource.Id.button_login); Button helpButton = FindViewById <Button>(Resource.Id.button_help); RadioGroup breadGroup = FindViewById <RadioGroup>(Resource.Id.radioGroup_broden); SeekBar seekBarRange = FindViewById <SeekBar>(Resource.Id.seekBar_range); seekBarText = FindViewById <TextView>(Resource.Id.range_value); //add events loginButton.Click += BakkerLogIn; helpButton.Click += Help; breadGroup.CheckedChange += BreadGroup_CheckedChange; seekBarRange.ProgressChanged += SeekBarRange_ProgressChanged;; }