Improved the text layout logic, plus a bug fix related to the variable name.

[Issue]
  Text is not displayed.
[Cause]
  The syntax like '_parent.var1' is used to access an EditText variable.
[Fix]
  Added code to support '_parent.XXX'.