How I can add items to the launch view?

59 views
Skip to first unread message

javaelf

unread,
Jun 30, 2012, 11:04:04 PM6/30/12
to mylau...@googlegroups.com
Notice the sample code only have move and delete. 

How I can add items to the launch view, e.g. from a Add button.


Any sample code will by much appreciated.

Thanks

Jarada

unread,
Jul 1, 2012, 10:51:35 AM7/1/12
to mylau...@googlegroups.com
Hi there Javaelf,

I am going to be adding some code to myLauncher this week which will allow easier adding of myLauncherItems to the items.

In the meantime, have a look at this gist which will add an item to the launcherView accordingly: https://gist.github.com/3028664

Obviously feel free to edit it based on where you would like the item's added first; the new code will provide you with the ability to ask for a preferred placement.

Cheers

javaelf

unread,
Jul 1, 2012, 8:46:29 PM7/1/12
to mylau...@googlegroups.com
Thanks Jarada,

Notice the workaround code in gist only look at the   self.launcherView. But in my application, the add button will open a new view which contains different items to allow users select different items to add. In this case, the new view is not a launcher. I am just wondering how I can pass the value back to the self.launcherview from the new view.

Best regards

Jarada

unread,
Sep 12, 2012, 11:06:37 AM9/12/12
to mylau...@googlegroups.com
If this is still something you are looking for, you just need to pass through a link to your RootViewController or (as shown in the following gist), your MyLauncherView, and perform appropriate actions as needed.

Reply all
Reply to author
Forward
0 new messages