/**
   * @see com.jdroid.android.fragment.AbstractFragment#onViewCreated(android.view.View,
   *     android.os.Bundle)
   */
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    findView(R.id.sendExampleEvent)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                AndroidApplication.get().getAnalyticsSender().trackExampleEvent();
              }
            });

    findView(R.id.sendExampleTransaction)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                AndroidApplication.get().getAnalyticsSender().trackExampleTransaction();
              }
            });

    findView(R.id.sendExampleTiming)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                AndroidApplication.get().getAnalyticsSender().trackExampleTiming();
              }
            });
  }
Exemple #2
0
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    findView(R.id.fragmentBanner)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ActivityLauncher.launchActivity(FragmentBannerActivity.class);
              }
            });

    findView(R.id.nativeAdExpress)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ActivityLauncher.launchActivity(FragmentNativeAdExpressActivity.class);
              }
            });

    findView(R.id.largeNativeAdExpress)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ActivityLauncher.launchActivity(LargeNativeAdExpressActivity.class);
              }
            });

    findView(R.id.adReycler)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ActivityLauncher.launchActivity(AdRecyclerActivity.class);
              }
            });

    findView(R.id.activityBanner)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ActivityLauncher.launchActivity(ActivityBannerActivity.class);
              }
            });

    findView(R.id.displayInterstitial)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ((AdMobActivityDelegate) getActivityIf().getActivityDelegate(AdMobAppModule.get()))
                    .getInterstitialAdHelper()
                    .displayInterstitial(false);
              }
            });

    findView(R.id.houseAds)
        .setOnClickListener(
            new OnClickListener() {

              @Override
              public void onClick(View v) {
                ActivityLauncher.launchActivity(HouseAdsActivity.class);
              }
            });
  }