• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.google/23-Mar-2024-4617

RoundedBackground-Kotlin/23-Mar-2024-1,9321,146

TextStyling-Java/23-Mar-2024-1,9531,267

TextStyling-Kotlin/23-Mar-2024-1,8251,143

screenshots/23-Mar-2024-

CONTRIBUTING.mdD23-Mar-20241.6 KiB3627

LICENSED23-Mar-202431.5 KiB648514

README.mdD23-Mar-20241.8 KiB4735

README.md

1Android Text Samples
2====================
3These samples show how to work with text in Android.
4
5Explore the samples
6-------------------
7The **TextStyling** [Java](https://github.com/googlesamples/android-text/tree/master/TextStyling-Java) and [Kotlin](https://github.com/googlesamples/android-text/tree/master/TextStyling-Kotlin) samples show how to style text using spans.
8
9The **RoundedBackground** sample shows how to draw a rounded corner background on a text that extends across one or multiple lines, supporting right-to-left text also.
10
11Screenshots
12-----------
13<img src="screenshots/main_activity.png" width="30%" />
14
15<img src="screenshots/rounded_bg.png" width="30%" />
16
17Support
18-------
19- Stack Overflow: http://stackoverflow.com/questions/tagged/android-text
20
21If you've found an error in this sample, please file an issue:
22https://github.com/googlesamples/android-text/issues
23
24Patches are encouraged, and may be submitted by forking this project and
25submitting a pull request through GitHub.
26
27License
28--------
29```
30Copyright 2018 The Android Open Source Project
31
32Licensed to the Apache Software Foundation (ASF) under one or more contributor
33license agreements. See the NOTICE file distributed with this work for
34additional information regarding copyright ownership. The ASF licenses this
35file to you under the Apache License, Version 2.0 (the "License"); you may not
36use this file except in compliance with the License. You may obtain a copy of
37the License at
38
39   http://www.apache.org/licenses/LICENSE-2.0
40
41Unless required by applicable law or agreed to in writing, software
42distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
43WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
44License for the specific language governing permissions and limitations under
45the License.
46```
47