Lines Matching refs:on
1 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
36 All of these can be computed based on the text Layout. To render the background behind the text we …
41 * **Rendering the drawables** depending on whether the text runs across **one or multiple lines** -…
42 * Supporting **custom drawing** on a TextView - `RoundedBgTextView`, a class that extends `AppCompa…
55 connectedAndroidTest - Installs and runs the tests for Debug build on connected
89 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT