ToastUtils.toastShort("定位到:"
+
editText_hang.getText() +
"行
" +
edittext_lie.getText() +
"列");
List<DataSchemePlot> dataSchemePlot1 =
session.getDataSchemePlotDao().queryBuilder().
where(DataSchemePlotDao.Properties.Row.eq(editText_hang.getText()),
DataSchemePlotDao.Properties.Col.eq(edittext_lie.getText())).build().list();
//通过行列号 检索小区名
Community community =
session.getCommunityDao().queryBuilder().
where(CommunityDao.Properties.LotName.eq(dataSchemePlot1.get(0).getLotName())).build().unique();
//通过小区名检索在第几行
int
location = community.getLocation();
//得到行数
lv_left.setSelection(location);
//左侧listview
定位
gridLayoutManager.scrollToPositionWithOffset(location
* 15,
0);
//右侧recyclerview定位
listViewLeftAdapter.setSelection_position(location);
//所定位置变色
listViewLeftAdapter.notifyDataSetInvalidated();
//刷新适配器
drawer.closeDrawer(form_right);