I am a programmer, I primarily program in Java, but I am now working with Drupal. Drupal uses HTML and CSS for most of its design, from blocks to views, but I have discovered it's much harder to create things that are dynamically designed.
What I am used to is designing things in Android programming where XML is used to design the layout and Java to control it.
Is there any way to do this in Drupal that allows me to create things like blocks using Java or even JavaScript? Is there a way to develop my own modules using Java, or can I only do it in PHP?