using System.Net; using System.Net.Http.Json; using System.Text.Json.Serialization; using Android.Views; using AndroidX.AppCompat.App; using Google.Android.Material.Color; using Google.Android.Material.FloatingActionButton; using Google.Android.Material.Snackbar; using Google.Android.Material.TextField; namespace SimpleNotes; [Activity(Label = "@string/note_page",Theme ="@style/Theme.SimpleNotes")] public class NoteActivity : AppCompatActivity { protected override async void OnCreate(Bundle? savedInstanceState) { base.OnCreate(savedInstanceState); DynamicColors.ApplyToActivityIfAvailable(this); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_note); SetSupportActionBar(FindViewById(Resource.Id.toolbar)); var (endpoint,username,password) = MainActivity.GetPrefs(this); //check for id var note_title = FindViewById(Resource.Id.note_title); var note_body = FindViewById(Resource.Id.note_body); var note_save = FindViewById