Android Open Source - storage_room_android_example Restaurant Overlay Item






From Project

Back to project page storage_room_android_example.

License

The source code is released under:

Copyright (c) 2011 Till Simon http://www.tillsimon.com mail@tillsimon.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...

If you think the Android project storage_room_android_example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.tillsimon.storageroom_example.activities.maphelper;
//from w ww .  j a  va2  s . c om
import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

public class RestaurantOverlayItem extends OverlayItem {  
  private int id;

  public RestaurantOverlayItem(GeoPoint point, String title, String snippet, int id) {  
    super(point, title, adjustSnippet(snippet));
    this.id = id;
  }

  private static String adjustSnippet(String snippet) {
    if (snippet.length() >= 120) {
      snippet = snippet.substring(0, 100).concat(" ...");
    }
    snippet = snippet.concat("  (click for details)");
    return snippet;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }  

}




Java Source Code List

com.readystatesoftware.mapviewballoons.BalloonItemizedOverlay.java
com.readystatesoftware.mapviewballoons.BalloonOverlayView.java
com.tillsimon.storageroom_example.activities.RestaurantDetailActivity.java
com.tillsimon.storageroom_example.activities.RestaurantListViewActivity.java
com.tillsimon.storageroom_example.activities.RestaurantMapActivity.java
com.tillsimon.storageroom_example.activities.maphelper.RestaurantOverlayItem.java
com.tillsimon.storageroom_example.activities.maphelper.RestaurantsOverlay.java
com.tillsimon.storageroom_example.application.AppConfigInterface.java
com.tillsimon.storageroom_example.application.RestaurantApplication.java
com.tillsimon.storageroom_example.model.database.RestaurantsDatabaseHelper.java
com.tillsimon.storageroom_example.model.database.RestaurantsTableInterface.java
com.tillsimon.storageroom_example.model.webconnect.AnnouncementDownloaderDelegate.java
com.tillsimon.storageroom_example.model.webconnect.AnnouncementDownloader.java
com.tillsimon.storageroom_example.model.webconnect.RestaurantsDownloaderDelegate.java
com.tillsimon.storageroom_example.model.webconnect.RestaurantsDownloader.java