Adding an Action View An action view is a widget that appears in the action bar as a substitute for an action button. An action view provides fast access to rich actions without changing activities or fragments, and without replacing the action bar.…
Styling the Action Bar If you want to implement a visual design that represents your app's brand, the action bar allows you to customize each detail of its appearance, including the action bar color, text colors, button styles, and more. To do so, yo…
Adding an Action Provider Similar to an action view, an action provider replaces an action button with a customized layout. However, unlike an action view, an action provider takes control of all the action's behaviors and an action provider can disp…
Adding Action Items The action bar provides users access to the most important action items relating to the app's current context. Those that appear directly in the action bar with an icon and/or text are known as action buttons. Actions that can't f…
MIME Type Reference Content providers can return standard MIME media types, or custom MIME type strings, or both. provider支持标准MIME和自定义的MIME MIME types have the format 标准MIME格式如下: type/subtype For example, the well-known MIME type text/html has the te…
Custom Components In this document The Basic Approach Fully Customized Components Compound Controls Modifying an Existing View Type Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout…
Adding Drop-down Navigation As another mode of navigation (or filtering) for your activity, the action bar offers a built in drop-down list (also known as a "spinner"). For example, the drop-down list can offer different modes by which content i…
This interface is deprecated.Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead. Adding Navigation Tabs Figure 7. Action bar tabs on a wide screen. Tabs…
Navigating Up with the App Icon Enabling the app icon as an Up button allows the user to navigate your app based on the hierarchical relationships between screens. For instance, if screen A displays a list of items, and selecting an item leads to scr…
Using split action bar Split action bar provides a separate bar at the bottom of the screen to display all action items when the activity is running on a narrow screen (such as a portrait-oriented handset). Figure 3. Mock-ups showing an action bar wi…