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 :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top