如何停止addContentView隐藏我的expendablelistview的顶部?

| 我需要您的帮助,我的expendablelist活动中有一个expendablelist视图 谁隐藏了我的添加与addContentView。我该如何制止呢? 我只希望我的expendablelistview遵循其他视图。
mAdapter = new MyExpandableListAdapter(context, groups, childrens);
this.setListAdapter(mAdapter);
LayoutInflater inflater = getLayoutInflater();

getWindow().addContentView(inflater.inflate(R.layout.actionbar, null),
                new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
                45));

registerForContextMenu(getExpandableListView());
    
已邀请:
在ExpandableListActivity中,您有一个ExpandableListView。期。将适配器设置为该适配器后,您将无法在其之上添加其他视图。(我几乎确定这不是一种好习惯) 我的建议是,您在侧面创建一个ExpadableListView并将其放入一个Layout(连同其他所需内容)中,该Layout会加载到一个干净的普通Activity中。 有帮助吗 JQCorreia     

要回复问题请先登录注册