Back to project page easy-rating-dialog.
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.
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; } }