Positioning a Toast notification on the top half of the screen

Android Toasts are great for providing simple feedback to the user, without blocking his interaction with the current view/window. In Titanium you can use Ti.UI.Notification to create a Toast: Ti.UI.createNotification({ message: "Please Stand By", duration: Ti.UI.NOTIFICATION_DURATION_LONG }).show(); Positioning the notification The Android API guides explain how to use setGravity(gravity, xOffset, yOffset) with setMargin(horizontalMargin, verticalMargin) to […]