return nullptr;
}
if ((static_cast<unsigned int>(index) > bluetoothCaseList.size() - 1) || (index < 0)) {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BluetoothCaseListAdapter::GetView %d %d", index, bluetoothCaseList.size());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothCaseListAdapter::GetView %d %d", index, bluetoothCaseList.size());
return nullptr;
}
std::list<BluetoothCaseInfo>::iterator node = bluetoothCaseList.begin();
// list->SetIntercept(true);\r
list->SetDragACCLevel(5);\r
list->SetSwipeACCLevel(800);\r
- list->SetReboundSize(30);\r
+ // list->SetReboundSize(30);\r
// list->SetScrollBlankSize(30);\r
list->SetAdapter(adapterText);\r
group->Add(list);\r
return;\r
}\r
}\r
- rescanButton->SetPosition(173, list->GetY() + list->GetHeight() + 20, 120, 40);\r
+ rescanButton->SetPosition(173, 390, 120, 40);\r
rescanButton->SetTextId(STR_BT_HEADSET_RESCAN); // 重新搜索\r
rescanButton->SetViewId(BLUETOOTH_RESCAN_BUTTON);\r
rescanButton->SetStyle(STYLE_BACKGROUND_COLOR, 0xffffffff);\r
// 刷新扫描出来的设备列表\r
void BluetoothEarListView::RefreshBluetoothEarListView(void)\r
{\r
- if (list && rescanButton)\r
+ if (list)\r
{\r
switch (BluetoothModel::GetInstance()->GetCase().size())//根据扫描出的设备数量,设置扫描列表的高度,使其高度自适应\r
{\r
list->Resize(380, 200);\r
break;\r
default:\r
- list->Resize(380, 300);\r
+ list->Resize(380, 250);\r
break;\r
}\r
- rescanButton->SetY(list->GetY() + list->GetHeight() + 20);\r
list->RefreshList();\r
list->Invalidate();\r
- rescanButton->Invalidate();\r
}\r
}\r
}
\ No newline at end of file