private void doNews(){
//初始化ExpansionView对象
m_news_expansionview = getExpansionView(Constants.HomeLayout_News.FUNCTIONID);
//填充下拉布局
m_news_expansionview.setChildView(View.inflate(HomeActivity.this, R.layout.app_news, null));
//初始化为展开状态
m_news_expansionview.setTitleSuffix(true);
HomeLayout news_homelayout = new HomeLayout(Constants.HomeLayout_News.FUNCTIONID,
Constants.HomeLayout_News.TITLE, Constants.HomeLayout_News.TYPE,
Constants.HomeLayout_News.ISFOLD, Constants.HomeLayout_News.URL);
m_news_expansionview.baseHome(news_homelayout, new HomeActivity.OnExpandableListener(){
public void onHide(View paramHomeItemView, View paramChildView,
String paramFunctionId) {
// TODO Auto-generated method stub
}
public void onLoadData(View paramHomeItemView, View paramChildView,
String paramFunctionId) {
showNewsList(paramChildView, paramFunctionId, false);
}
public void onShow(View paramHomeItemView, View paramChildView,
String paramFunctionId) {
showNewsList(paramChildView, paramFunctionId, true);
}
}
);
HomeActivity.this.addView(this.m_news_expansionview.getRootView());
}