Google+

Android4Beginners.com

Apps development for Android step by step

Lesson 1: How to display and format a text in Android apps

In this lessons set we will write and display some text in Android app.  And then we will make this text look as we wish. We assume that you know how to create a new app project and find activity_main.xml file. Otherwise start with Lesson 0.

Lesson 1.1: My first app: More than Hello World! (TextView tag and android:text attribute)

Lesson 1.2: Keeping text in a dedicated file (why and how to use strings.xml file in Android)

Lesson 1.3: How to modify TextView in Java code (findViewById, setText and getText methods)

Lesson 1.4: How to change a color of text and background in TextView?

Lesson 1.5: How to color part of the text and use alpha channel in TextView?

Adding a text to your Android app is the most basic function, but there are many options for showing a text (Photo credit by SXC.hu/Fotocromo)

Adding a text to your Android app is the most basic function, but there are many options for showing a text (Photo credit by SXC.hu/Fotocromo)

Previous:
Next: