As a quick reminder to self (and an example), you can easily create a Toolbar in Android. Here’s one example that shows a Toolbar defined in some XML layout code:
Android FAQ: How do I look up (find) a widget in my Java code that I’ve defined in an XML layout file?
Solution: When you define your Android widgets in XML and then need to find a widget by its
id, the method you need is named
For example, you’ll use code like this to look up a widget by its
id and create it in your Java code:
As a short note, I like the “add one event at a time” UI widget in the Mac OS X Calendar application. There are some other things I don’t like in the Add New Event UI, but I do like that concept, even though it is a little hidden.
iPhone HTML/web apps FAQ: Can I use the HTML SELECT tag in my iPhone HTML web apps? If so, what does the control look like in the iPhone Mobile Safari web browser?
Yes, according to the Apple Safari web developer documentation, you can use the HTML SELECT tag in your iPhone HTML/web apps.
Mac dashboard widgets FAQ: How can I create a Mac dashboard widget from a web page?
Some time back, I don't remember exactly when, Apple introduced the ability to create Mac dashboard widgets from web pages with their Safari web browser. The process of creating a Mac dashboard widget from a web page is fairly simple, and I thought I'd share the steps in a short tutorial here.
Create a custom Mac dashboard widget from a web page
I just created a Mac dashboard widget from an "aurora borealis" forecast web page, and these are the steps I followed:
Java Swing FAQ: How do I create a Java tooltip (also known as balloon or bubble help text)?
If you've ever wanted to see your Dashboard widgets outside of the normal Dashboard environment, Amnesty Widgets lets you run your widgets directly on your desktop. It's not free, but if it's something you always wanted, you can download a free trial.
I just found the RubySearch dashboard widget for Mac OS X, and I like it. It offers a simple interface to your local ri/rdoc repository, with hyperlinking between classes, methods, superclasses, etc. It may be a lot better than going back and forth between a Terminal window and typing
In a previous tip I discussed how to create a Mac sticky note from inside a Cocoa application, but I forgot to mention about how to use stickies as a standalone application.
Fortunately, it's pretty easy. Just open your Applications folder, and click the Stickies application icon. Once the Stickies application is started, just click File, and New Note to create a new sticky note, or press [Command][N].