Home
last modified time | relevance | path

Searched refs:on (Results 1 – 25 of 459) sorted by relevance

12345678910>>...19

/developers/samples/android/ui/text/RoundedBackground-Kotlin/
DREADME.md1 Drawing a rounded corner background on text
4 This sample shows how to draw a **rounded** corner background on text. It supports the following ca…
6 * Set the background on **one line** text
10 * Set the background on text over **two or multiple lines**
14 * Set the background on **right-to-left** text
21 Depending on the position of the text, we need to draw four different drawables as text backgrounds:
23 * Text fits on one line: we only need one drawable
24 * Text fits on 2 lines: we need drawables for the start and end of the text
29 The four drawables that need to be drawn depending on the position of the text:
34 * Find the start and end offset depending on the paragraph direction
[all …]
/developers/samples/android/media/BasicMediaDecoder/
DREADME.md21 3. To start video playback, call `setDataSource(this, videoUri, null)` on your MediaExtractor insta…
27 on your MediaExtractor instance, where `i` is the index of your selected track.
29 on your MediaExtractor instance.
32 where `trackFormat` is obtained by calling `getTrackFormat(i)` on your MediaExtractor instance.
33 8. Set a TimeListener on your TimeAnimation instance, and override its `onTimeUpdate(final TimeAnim…
36 on your MediaExtractor instance and looking for `MediaCodec.BUFFER_FLAG_END_OF_STREAM` flag.
40 11. After writing the media sample, you need to advance the sample, calling `advance()` on your
45 13. In `onPause()` or if you have reached the end of the stream, call `end()` on your TimeAnimation…
46 then call `stop()` and `release()` on your MediaCodec instance, and finally, call `release()` on yo…
99 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/renderScript/BasicRenderScript/
DREADME.md7 adjustment, running the computation on the device\'s GPU or other compute hardware as deemed approp…
12 [RenderScript][1] is a framework for running computationally intensive tasks at high performance on
16 The RenderScript runtime will parallelize work across all processors available on a device, such as…
17 GPUs, or DSPs, allowing you to focus on expressing algorithms rather than scheduling work or load b…
22 manipulation. In this case, each pixel is transformed based on a liner interpolation between its or…
23 RGB value and it's luminance (black-and-white) value, weighted based on the user's specified satura…
73 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/ui/accessibility/BasicAccessibility/
DREADME.md14 To run this sample as intended you will need to turn on TalkBack (or another text to speach system)
15 on your Android device. Go to Settings > Accessibility > TalkBack to turn TalkBack on.
17 When you run the sample with TalkBack mode on, TalkBack will read aloud the
65 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/content/documentsUi/StorageClient/
DREADME.md6 on the device, and choose a file from any of them.
12 application to access a list of Document Providers on the devices and choose a file from
16 Then, given the content:// URI of the selected image, it shows it on the screen using a
21 interface, and choose an image on your device. It will be displayed in this app.
68 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/ui/views/Elevation/ElevationBasic/
DREADME.md20 /* Raise view on ACTION_DOWN and lower it on ACTION_UP. */
23 Log.d(TAG, "ACTION_DOWN on view.");
27 Log.d(TAG, "ACTION_UP on view.");
86 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/ui/views/Elevation/ElevationDrag/
DREADME.md5 This sample demonstrates a drag and drop action on different shapes. Elevation and
12 This sample demonstrates a drag and drop action on different shapes. Elevation and
16 Elevation is considered the static or initial position of a view on the z axis, while
69 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/media/Camera2Video/kotlinApp/
DREADME.md18 2. Implement a `TextureView.SurfaceTextureListener` on your TextureView, and override its
20 …rix to apply to the TextureView so the camera output fits. Use the method `setTransform(matrix)` on
27 on your CameraDevice instance.
29 `createCaptureSession(surfaces, new CameraCaptureSession.StateCallback(){})` on your CameraDevice i…
32 7. Use `start()` and `stop()` methods on your MediaRecorder instance to actually start and stop the…
89 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/media/HdrViewfinder/
DREADME.md6 the sensor's exposure time between two exposure values on even and odd frames, and then
15 by alternating the sensor's exposure time between two exposure values on even and odd
21 by swiping up/down on the right and left halves of the viewfinder. The left half controls
24 In split-screen mode, the even frames are shown on the left and the odd frames on the right,
88 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/media/Camera2Video/
DREADME.md18 2. Implement a `TextureView.SurfaceTextureListener` on your TextureView, and override its
20 …rix to apply to the TextureView so the camera output fits. Use the method `setTransform(matrix)` on
27 on your CameraDevice instance.
29 `createCaptureSession(surfaces, new CameraCaptureSession.StateCallback(){})` on your CameraDevice i…
32 7. Use `start()` and `stop()` methods on your MediaRecorder instance to actually start and stop the…
88 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-Styled/
DREADME.md6 split action bar when running on a device with a narrow display, and shows three tabs.
11 This sample shows how to style an ActionBar using the [support library][1] on devices running
15 necessary to display a compatible Action Bar on devices running Android v2.1+.
68 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/content/multiuser/AppRestrictions/
DREADME.md5 A sample that demonstrates the use of the App Restriction feature on devices with multiuser support
10 This sample demonstrates the use of the App Restriction feature, which is available on
19 the custom configuration on the user interface. Three sample [RestrictionEntry][1] types are
72 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/ui/graphics/DisplayingBitmaps/
DABOUT.txt10 distributed under the License is distributed on an "AS IS" BASIS,
21 caching bitmaps (both in memory and on disk), managing bitmap memory and
/developers/samples/android/wearable/wear/JumpingJack/
DREADME-wear.txt11 distributed under the License is distributed on an "AS IS" BASIS,
17 Steps to use Wear template on top of an existing sample:
/developers/build/templates/WearPlusShared/
DREADME-wear.txt11 distributed under the License is distributed on an "AS IS" BASIS,
17 Steps to use Wear template on top of an existing sample:
/developers/samples/android/wearable/wear/DataLayer/
DREADME-wear.txt11 distributed under the License is distributed on an "AS IS" BASIS,
17 Steps to use Wear template on top of an existing sample:
/developers/build/templates/Wear/
DREADME-wear.txt11 distributed under the License is distributed on an "AS IS" BASIS,
17 Steps to use Wear template on top of an existing sample:
/developers/samples/android/connectivity/nfc/CardEmulation/
DREADME.md7 whenever the screen is on and the user taps their device on an appropriately configured
52 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/content/contacts/BasicContactables/
DREADME.md12 For details on how to implement the [SearchView][1], refer to the training guide [Setting up the se…
14 For details on how to implement the [LoaderManager.LoaderCallbacks][2] interface, refer to the [Usi…
16 For details on how to query the contacts provider, refer to the [Contacts Provider Access][6] guide.
70 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/connectivity/network/NetworkConnect/
DREADME.md6 HttpsURLConnection. AsyncTask is used to perform the fetch on a background thread.
13 operations run on a background thread in order to avoid hanging on the UI thread. Only
76 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
/developers/samples/android/connectivity/nfc/BeamLargeFiles/Application/
DREADME-simpleview.txt11 distributed under the License is distributed on an "AS IS" BASIS,
29 project built on this template.
/developers/build/templates/SimpleView/_MODULE_/
DREADME-simpleview.txt11 distributed under the License is distributed on an "AS IS" BASIS,
29 project built on this template.
/developers/samples/android/security/keystore/BasicAndroidKeyStore/Application/
DREADME-simpleview.txt11 distributed under the License is distributed on an "AS IS" BASIS,
29 project built on this template.
/developers/samples/android/deprecated/wearable/wear/SynchronizedNotifications/Application/
DREADME-simpleview.txt11 distributed under the License is distributed on an "AS IS" BASIS,
29 project built on this template.
/developers/samples/android/connectivity/network/BasicNetworking/
DREADME.md14 on the active connection, and then the connection type is printed to an on-screen console.
67 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT

12345678910>>...19