Android Open Source - easy-rating-dialog Main Activity






From Project

Back to project page easy-rating-dialog.

License

The source code is released under:

Apache License

If you think the Android project easy-rating-dialog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.github.fernandodev.easyratingdialog.sample;
//  ww w  .  j  a  v a 2 s  . c o m
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import com.github.fernandodev.easyratingdialog.library.EasyRatingDialog;

public class MainActivity extends Activity {

  EasyRatingDialog easyRatingDialog;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    easyRatingDialog = new EasyRatingDialog(this);
  }

  @Override
  protected void onStart() {
    super.onStart();
    easyRatingDialog.onStart();
  }

  @Override
  protected void onResume() {
    super.onResume();
    easyRatingDialog.showIfNeeded();
  }

  public void onClickRateNow(View view) {
    easyRatingDialog.rateNow();
  }

  public void onClickNeverReminder(View view) {
    easyRatingDialog.neverReminder();
  }

  public EasyRatingDialog getEasyRatingDialog() {
    return easyRatingDialog;
  }
}




Java Source Code List

com.github.fernandodev.easyratingdialog.library.EasyRatingDialog.java
com.github.fernandodev.easyratingdialog.sample.MainActivity.java
com.github.fernandodev.easyratingdialog.samplewithdagger.MainActivity.java
com.github.fernandodev.easyratingdialog.samplewithdagger.Sample.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ActivityModule.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ApplicationModule.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ForActivity.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.ForApplication.java
com.github.fernandodev.easyratingdialog.samplewithdagger.dagger.SampleModule.java