androidコードでレイアウトファイルを取得します。

191 ワード

LinearLayout ll=(LinearLayout)getLayoutInflater().inflate(R.layout.test,null);
//test   xml       
は以下の文章を参照することができます。http://blog.csdn.net/zlfxy/article/details/8493578