Android Tutorial 29 - Using Links with TextView

Опубликовано: 24 Март 2014
на канале: Code Here Now
8,261
25

This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...

This video teaches you how to add links to your TextView.

Things to Remember
-------------------------------
1. Use the Auto Link property from your XML and use one of the following values - web, email, phone, map and all.

2. To set the property from Java use TextView.setAutoLinkMask(int) method to specify a linkify method. The int parameters takes constant values from the Linkify class.

3. If you set the auto link property from Java, make sure to call the TextView.setText(CharSequence) method.


Смотрите видео Android Tutorial 29 - Using Links with TextView онлайн без регистрации, длительностью online в хорошем качестве. Это видео добавил пользователь Code Here Now 24 Март 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,261 раз и оно понравилось 25 людям.