2011-06-14 83 views
0

我做了一个扩展linearlayout的类文件,在这个例子中我看到下面的代码,我不明白什么是它的需要和重要。请解释一下FinishLayout示例代码?

protected void onFinishInflate() 
{ 
    super.onFinishInflate(); 
    ((Activity)getContext()).getLayoutInflater().inflate(R.layout.twotext, this); 
    setItems();//this is my method that i have declared below this code 
} 
+0

哪条线的代码你不明白吗? – RedBlueThing 2011-06-14 07:14:44

+0

为什么不在文档中提到..一切都在那里..并更好地接受答案之前,你问一些其他问题.. – ngesh 2011-06-14 07:15:09

回答

0

当你的布局通胀complete..to只需在其上设置的项目将被称为..

完整的详细信息,请阅读文档...