Android Language Translation Error
-
27-04-2021 - |
题
I am Developing an Android Application, by default it is running in English properly then i Translate it in to Welsh and Urdu by translate String file into corresponding language and placed it into values-cy and values-ur.When i run it show error message like ' 02-09 05:07:35.083: ERROR/AndroidRuntime(584): Caused by: java.lang.RuntimeException: Binary XML file line #11:' You must supply a layout_width attribute..I studied that particular xml but it didn't noticed any problem in that line but it worked in engish properly(I used Styles/String and Theme in my resource).After that i create a new xml file with only one Textview here i gave all styles within that Tag.. .Now i locked with this problem.So please help me to solve this problem.
解决方案
I think you are using custom theme. If so,call styles from theme. May be it will work.
Try it.. Happy coding :)