Modify a XML template for an Android app



I just got an android app producing PDFs of Model releases. Thing is the release isn't great so i modified the template to add values and modify the text. Everything went great till i thought "why would i manually insert the date if it can be done automatically ?" I looked up some codes here but, as i just understand the basics of programing, it didn't work. Anyone can give me a bit of code to insert the current date automatically at the end of my paragraph? Here is the template if it can help :



<?xml version="1.0" encoding="utf-8"?>
<Agreement>
<Title>Adult Model Release Contract</Title>
<Description>Model release form for an adult</Description>
<Version>1</Version>
<Variables>
<Variable title="fullname" type="text">Model's Full Legal Name</Variable>
<Variable title="email" type="text">E-mail </Variable>
<Variable title="adress" type="text">Adress</Variable>
<Variable title="phone" type="number">Phone</Variable>
<Variable title="social" type="text">Social Network</Variable>
<Logo bottom="690" left="40" width="175"/>
</Variables>
<Text>
<Paragraph style="bold" spacing="80">Model Release</Paragraph>
<Paragraph>%fullname% (the “Model”),blah blah blah ... </Paragraph etc ...

No comments:

Post a Comment