Example #1
0
  private void initView() {

    contentLayout =
        (LinearLayout) context.getLayoutInflater().inflate(R.layout.layout_recommend, null);
    lv_helper = (ListView) contentLayout.findViewById(R.id.lv_recommend);
    pullScrollView.addBodyView(contentLayout);
    lv_helper.setOnItemClickListener(this);
  }
Example #2
0
 @Override
 protected void initWidget() {
   // TODO Auto-generated method stub
   tv_title.setText(StringUtils.getResourse(R.string.str_talk_helper));
   layout_back.setVisibility(View.VISIBLE);
   initView();
   if (!NetworkUtils.checkNet(context)) {
     img_loading_error.setVisibility(View.VISIBLE);
   } else {
     img_loading_error.setVisibility(View.GONE);
     waitDialog();
     getHttpData();
   }
   pullScrollView.setheaderViewGone();
   pullScrollView.setfooterViewGone();
   pullScrollView.setOnPullListener(this);
   pullScrollView.setVisibility(View.VISIBLE);
 }