public override Android.Support.V4.App.Fragment GetItem(int i) { PagerReaderFragment fragment = null; string chapter = !string.IsNullOrEmpty(ThisApp.selectedNote.ScriptureForHighlight) ? ThisApp.selectedNote.ScriptureForHighlight.Split(',')[1] : null; Console.WriteLine(chapter); if (!string.IsNullOrEmpty(chapter) && chapter == (i + 1).ToString()) { fragment = new PagerReaderFragment(ThisApp.allBookChapters[i], true, (i + 1).ToString()); } else { fragment = new PagerReaderFragment(ThisApp.allBookChapters[i], false, (i + 1).ToString()); } return fragment; }
public override Android.Support.V4.App.Fragment GetItem(int i) { PagerReaderFragment fragment = null; fragment = new PagerReaderFragment(ThisApp.allPublicationArticles[i].Content, false, (i + 1).ToString()); return fragment; }