Ejemplo n.º 1
0
  @Override
  public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
    super.onItemClick(arg0, arg1, arg2, arg3);
    ServiceList2DetailFragment productListFragment = null;
    String type = listObject.get(arg2).getType();
    if (type.equalsIgnoreCase("external")) {
      openBrowser(listObject.get(arg2).getExternalUrl());
    } else {
      productListFragment =
          new ServiceList2DetailFragment(
              listObject.get(arg2).getSlug(),
              listObject.get(arg2).getType(),
              listObject.get(arg2).getTitle(),
              listObject.get(arg2).getContent(),
              title,
              listObject.get(arg2).getExternalUrl());

      //			Bundle extras = new Bundle();
      //			extras.putParcelable("", listObject.get(arg2));
      //			startActivity(SCREEN.SERVICE_LIST_DETAIL, extras);

      if (productListFragment != null) {
        if (getActivity() instanceof SkyMainActivity) {
          SkyMainActivity skyMain = (SkyMainActivity) getActivity();
          skyMain.switchContent(productListFragment, "");
        }
      }
    }
  }
Ejemplo n.º 2
0
  @Override
  public void onClick(View v) {
    int idView = v.getId();
    switch (idView) {
      case R.id.header_btn_left:
        HomeFragment fg = new HomeFragment();
        if (getActivity() instanceof SkyMainActivity) {
          SkyMainActivity mainActivity = (SkyMainActivity) getActivity();
          mainActivity.switchContent(fg, "");
          Log.i("ServiceList2", "back");
        }
        break;

      default:
        break;
    }
    super.onClick(v);
  }
Ejemplo n.º 3
0
 @Override
 public void reload() {
   super.reload();
 }