Example #1
0
        public void CreateMediaListViewTypeSettingItem(MediaListRecyclerAdapter.MediaListItemViewType viewType)
        {
            var options = new List <string> {
                "Normal", "Compact", "Title Only"
            };

            _settingsContainer.AddView(
                SettingsActivity.CreateSpinnerSettingRow(this, "Media List View", "Choose how you'd like to show media list items", options, (int)viewType, (sender, args) =>
            {
                Presenter.SetMediaListViewType((MediaListRecyclerAdapter.MediaListItemViewType)args.Position);

                if (viewType != (MediaListRecyclerAdapter.MediaListItemViewType)args.Position)
                {
                    _recreateActivity = true;
                    Intent.PutExtra(MainActivity.RecreateActivityIntentKey, true);
                }
            }));
            _settingsContainer.AddView(SettingsActivity.CreateSettingDivider(this));
        }
Example #2
0
        public void CreateMediaListProgressDisplayItem(MediaListRecyclerAdapter.MediaListProgressDisplayType mediaListProgressDisplay)
        {
            var options = new List <string> {
                "Never", "Releasing\nOnly", "Releasing +\n1 Week", "Always"
            };

            _settingsContainer.AddView(
                SettingsActivity.CreateSpinnerSettingRow(this, "Episode Progress Display",
                                                         "Choose how you'd like to display episode progress. This will change the title color for your currently watched Anime to show how up-to-date you are.",
                                                         options, (int)mediaListProgressDisplay, (sender, args) =>
            {
                Presenter.SetMediaListProgressDisplay((MediaListRecyclerAdapter.MediaListProgressDisplayType)args.Position);

                if (mediaListProgressDisplay != (MediaListRecyclerAdapter.MediaListProgressDisplayType)args.Position)
                {
                    _recreateActivity = true;
                    Intent.PutExtra(MainActivity.RecreateActivityIntentKey, true);
                }
            }));
            _settingsContainer.AddView(SettingsActivity.CreateSettingDivider(this));
        }