protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.ActivitySelectDeviceLayout); _foundDevices.Clear(); _listViewDevices = FindViewById <ListView>(Resource.Id.devicesListView); _progressBarScanning = FindViewById <ProgressBar>(Resource.Id.progressBarScanning); _layoutListEmpty = FindViewById <LinearLayout>(Resource.Id.layoutInterfaceListEmpty); _listRefreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.listInterfacesRefresh); _layoutListEmpty.Visibility = ViewStates.Gone; _listRefreshLayout.SetColorSchemeResources(new[] { Resource.Color.accentColor, Resource.Color.primaryColor }); _listRefreshLayout.Refresh += ListRefreshLayoutOnRefresh; if (savedInstanceState == null) { RatingDialog.RequestRatingReminder(this); } SetupToolbar(); SetupListView(); }
public static decimal PromptAniDBRating(string title) { RatingDialog ratingDlg = (RatingDialog)GUIWindowManager.GetWindow(Constants.WindowIDs.RATINGDIALOG); ratingDlg.Reset(); ratingDlg.SetHeading(string.IsNullOrEmpty(title) ? Translation.UserRating : Translation.UserRating + " - " + title); ratingDlg.Rating = 7; ratingDlg.DoModal(ratingDlg.GetID); if (ratingDlg.IsSubmitted) { return(ratingDlg.Rating); } return(0); }