-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainActivity.cs
More file actions
30 lines (26 loc) · 1.16 KB
/
MainActivity.cs
File metadata and controls
30 lines (26 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Android.App;
using Android.OS;
using Android.Runtime;
using AndroidX.AppCompat.App;
using Google.Android.Material.Button;
namespace ProgressExample {
[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
public class MainActivity : AppCompatActivity {
protected override void OnCreate(Bundle savedInstanceState) {
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.activity_main);
var openProgressButtons = FindViewById<MaterialButton>(Resource.Id.openProgressButtons);
var openDrawableButtons = FindViewById<MaterialButton>(Resource.Id.openDrawableButtons);
var openRecyclerView = FindViewById<MaterialButton>(Resource.Id.openRecyclerView);
openProgressButtons.Click += delegate {
StartActivity(typeof(ProgressButtonsActivity));
};
openDrawableButtons.Click += delegate {
StartActivity(typeof(DrawableButtonsActivity));
};
openRecyclerView.Click += delegate {
StartActivity(typeof(RecyclerViewActivity));
};
}
}
}