Google+

Android4Beginners.com

Apps development for Android step by step

Lessons related to strings.xml

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

Let’s say that we want to have every word presented in TextView in different color. Any of solutions from previous lesson doesn’t address this issue, but we know how to do it. And there is one more thing related to colors – so called alpha channel that’s responsible for transparency.

Read More

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

We have already presented some text on the screen using layout XML file. This is recommended approach, but if we want to modify that text we have to use Java.

Read More

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

Our first app displays “I’m the best” on the screen. To achieve that goal we’ve used TextView tag and modified its android:text attribute. This attribute could keep a specific text (that we did in previous lesson) or reference to one of strings in a file dedicated for keeping all text.

Read More