我已经将视图实现为带有片段的拆分视图,当单击任何列表视图项目时,拆分视图的另一部分应显示特定视图,请检查我的代码以创建视图并建议我在单击列表视图时做错了什么项目多次,webview 水平附加
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle saved) {
int n;
Context c = getActivity().getApplicationContext();
LinearLayout l = new LinearLayout(c);
LayoutInflater inflater1= (LayoutInflater)c.getSystemService (Context.LAYOUT_INFLATER_SERVICE);
View view=inflater1.inflate(R.layout.webview,container,false);
l.addView(view);
return l;
}