本文整理汇总了Java中com.google.samples.apps.iosched.io.map.model.Marker类的典型用法代码示例。如果您正苦于以下问题:Java Marker类的具体用法?Java Marker怎么用?Java Marker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Marker类属于com.google.samples.apps.iosched.io.map.model包,在下文中一共展示了Marker类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildMarkers
import com.google.samples.apps.iosched.io.map.model.Marker; //导入依赖的package包/类
private void buildMarkers(ArrayList<ContentProviderOperation> list) {
Uri uri = ScheduleContractHelper
.setUriAsCalledFromSyncAdapter(ScheduleContract.MapMarkers.CONTENT_URI);
list.add(ContentProviderOperation.newDelete(uri).build());
for (String floor : mMarkers.keySet()) {
for (Marker marker : mMarkers.get(floor)) {
ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(uri);
builder.withValue(ScheduleContract.MapMarkers.MARKER_ID, marker.id);
builder.withValue(ScheduleContract.MapMarkers.MARKER_FLOOR, floor);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LABEL, marker.title);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LATITUDE, marker.lat);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LONGITUDE, marker.lng);
builder.withValue(ScheduleContract.MapMarkers.MARKER_TYPE, marker.type);
list.add(builder.build());
}
}
}
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:20,代码来源:MapPropertyHandler.java
示例2: buildMarkers
import com.google.samples.apps.iosched.io.map.model.Marker; //导入依赖的package包/类
private void buildMarkers(ArrayList<ContentProviderOperation> list) {
Uri uri = ScheduleContract
.addCallerIsSyncAdapterParameter(ScheduleContract.MapMarkers.CONTENT_URI);
list.add(ContentProviderOperation.newDelete(uri).build());
for (String floor : mMarkers.keySet()) {
for (Marker marker : mMarkers.get(floor)) {
ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(uri);
builder.withValue(ScheduleContract.MapMarkers.MARKER_ID, marker.id);
builder.withValue(ScheduleContract.MapMarkers.MARKER_FLOOR, floor);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LABEL, marker.title);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LATITUDE, marker.lat);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LONGITUDE, marker.lng);
builder.withValue(ScheduleContract.MapMarkers.MARKER_TYPE, marker.type);
list.add(builder.build());
}
}
}
开发者ID:gdg-bh,项目名称:AppDevFestSudeste2015,代码行数:20,代码来源:MapPropertyHandler.java
示例3: processMarkers
import com.google.samples.apps.iosched.io.map.model.Marker; //导入依赖的package包/类
private void processMarkers(java.util.Map<String, Marker[]> markers) {
for (String floor : markers.keySet()) {
if (!mMarkers.containsKey(floor)) {
mMarkers.put(floor, new ArrayList<Marker>());
}
for (Marker marker : markers.get(floor)) {
mMarkers.get(floor).add(marker);
}
}
}
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:11,代码来源:MapPropertyHandler.java
注:本文中的com.google.samples.apps.iosched.io.map.model.Marker类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论