0
をロードしないように、画面の残りの部分を引き起こしている私は、アクションが使用して発生したときにテキストを変更しようとしています:Androidのテキスト変更が
final TextView textViewToChange = (TextView) findViewById(R.id.registerTextHeader);
textViewToChange.setText("Error getting seed! (" + message + ") TEXT HERE NOT SHOWING");
メッセージはStringです。今までにこの変更がトリガされたときしかし、私は得る:
を"!HERE表示されていないの取得中にエラーが発生したシード(ERR1)TEXT":私は得ることを期待すると
"!エラーがシード(ERR1を取得します"
レイアウトXML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/registerTextHeader"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/registration_header" />
<EditText
android:id="@+id/userID"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/userPassword"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/registerSubmitButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>
メッセージ変数の種類は何ですか? – dmaxi
xmlファイルのTextViewプロパティを確認し、TextViewの機能を拡張しないようにしてください。 – Luis
レイアウト(xml)を転記します。 – Luis