TextView textAlignment

  1. 5 years ago

    Joel_Eisenstat

    25 Jul 2018 User since 2016

    Good afternoon,
    This may be a brain freeze but I cannot see how to change the textAlignment property for TextView while populating the TextView object. I am building a db report generator and want the header text to centered while the body is left justified. Also totals need to be aligned .
    While on the subject of reports how does print work ? Does System.put (textReport.text) go to iOS ?
    Regards,
    Joel

  2. marco

    25 Jul 2018 Administrator User since 2016

    Just press the T for Typography settings.
    Print is not yet implemented!

  3. Joel_Eisenstat

    25 Jul 2018 User since 2016

    I want to change the alignment programatically so there are multiple settings ( if possible ) within the TextView Object.

  4. Joel_Eisenstat

    25 Jul 2018 User since 2016

    I tried Markup but is was very messy ;(

  5. Joel_Eisenstat

    25 Jul 2018 User since 2016

    Got it - thawed the brain freeze - now looks simple
    var color = Color.blue;
    TextView1.textColor = color;
    var align = TextAlignment.Center;
    TextView1.textAlignment = align;
    rowtext += "Header";
    TextView1.appendText(rowtext);

  6. marco

    25 Jul 2018 Administrator User since 2016

    Yep right:

    TextView1.textAlignment = TextAlignment.Center;
  7. Joel_Eisenstat

    26 Jul 2018 User since 2016

    Also only one alignment seems to be allowed within the TextView object. Makes sense. So a report would consist of multiple objects - header, body, subtotal, total sections, etc. Looks like a class object project.
    Any eta on print ? or can a text file be generated and saved to IOS ?

or Sign Up to reply!