private void textview(String question) {
TextView clientAddress = new TextView(this);
clientName.setGravity(1);
clientAddress.setTypeface(Typeface.defaultFromStyle(1));
clientAddress.setText(question);
clientAddress.setLayoutParams(lparams);
linearLayout.addView(clientAddress);
clientAddress.setTextSize(20);
clientAddress.setTextColor(getResources().getColor(R.color.white));
clientAddress.setPadding(7, 10, 0, 10);
}
この関数を呼び出して、6つのTextViewを動的に作成します。しかし、私は混乱しています、これらのTextViewsからテキストを取得する方法。誰も私に解決策を提案できますか?どのように動的に作成されたテキストビューからアンドロイドでテキストを取得するには?
のようなものですか?ゲッターの問題は何ですか? – pskink
私はアンドロイドに新しいです、少し記述していただけますか? –
ちょうど 'clientAddress.getText()'を使用してください – pskink