コード例 #1
0
 public void ShowDetails(WifiP2pDevice device)
 {
     var fragment = FragmentManager.FindFragmentById<DeviceDetailFragment>(Resource.Id.frag_detail);
     fragment.ShowDetails(device);
 }
コード例 #2
0
 /// <summary>
 /// Updates the UI with device data
 /// </summary>
 /// <param name="device">the device to be displayed</param>
 public void ShowDetails(WifiP2pDevice device)
 {
     _device = device;
     View.Visibility = ViewStates.Visible;
     var view = _contentView.FindViewById<TextView>(Resource.Id.device_address);
     view.Text = _device.DeviceAddress;
     view = _contentView.FindViewById<TextView>(Resource.Id.device_info);
     view.Text = _device.ToString();
 }