Используйте эту библиотеку
compile 'com.github.cooltechworks:ScratchView:v1.1'
Используйте представление с царапинами в xml
<com.cooltechworks.views.ScratchImageView
android:id="@+id/sample_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:src="@drawable/img_sample2"
/>
Добавьте listener
для представления с нулями, как показано ниже, и проверьте процент
scratchImageView.setRevealListener(new ScratchImageView.IRevealListener() {
@Override
public void onRevealed(ScratchImageView tv) {
// on reveal
}
@Override
public void onRevealPercentChangedListener(ScratchImageView siv, float percent) {
// if the percent is 1, then whole portion is scratched
}
});
Для получения дополнительной информации https://github.com/sharish/ScratchView