我在AlertDialog里面有Spinner NPE(在FAB内部)
@ImplementedBy(classOf[ClientRepository])
trait BaseClientRepository {
def getById(id: Int): Future[Client]
def getByLocation(location: String): Future[Seq[Client]]
}
有谁知道这个问题?
我以某种方式能够管理它以显示,但它是空的。
答案 0 :(得分:2)
尝试从
进行更改private void printearthquakes() {
Map<String, Long> quakes = new HashMap<>();
for(Marker quake : quakeMarkers) {
Long cnt = quakes.get(quake.getProperty("country"));
quakes.put(quake.getProperty("country"), (cnt!=null?cnt.longValue():0) + 1L);
}
for (Entry<String, Long> e: quakes.entrySet()) {
System.out.println(e.getKey());
System.out.println(e.getValue());
}
}
到
Spinner spinner = (Spinner) findViewById(R.id.dlgSpinner);