I have a button that when clicked, the text inside changes. I'm trying to accomplish this with an array in my strings.xml, thinking that the onClick will do a for loop through the string-array
<string-array name="RG_answers">
<item>text 1</item><!--Of course this is example text-->
<item>text 2</item>
<item>text 3</item>
</string-array>
I don't know if I'm just not Googling correctly, or what. Inside my onCreate() my button is basic
mTrueButton = (Button) findViewById(R.id.true_button);
mTrueButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
So basic that it's only helpful (if that) by providing the names I called it. Is it possible/feasible? From what I've found I haven't seen anyone ask a question like this.