Metronomerous for Android allows that. You can configure rhythm patterns and even compose a whole piece with them, including different dynamics with each one.
It is fine for simple rhythms, for complicated and long stuff, another easier way is to use an app to write scores that allow playing them as midi. Then you compose whatever you like and choose a drum midi sound to play it.
At the end, I think it is better if you develop a way to build up the rhythm at your own, with your mind, developing concentration, focus and timing awareness.