コード例 #1
0
 @Override
 public View createDetailView(Context context, View convertView, ViewGroup parent) {
   mItems = QSDetailItems.convertOrInflate(context, convertView, parent);
   mItems.setTagSuffix("Bluetooth");
   mItems.setEmptyState(
       R.drawable.ic_qs_bluetooth_detail_empty,
       R.string.quick_settings_bluetooth_detail_empty_text);
   mItems.setCallback(this);
   mItems.setMinHeightInItems(0);
   updateItems();
   setItemsVisible(mState.value);
   return mItems;
 }
コード例 #2
0
 @Override
 public View createDetailView(Context context, View convertView, ViewGroup parent) {
   if (DEBUG) Log.d(TAG, "createDetailView convertView=" + (convertView != null));
   mAccessPoints = null;
   mWifiController.scanForAccessPoints();
   fireScanStateChanged(true);
   mItems = QSDetailItems.convertOrInflate(context, convertView, parent);
   mItems.setTagSuffix("Wifi");
   mItems.setCallback(this);
   mItems.setEmptyState(
       R.drawable.ic_qs_wifi_detail_empty, R.string.quick_settings_wifi_detail_empty_text);
   updateItems();
   setItemsVisible(mState.enabled);
   return mItems;
 }