Changing text from Textview

Asked

Viewed 895 times

1

Suppose I have a text inside a Textview, there is the possibility of changing android:text remotely, without touching the xml, by means of a post in an external database, for example, a phrase played in a database that can be changed at any minute, it is possible to make it appear in the android:text field being changed every post?

(I’m studying a way, but I was wondering if I can do it this way)

  • 1

    To change the text of TextView recommend taking a look at the documentation of the method setText ( http://developer.android.com/reference/android/widget/TextView.html#setText(java.lang.Charsequence,android.widget.Textview.Buffertype). As a recommendation, I suggest the Udacity Android course (https://www.udacity.com/courses#!/android). Good luck in your studies.

  • I have taken the course from Udacity, but I will read the article on the setText method. Thank you.

1 answer

1

Summary:

after a few studies, I noticed more feasible to perform using webview in xml than changing from a textview.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.