電子書籍の厳選無料作品が豊富!

このプログラムについて質問したいのですが

public class InOutTest extends Activity {
/** Called when the activity is first created. */
public TextView txtInfo;
public EditText edtText;
public Button outputbutton;
public TextView txtResult;
public TextView txtjudge;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

//レイアウト作成 ここから
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
setContentView(layout); //レイアウトを見えるようにする
//レイアウト作成 ここまで

//GUI部品作成 ここから
// ラベル
txtInfo = new TextView(this);
txtInfo.setText("check spell same or not:");
layout.addView(txtInfo);
// エディタ
edtText = new EditText(this);
layout.addView(edtText);
// ボタン
txtResult = new Button(this);
txtResult.setText("same or difference");
layout.addView(txtResult);
// 結果表示用ラベル
txtjudge = new TextView(this);
txtjudge.setTextSize(30f);
layout.addView(txtjudge);
//GUI部品作成 ここまで

txtResult.setOnClickListener(new OnClickListener(){
public void onClick(View v) {
String strInch = "";
if (edtText==txtInfo) strInch = "typed as same";
txtResult.setText(strInch);
}


});
}
}

txtResultに文章を引き渡して表示させたいのですが やり方が分かりません
お時間のある方でいいので どなたかよろしければ教えてください

A 回答 (1件)

androidはJAVA言語ですね。

Javascriptとは関係ありません。

 andoroidについて調べるのは↓
http://developer.android.com/intl/ja/index.html

 質問は↓
https://groups.google.com/group/android-sdk-japa …
にすると早く解決できるかも。
    • good
    • 0
この回答へのお礼

操作ミスしてました 指摘有難う御座います

お礼日時:2010/12/11 09:45

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!