Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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;
            }
        }