AccordionList with Expanding Item Renderers

A common use for a List is the master/detail UI pattern. When the user clicks on an item, it expands, revealing more detail about the item. Previously we’ve shown an example of a List with expanding item renderer. This post demonstrates a similar idea except will scroll items into view as they expand.
Continue reading

orientation and deviceOrientation in Flex Mobile apps

So you want to build a mobile app and tap into the 30+ billion app downloads that are estimated to happen in the next 5 years? Well, one of the first things you’ll have to think about is screen orientation: unlike in a desktop application, the user can rotate the screen through portrait and landscape orientations, both before and while your application is being used. This can be a great thing since your application can take advantage of the different screen dimensions to provide specialized UI but it also means you need to make some decisions about how your app is going to handle these situations.

Continue reading

Changing fontWeight of Spark DataGrid headers

In Flex 4.5, we introduced the Spark version of DataGrid, which provides a vastly improved skinning experience. Unfortunately, a more flexible skin also means less tweaking through styles. One example is the DataGrid’s header’s label. By default, the “fontWeight” style is hard-coded to bold, along with some other text styles. Luckily, we’ve provided a relatively simple way to customize this particular piece of the header. This post will show you how to customize the Spark DataGrid’s header’s label.
Continue reading

Customizing Spark DataGrid row and column separators

In Flex 4.5, we introduced the Spark version of DataGrid, which provides a vastly improved skinning experience. Spark DataGrid has a multitude of skin parts that can be customized and tweaked through its skin. These include the row backgrounds, row separators, column separators, selection indicators, caret indicator, hover indicator, etc… (see DataGrid Documentation). This post demonstrates two methods for customizing the row and column separators.
Continue reading

Adding multiline text support to LabelItemRenderer

LabelItemRenderer is the default base class for mobile optimized item renderers. It has a single StyleableTextField for a labelDisplay that truncates its text with an ellipsis mark when the text is too large to fit on one line. This post demonstrates how to change that behavior to reflow text onto multiple lines rather than truncate.
Continue reading

Controlling scroll bar visibility in a mobile Scroller

The default behavior of scroll bars in a mobile Scroller is to always hide the scrollbars unless a touch scrolling operation is in effect. This post demonstrates how to customize this behavior so that the scroll bars are always visible. It also demonstrates how to have scrollbars automatically appear at startup then fade away after a short period of time.
Continue reading