Questions tagged as 'textview'

2
answers

TextView Multiline with horizontal and vertical scroll

Well, so that we are in tune, my idea is to create a logger I've already managed to make it scroll vertically but as I do not fit the text in TextView I share the code: <?xml version="1.0" encoding="utf-8"?> <android.suppo...
asked by 27.10.2018 / 21:07
2
answers

How to clean a field from a textView?

Hello in the code I am using a EditText and several TextView , the point is that I am trying that when the value of EditText this empty clean the fields of TextView . That is the code with which I am trying it Text...
asked by 22.04.2017 / 02:14
1
answer

Android: Error: void android.widget.TextView.setText (java.lang.CharSequence) 'on a null object reference

Good morning, please support me with this code that I try to run but it throws me error:    Error: void android.widget.TextView.setText (java.lang.CharSequence) '   on a null object reference The code is as follows: package bernascompan...
asked by 21.10.2017 / 13:11
2
answers

Line break of a second android textview

I have two textview on the same line, the two textview do not have static content, the problem comes when the second textview is loaded with the data, it takes the second line but not from the left completely. I hope you can help me. The...
asked by 01.08.2017 / 21:15
2
answers

How to change the underline color of a TextView in Android?

I'm adding the underline to TextView like this: TextView register = (TextView)findViewById(R.id.txt_register); SpannableString content = new SpannableString(getString(R.string.text)); content.setSpan(new UnderlineSpan(), 0, content.leng...
asked by 06.06.2018 / 01:23
2
answers

How to concatenate a MySQL query with html tags to send color to text textView on Android?

The following code in php $result = mysql_query("SELECT name, concat('<div style="color:Red">',designation,'</div>') as designation FROM test.table_test;") or die(mysql_error()); if (mysql_num_rows($result) > 0) { while ($...
asked by 03.03.2017 / 21:59
3
answers

change of value of textView depending on the selection of a spinner

The problem is the following, in the activity I have a textView and a spinner what I'm looking for is that when you select an option in spinner the value of textView change. This is the code public class longitud...
asked by 16.04.2017 / 16:09
1
answer

Number of elements of a ListView in a TextView

I update the code I have now: public class ArrayAdapterWithCountingFilter extends AppCompatActivity implements Filter.FilterListener { ListView lvElements; TextView tvTotals; EditText etSearch; StringFilterCountArrayAdapter adapter; Filter.Fi...
asked by 23.10.2018 / 13:09
1
answer

Two-color text in TextView Android

I'm doing an app and I need that in the textView it should show the commands that it sent to the outside and it also has to show the answers, to differentiate what is interrogation and what is answers, so I need to change the color of t...
asked by 31.10.2018 / 19:14
1
answer

text property of the textview class of android

I have a question, before to recover or save text in a textview the methods getText and setText were used, now, yesterday I started working with a textview and the getText method did not appear in the list of recommended methods when I put obj...
asked by 18.04.2018 / 14:51