/developers/samples/android/ui/text/TextStyling-Java/app/src/test/java/com/android/example/text/styling/parser/ |
D | ParserTest.java | 38 List<Element> elements = new Parser().parse(withQuote).getElements(); in quoteBeginingOfText() local 40 assertEquals(elements.size(), 2); in quoteBeginingOfText() 41 assertEquals(elements.get(0).getType(), QUOTE); in quoteBeginingOfText() 42 assertEquals(elements.get(0).getText(), "This is a quote.\n"); in quoteBeginingOfText() 43 assertEquals(elements.get(1).getType(), TEXT); in quoteBeginingOfText() 44 assertEquals(elements.get(1).getText(), "This is not"); in quoteBeginingOfText() 51 List<Element> elements = new Parser().parse(withQuote).getElements(); in quoteEndOfText() local 53 assertEquals(elements.size(), 2); in quoteEndOfText() 54 assertEquals(elements.get(0).getType(), TEXT); in quoteEndOfText() 55 assertEquals(elements.get(0).getText(), "This is not a quote.\n"); in quoteEndOfText() [all …]
|
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/test/java/com/android/example/text/styling/parser/ |
D | ParserTest.kt | 29 val elements = Parser.parse(withQuote).elements in quoteBeginningOfText() constant 34 assertEquals(expected, elements) in quoteBeginningOfText() 40 val elements = Parser.parse(withQuote).elements in quoteEndOfText() constant 45 assertEquals(expected, elements) in quoteEndOfText() 51 val elements = Parser.parse(bulletPoints).elements in simpleBulletPoints() constant 53 assertEquals(elements.size, 4) in simpleBulletPoints() 54 assertEquals(elements[0].type, Element.Type.TEXT) in simpleBulletPoints() 55 assertEquals(elements[0].text, "Bullet points:\n") in simpleBulletPoints() 56 assertEquals(elements[1].type, Element.Type.BULLET_POINT) in simpleBulletPoints() 57 assertEquals(elements[1].text, "One\n") in simpleBulletPoints() [all …]
|
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/ |
D | TextMarkdown.java | 29 private final List<Element> elements; field in TextMarkdown 31 public TextMarkdown(@NonNull final List<Element> elements) { in TextMarkdown() argument 32 this.elements = elements; in TextMarkdown() 37 return elements; in getElements()
|
D | Element.java | 36 private final List<Element> elements; field in Element 39 @NonNull final List<Element> elements) { in Element() argument 42 this.elements = elements; in Element() 57 return elements; in getElements()
|
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/parser/ |
D | Markdown.kt | 22 data class TextMarkdown(val elements: List<Element>) constant in com.android.example.text.styling.parser.TextMarkdown 29 val elements: List<Element> = emptyList() constant in com.android.example.text.styling.parser.Element
|
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/ |
D | MarkdownBuilder.kt | 46 markdown.elements.forEach { it -> buildElement(it, this) } in <lambda>() 69 for (child in element.elements) { in <lambda>()
|
/developers/samples/android/ui/views/RecyclerView/ |
D | README.md | 5 Sample demonstrating the use of RecyclerView to layout elements with a 7 how to handle touch events on elements. 12 Sample demonstrating the use of [RecyclerView][1] to layout elements with a 20 Tap "Show Log" menu item to display log of elements as they are laid out and
|
/developers/samples/android/ui/views/RecyclerView/kotlinApp/ |
D | README.md | 5 Sample demonstrating the use of RecyclerView to layout elements with a 7 how to handle touch events on elements. 13 Sample demonstrating the use of [RecyclerView][1] to layout elements with a 21 Tap "Show Log" menu item to display log of elements as they are laid out and
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/ |
D | README.md | 7 bitmaps in UI elements such as ViewPager and ListView/GridView. 16 in UI elements such as ViewPager and ListView/GridView.
|
D | ABOUT.txt | 22 displaying bitmaps in UI elements such as ViewPager and ListView/GridView.
|
/developers/samples/android/ui/holo/BorderlessButtons/ |
D | README.md | 12 This sample shows how to style widgets in an Activity using [borderless elements][1].
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/ |
D | README.md | 18 This sample implements all the required elements of a sync adapter.
|
/developers/samples/android/ui/text/TextStyling-Kotlin/ |
D | README.md | 13 …apabilities and has several limitations; for example, quotes do not support nesting other elements.
|
/developers/samples/android/ui/text/TextStyling-Java/ |
D | README.md | 13 …apabilities and has several limitations; for example, quotes do not support nesting other elements.
|