{\r
\r
static final int INTERNAL_EMPTY_ID = 0x00ff0001;\r
- static final int INTERNAL_LIST_CONTAINER_ID = 0x00ff0003;\r
\r
final private Handler mHandler = new Handler();\r
\r
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r
FrameLayout root = new FrameLayout(getActivity());\r
\r
- FrameLayout lframe = new FrameLayout(getActivity());\r
- lframe.setId(INTERNAL_LIST_CONTAINER_ID);\r
-\r
TextView tv = new TextView(getActivity());\r
tv.setId(INTERNAL_EMPTY_ID);\r
tv.setGravity(Gravity.CENTER);\r
- lframe.addView(tv,\r
+ root.addView(tv,\r
new FrameLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));\r
\r
ExpandableListView lv = new ExpandableListView(getActivity());\r
lv.setOnGroupExpandListener(this);\r
lv.setOnGroupCollapseListener(this);\r
\r
- lframe.addView(lv,\r
- new FrameLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));\r
-\r
- root.addView(lframe, new FrameLayout.LayoutParams(\r
+ root.addView(lv, new FrameLayout.LayoutParams(\r
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));\r
\r
ListView.LayoutParams lp =\r
if (mStandardEmptyView == null) {\r
mEmptyView = root.findViewById(android.R.id.empty);\r
}\r
- mListContainer = root.findViewById(INTERNAL_LIST_CONTAINER_ID);\r
+ mListContainer = root.findViewById(android.R.id.list);\r
View rawListView = root.findViewById(android.R.id.list);\r
if (!(rawListView instanceof ExpandableListView)) {\r
if (rawListView == null) {\r