Take a look at IBAForms – an open source project from from Itty Bitty Apps. I haven’t used it yet myself, however I believe it does most of what you want, except for validation. Here is the github page: IBA Forms
It hasn’t been maintained in a while, but if you’re looking for a forms library – it’s mature and works. At the very least, it could be the starting point for something you take further.
-
Update: There is also Chris Miles’ EZForm library, which is very nice.
-
Update #2: Have also started checking out QuickDialog, which seems to be very popular.
-
Update #3: Nick Lockwood has created one called FXForms
-
Update #4: Martin Barreto has created one called XLForm