コード例 #1
0
            //OnQueryTextListenerCompat mOnQueryTextListenerCompat;

            public override void OnActivityCreated(Bundle savedInstanceState)
            {
                base.OnActivityCreated(savedInstanceState);

                // Give some text to display if there is no data.  In a real
                // application this would come from a resource.
                SetEmptyText("No applications");

                // We have a menu item to show in action bar.
                SetHasOptionsMenu(true);

                // Create an empty adapter we will use to display the loaded data.
                mAdapter = new AppListAdapter(GetActivity());
                SetListAdapter(mAdapter);

                // Start out with a progress indicator.
                SetListShown(false);

                // Prepare the loader.  Either re-connect with an existing one,
                // or start a new one.
                GetLoaderManager().InitLoader(0, null, this);
            }
コード例 #2
0
ファイル: AppListActivity.cs プロジェクト: 2nfro/dotNet
 public void DisplayAppInfos(Nfro.Core.Objects.Business.AppInfo[] appInfos)
 {
     ArrayAdapter adapter = new AppListAdapter(this, appInfos);
     this.ListAdapter = adapter;
 }