Code example for View

Methods: findViewById

		LayoutInflater inflater = (LayoutInflater) context
		View v = inflater.inflate(R.layout.balloon_overlay_example2, parent);
		// setup our fields 
		title = (TextView) v.findViewById(;
		snippet = (TextView) v.findViewById(;
		image = (ImageView) v.findViewById(;
	protected void setBalloonData(CustomOverlayItem item, ViewGroup parent) {
		// map our custom item data to fields 
		// get remote image from network. 
		// bitmap results would normally be cached, but this is good enough for demo purpose. 
Experience pair programming with AI  Get Codota for Java