1. Check out our companion app, Forums for Android! Download from Google Play

Java or XML

Discussion in 'Application Development' started by devEndure, Jul 18, 2010.

  1. devEndure

    devEndure Member
    Thread Starter
    35

    Feb 4, 2010
    10
    0
    35
    SoCal
    I'm trying to figure out what is more efficient performance wise, would it be better to create controls in java runtime or should I just stick to using XML?
     

    Advertisement

  2. Boogs

    Boogs Well-Known Member
    18

    Apr 6, 2010
    85
    16
    18
    While I can't comment with certainty on whether XML creates a performance hit or not, I can say that I've never thought the program was too slow on loading because of using XML. Also, I'm in agreement with the developers on this, declaring your widgets and layouts in the XML file certainly does clean up your Java classes quite a bit making them more readable and logical.
     
  3. devEndure

    devEndure Member
    Thread Starter
    35

    Feb 4, 2010
    10
    0
    35
    SoCal
    Yeah that does make sense. I actually prefer XML but thought maybe if I tried java it would be slightly better.. Thanks for the feedback!
     

Share This Page

Loading...