| | |
| | | import com.amap.api.services.help.Inputtips |
| | | import com.amap.api.services.help.InputtipsQuery |
| | | import com.amap.api.services.help.Tip |
| | | import com.kuanzhai.user.OkApplication |
| | | import com.kuanzhai.user.KuanzhaiApplication |
| | | import com.kuanzhai.user.db.HistoryDBManager |
| | | import com.kuanzhai.user.ui.TransparentStatusBarActivity |
| | | import com.kuanzhai.user.dialog.TipDialog |
| | |
| | | }) |
| | | tipDialog.show(supportFragmentManager,"tip") |
| | | } |
| | | headerView.setOnClickListener { |
| | | //todo 回传 |
| | | } |
| | | // headerView.setOnClickListener { |
| | | // } |
| | | } |
| | | |
| | | override fun initView() { |
| | | tv_city.text = if (cityName.isNullOrEmpty()) OkApplication.chooseCityName else cityName |
| | | tv_city.text = if (cityName.isNullOrEmpty()) KuanzhaiApplication.chooseCityName else cityName |
| | | if (siteId!=0){ //跨城 |
| | | tv_city.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0) |
| | | } |
| | |
| | | if (mTips.isNotEmpty()) |
| | | adapter.setFooterView(footerView) |
| | | et_search.requestFocus() |
| | | if (isOfficial){ //todo && if 有常用地址 |
| | | adapter.setHeaderView(headerView) |
| | | } |
| | | } |
| | | |
| | | private fun search(keyword: String) { |