Lichuang Gong
- Forum-Beiträge: 1
17.04.2012, 16:23:03 via Website
17.04.2012 16:23:03 via Website
Now I am learning <OReilly.-.Learning.Android>, is there anybody learning the same book?
On page 53 ,I can not find the place to do this:
"Eclipse is somewhat smart about renaming files and does more than just
change the name. It also offers to look up all references to this file and update those as
well. Although this feature works well when renaming a Java file, it is not fully auto-
matic with XML files. So, renaming this file requires us to change the line in Java where
we refer to it via the R class. To do that, in your StatusActivity’s onCreate(), change setContentView(R.layout.main); to setContentView(R.layout.status);.
"
Is there anybody help me?
On page 53 ,I can not find the place to do this:
"Eclipse is somewhat smart about renaming files and does more than just
change the name. It also offers to look up all references to this file and update those as
well. Although this feature works well when renaming a Java file, it is not fully auto-
matic with XML files. So, renaming this file requires us to change the line in Java where
we refer to it via the R class. To do that, in your StatusActivity’s onCreate(), change setContentView(R.layout.main); to setContentView(R.layout.status);.
"
Is there anybody help me?
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.