Open HusseinAliF opened 5 years ago
this is my code private fun showRateAppDialog() {
AppRatingDialog.Builder() .setPositiveButtonText(getString(R.string.submit)) .setNegativeButtonText(getString(R.string.cancel)) .setNeutralButtonText(getString(R.string.later)) .setNoteDescriptions(listOf(getString(R.string.very_bad_rate_dialog) , getString(R.string.not_good_rate_dialog) , getString(R.string.quite_ok_rate_dialog) , getString(R.string.very_good_rate_dialog) , getString(R.string.excellent_rate_dialog))) .setDefaultRating(2) .setTitle("Rate this application") .setDescription("Please select some stars and give your feedback!") .setCommentInputEnabled(true) .setDefaultComment("This app is pretty cool !") .setStarColor(context?.resources?.getColor(R.color.red)!!) .setNoteDescriptionTextColor(context?.resources?.getColor(R.color.red)!!) .setTitleTextColor(context?.resources?.getColor(R.color.black)!!) .setDescriptionTextColor(context?.resources?.getColor(R.color.black)!!) .setHint("Please write your comment here ...") .setHintTextColor(context?.resources?.getColor(R.color.grey)!!) .setCommentTextColor(context?.resources?.getColor(R.color.black)!!) .setCommentBackgroundColor(context?.resources?.getColor(R.color.white)!!) .setCancelable(false) .setWindowAnimation(android.R.anim.slide_out_right) .setCanceledOnTouchOutside(false) .create(activity!!) .setTargetFragment(this, 0) .show() }
and xml
@color/red
b7112a
d81b60
F05053
707070
000
FFFF
If you're using app bundles, this is the cause.
this is my code private fun showRateAppDialog() {
and xml