Support v4 Demos Hello, World! Lorem ipsum dolor sit aie consectetur adipiscing\nPlloaso mako nuto siwuf cakso dodtos anr koop. OK Cancel Initial text. Pick a result to send, or BACK to cancel. Corky Violet Press the buttons below to get an activity or intent sender result, which will be displayed here: Get Activity Result Get IntentSender Result Fragment/Alert Dialog Fragment/Arguments Demonstrates a fragment that takes arguments as a Bundle at runtime (on the right) or from attributes in a layout (on the left). From Attributes Landscape Only Fragment/Custom Animation Fragment/Hide and Show Fragment/Context Menu Fragment populating a context menu; long press the button to see. Long press me Fragment/Dialog Show Hide Fragment/Dialog or Activity Demonstrates the same fragment being shown as a dialog and embedded inside of an activity. Fragment embedded inside of the activity: Fragment/Layout Fragment/List Array Fragment/Menu Build menus from two fragments, allowing you to hide them to remove them.. Show fragment 1 menu Show fragment 2 menu Fragment/Nesting Tabs Fragment/Retain Instance Current progress of retained fragment; restarts if fragment is re-created. Restart Fragment/Receive Result Fragment/Stack Go home Add new Pop top Fragment/Tabs Fragment/Tabs and Pager Fragment/Pager First Last Fragment/State Pager Loader/Cursor Loader/Retained Loader/Custom Loader/Throttle Content/Local Service Broadcaster Demonstrates use of LocalBroadcastManager to communicate from a Service to an Activity. Start Service Stop Service App/Simple JobIntentService Demonstrates use of JobIntentService. The buttons enqueue work in to the service, which it will then process. Work A Work B Work C Content/Simple WakefulReceiver Demonstrates use of WakefulBroadcastReceiver to keep the device awake while dispatching a broadcast to a service. Wakeup in 30 seconds Alarm scheduled Accessibility/Accessibility Manager 1. Enable TalkBack from Settings->Accessibility. \n2. Go back to this activity. \n3. Disable TalkBack from Settings->Accessibility. No enabled accessibility services or API level lower than ICS. ENABLED ACCESSIBILITY SERVICES: \n\nService: %1$s\nFeedback: %2$s\nDescription: %3$s\nSettings: %4$s\n Accessibility enabled: %1$s Accessibility/Accessibility Delegate 1. Enable TalkBack from Settings->Accessibility. \n2. Go back to this activity. \n3. Touch the button below. Button Custom text added via an accessibility delegate. Accessibility/Role Description 1. Make sure that you have TalkBack 4.5 or later from the Play Store. \n2. Enable TalkBack from Settings->Accessibility. \n3. Go back to this activity. \n4. Touch the two items below. \n5. The first item has a role description, but the second item does not. Android rocks! Custom role description One possible use of role description is to notate heading levels in structured text: Milky Way Galaxy Solar System Planet Earth heading level 1 heading level 2 heading level 3 Do not set the role description for standard widgets. \nThe following button has a role description, which is incorrect. \nYou should let accessibility services determine feedback for standard widgets. Click me Button with incorrect role description Share some text Share a file Share multiple files App/ShareCompat Demo ShareCompat Receiver Content/FileProvider example Without BidiFormatter: With BidiFormatter: Text/BidiFormatter Demo Media/TransportController View/View pager Widget/Sliding pane layout This activity illustrates the use of sliding panes. The content pane may be slid to one side on narrow devices to reveal the left pane used to select content. Sliding panes can be used to fit a UI intended for wider screens in a smaller space. Tapping the Action Bar\'s Up button at the left side of the bar will navigate up in the hierarchy, represented by the left pane. If you rotate the device to landscape mode, on most devices you will see that both panes fit together side by side with no sliding necessary. Media/MediaBrowserCompat Sample Favorite Unable to retrieve metadata. Genres Songs by genre %1$s songs Random music Cannot skip Error Loading Media Play item Skip to previous play or pause Skip to next No search results. Pause Play Previous Next Empty metadata! Widget/Explore by Touch helper Sample item A Sample item B Sample item C Sample item D Widget/Content Loading Progress Bar Widget/SwipeRefreshLayout ListView Widget/SwipeRefreshLayout TextView Widget/SwipeRefreshLayout NestedScrollView Widget/Nested Scrolling This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. This is some long text. It just keeps going. Look at it. Scroll it. Scroll the nested version of it. regular round Not tint Color tint Color state list