public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); ToolbarHelper.ShowToolbar(Activity, "Debug Log"); ToolbarHelper.ShowToolbarBackButton(Activity); var fileTextView = View.FindViewById <FileTextView>(Resource.Id.fileText); fileTextView.SetFile(DebugLog.BaseLog.FilePath); }
public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); ToolbarHelper.ShowToolbar(Activity, "Pet Logger"); ToolbarHelper.HideToolbarBackButton(Activity); _filePath = savedInstanceState.GetString("filePath"); _imageView = view.FindViewById <ImageView>(Resource.Id.content_image); _imageView.SetImageURI(Uri.FromFile(new Java.IO.File(_filePath))); }
public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); ToolbarHelper.ShowToolbar(Activity, "Pet Logger"); ToolbarHelper.HideToolbarBackButton(Activity); var loggerRecycler = view.FindViewById <RecyclerView>(Resource.Id.incident_logger_recycler); //SetUpLoggerRecycler(loggerRecycler, view); //SetUpFloatingActionMenu(view); }
public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); ToolbarHelper.ShowToolbar(Activity, "Playlists"); ToolbarHelper.ShowToolbarBackButton(Activity); var playlistRecycler = view.FindViewById <RecyclerView>(Resource.Id.playlist_recycler); SetUpPlaylistRecycler(playlistRecycler, view); _addPlaylistFab = view.FindViewById <FloatingActionButton>(Resource.Id.fab_add_playlist); }
public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); ToolbarHelper.ShowToolbar(Activity, "Playlists"); ToolbarHelper.ShowToolbarBackButton(Activity); var playlistRecycler = view.FindViewById <RecyclerView>(Resource.Id.playlist_recycler); SetUpPlaylistRecycler(playlistRecycler, view); var fileTextView = View.FindViewById <FileTextView>(Resource.Id.fileText); fileTextView.SetFile(DebugLog.BaseLog.FilePath); }
public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); ToolbarHelper.ShowToolbar(Activity, "Settings"); ToolbarHelper.ShowToolbarBackButton(Activity); SetUpRecyclerView(); var stayActive = PreferenceManager.FindPreference("stay_active"); if (stayActive != null) { stayActive.PreferenceChange += StayActive_PreferenceChange; } var viewDebugLog = PreferenceManager.FindPreference("view_debug_log"); if (viewDebugLog != null) { viewDebugLog.PreferenceClick += ViewDebugLog_PreferenceClick; } var resetDefaults = PreferenceManager.FindPreference("reset_defaults"); if (resetDefaults != null) { resetDefaults.PreferenceClick += ResetDefaults_PreferenceClick; } var version = PreferenceManager.FindPreference("version"); if (version != null) { version.Summary = Activity.PackageManager.GetPackageInfo(Activity.PackageName, 0).VersionName; } }