Related questions
android on Text Change Listener
I have a situation, where there are two fields. field1 and field2. All I want
to do is empty field2 when field1 is changed and vice versa. So at the end only
one field has content on it.
field1 = (EditText)…
How to add a TextView to LinearLayout in Android
I am trying to add TextViews to my xml-defined layout in code.
I have a xml-sheet, where a lot of Views are defined. But I have to add some views in code, so a create a LinearLayout in the xml-sheet:
&…
Android - set TextView TextStyle programmatically?
Is there a way to set the textStyle attribute of a TextView programmatically? There doesn't appear to be a setTextStyle() method.
To be clear, I am not talking about View / Widget styles! I am talking about the following:
<TextView
…