1.add a stye for dialog layout customization.
2.add a method for get length of a string.