0
public Dialog onCreateDialog(int id){
AlertDialog.Builder builder=new AlertDialog.Builder(this);
builder.setTitle("PubQuiz");
TextView player = new TextView(this);
player.setText("Player1");
builder.setView(player);
TextView team = new TextView(this);
team.setText("TeamA");
builder.setView(team);
return builder.create();
}
如何獲得第二個textview顯示?對話框問題
謝謝:)什麼情況下該線路上的意思的LinearLayout奠定=新的LinearLayout(背景); – OoviperoO 2011-04-28 13:01:59
你可以寫Activityname.this – Dharmendra 2011-04-28 13:09:41
如果我加這樣\t Button twopoints = new Button(this); \t twopoints.setText(「2 points」); \t lay.addView(twopoints);如何在該代碼塊上添加actionlistener – OoviperoO 2011-04-28 14:13:38