How to insert a button in the MapKit annotation - ios4

I am very new to MapKit so forgive me if I do not make sense when I am asking questions. I would like to replicate the default Map application that comes on the iPhone and iPod Touch. There is this feature that I am interested in but can't seem to find it here, google, other iPhone app sites. If you would to run the default Maps application, the annotation title has and image and a button. How do I do both the image and button? What is the name of the method should I call?
Thanks in advance!

They are called rightCalloutAccessoryView and leftCalloutAccessoryView.
http://developer.apple.com/library/iOS/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/occ/instp/MKAnnotationView/leftCalloutAccessoryView
http://developer.apple.com/library/iOS/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/occ/instp/MKAnnotationView/rightCalloutAccessoryView

Related

expandable (month view)/collapsable(week view) calendar widget for android

I saw this android calendar widget used in an app called cal and was quite impressed.
I would like to implement a similar one in my app as well. Currently I am using an android calendar framework called caldroid and I am using it as a Fragment and will be invoked on action bar button click and will get collapsed clicking back on the action bar button.
But I would like to do the widget like in the app. Screen shots attached.
I would like to know if you guys are aware of any frameworks that can used to achieve this or any approach or tips on how to code this.
I am bit new and know basics of android. Haven't attempted to create custom widgets yet.
Thanks,
Bala
Maybe this library can help you.
https://github.com/blazsolar/android-collapse-calendar-view

Android component

Does anyone know what component it is or what components are being used?:
Here is the link, it is the second image in the App Screenshots section:
The Image
Thanks for any help.
ListView is used in that screen and with custom Array Adaptor and also Button controls are also used to navigate between days.
http://developer.android.com/guide/topics/ui/controls.html
try this link if you want to learn about different layout used in android.

Create Custom view in Android

I need to create a Custom view in android which will have dynamic text like price, address etc. and also an ImageView inside it as shown in the image below. I tried to find google some tutorial for custom view but didn't find something satisfactory to do all these things. I also need to use onClick event on this view. Please guys, some code would be of great help. I'm a novice to android. I read google tutorial to create custom view but couldn't implement this.
https://lh4.ggpht.com/HmwmRTx3g9ddkHbgvZXpZOB3Am-O9OQARQ2qpxJ16zTDZbG57CmvgxUC75sGFzC3cqrH
Thanks for attention.
This is called Custom Overlay for MapView.
You can check example and implement as per your requirement - Android MapView Balloons
You can use FrameLayouts. It is very simple to use. FrameLayout can add several views on top of each other. It creates a stack of the views. Just add whatever views you want to inside FrameLayout and use the property setVisibility() to control when to show which view.

Android googledocs app component name

I am planning to provide menus for my app similar to the sliding menu shown in the below image when clicking on the button in the list view. Could you give me some pointers on, how it can be achieved. Is it SubMenu ?
http://static5.businessinsider.com/image/4db84baeccd1d58435080000/google-docs-for-android.jpg
I got it, the behavior or pattern name is QuikActions.
Useful introductory article for the beginners like me is available in the following link
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

What View Component does the Google Plus App (Stream) use?

if you use the Google Plus App on Android and switch to the Stream, you get a view where you can swipe to the left and right between the All circles/Incoming/Nearby-Stream. What view component is used for this? Is this a standard Android component? Or where can I find democode how i can build such a view component?
You should take a look at the ViewPager from Android Compatibility Package for the desired widget/swipe navigation. Find more about it here
http://developer.android.com/sdk/compatibility-library.html
Also, checkout this recently posted tutorial and some sample code on ViewPager by Richard:
http://geekyouup.blogspot.com/2011/07/viewpager-example-from-paug.html
It is a combination of a ViewPager together with an indicator for where you are currently and where you can go swiping left and right.
A sample of how this can be done along with code you can use in your own apps may for example be found here. I've played with this code a little and it works pretty well.
None of the default widgets/views. I guess, it's some kind of a custom view with swipe functionality.
Honeycomb opens up a few new widgets which seem to have these functionality. Have a look here.
http://developer.android.com/sdk/android-3.0.html (New Widgets)
I used APKTool to take a look at what's going on. Hopefully it is okay to post this here. This is from version 1.0.2 of the G+ APK.
removed google+ app code as per CommonsWare's suggestion
So, it looks like they're using standard views, though perhaps with a good deal of gesture detection and smooth animation magic.
EDIT) If you really want to know about the exact inner-workings of what is going on in the Stream activity, I suggest you use APKTool yourself and examine the .smali code

Resources