stepstone-tech / android-material-app-rating

This library allows to use customized Rating Dialog inside applications.
Apache License 2.0
473 stars 86 forks source link

Control dismiss behaviour #57

Open hamzabinamin opened 5 years ago

hamzabinamin commented 5 years ago

Is it somehow possible to control the dismiss behaviour of the dialog? I'm trying to validate review text, so If nothing is written, the dialog shouldn't dismiss but display an alert to the user. Currently it dismisses no matter if there is text or not.

hamzabinamin commented 5 years ago

@castus @mikolajprzybysz @fabiozo @raptorski

Guys could you help please?

pglebocki commented 5 years ago

Hi @hamzabinamin Sorry for late response. In current implementation You don't have any control over this behaviour. You will just receive onNegativeButtonClicked callback. However this is something which we can implement for next version of this library. I would like to ask how do You want to validate review text ? Do you want to indicate somehow that text is too short or sth ?

Best regards, Piotr

wifirevaithi commented 5 years ago

i need to valid if there is a text or not; And One Thing I want to change ,Display keyboard with done button

pglebocki commented 5 years ago

@wifirevaithi @hamzabinamin We will change callback mechanism a little bit. You will have possibility to check text inside comment box and then dismiss dialog manually.