得到dialog中控件的id~!!

LayoutInflater inflater = LayoutInflater.from(getApplicationContext());
View view = inflater.inflate(R.layout.titile_bar,
(ViewGroup) findViewById(R.id.title_bar));
Button bb = (Button) view.findViewById(R.id.btn1);
System.out.println(bb.getText());

posted on 2012-07-05 14:15  冷雨夜~  阅读(362)  评论(0编辑  收藏  举报

导航