some questions about <OReilly.-.Learning.Android>

  • Antworten:1
Lichuang Gong
  • Forum-Beiträge: 1

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?

Antworten
Mac Systems
  • Forum-Beiträge: 1.727

17.04.2012, 17:45:05 via Website

This is not Android Specific at all.
When you rename some Class of your programm, eclipse is smart enough do exchange references to them automaticly. This is often called 'refactoring'...

Windmate HD, See you @ IO 14 , Worked on Wundercar, Glass V3, LG G Watch, Moto 360, Android TV

Antworten