コード例 #1
0
 public override void OnActivityCreated(Bundle savedInstanceState)
 {
     instance = this;
     base.OnActivityCreated(savedInstanceState);
     Preferences.instance.SupportActionBar.Title = GetString(Resource.String.opensource);
     //ListView.Divider = null;
     ListView.TextFilterEnabled = true;
     ListView.DividerHeight     = 0;
     ListAdapter         = new LibrariesAdapter(Preferences.instance, 0, libraries.Keys.ToList());
     ListView.ItemClick += (_, e) =>
     {
         isPaused = true;
         Intent intent = new Intent(Intent.ActionView);
         intent.SetData(Uri.Parse(libraries.ElementAt(e.Position).Value));
         StartActivity(intent);
     };
 }
コード例 #2
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     instance = null;
 }
コード例 #3
0
 public override void OnResume()
 {
     base.OnResume();
     instance = this;
     isPaused = false;
 }