Tuesday, April 29, 2014

In main.xml added ID, how does not automatically generate R.java well?



 

xmlns: tools = "http://schemas.android.com/tools"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
>

android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: text = "@ string / promptTitle"
android: textSize = "40sp"
android: textColor = "# FF00FF"
android: textStyle = "bold"
android: layout_centerHorizontal = "true"
android: paddingLeft = "20dp"
android: paddingRight = "20dp"
android: layout_marginTop = "20dp"
android: layout_marginBottom = "20dp"
/>
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: text = "@ string / promptComPlay"
android: layout_below = "@ id / txtTitle"
android: layout_alignLeft = "@ id / txtTitle"
android: textSize = "20sp"
android: layout_marginBottom = "20sp"
/>
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: text = "@ string / promptMyPlay"
android: layout_below = "@ id / txtTitle"
android: layout_alignRight = "@ id / txtTitle"
android: textSize = "20sp"
android: layout_marginBottom = "20dp"
/>
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
project-> clean
Reply:
A clean aapt.exe encounter problems appeared to be close
And R.java also gone, Baidu did not answer for a long time

Reply:
We are uncertain about this issue, I re-built a project, put the item in the original XML copy over one by one, while the corresponding value will be good in the string, even better.

No comments:

Post a Comment