Original:. Net moving Android 4.4 Daily Notes (3)--Directory structure analysis
After the creation of the project, many of the folders that appear are actually a bit dizzy, but after a simple understanding or with our directory of ASP.
The following diagram outlines the main file uses. In fact, you just need to know the few, and know where to design the interface, where the code is almost there.
We are learning that the net is not intentionally to understand the DLL under the bin
Global profile, view, control layer are still relatively easy to understand, there are styles, pictures, resource files and so on, but Android put these resource files into R.java, so we have to call these files through R.java. cannot be generated like. NET Pull
Where Mainactivity.java is the entry for the program, which equals our MVC routing settings
protected void onCreate (Bundle savedinstancestate) { super.oncreate (savedinstancestate); Setcontentview (R.layout.activity_main); if NULL ) { Getsupportfragmentmanager (). BeginTransaction ( )new placeholderfragment ()). Commit (); } }
Setcontentview set up the page to start. That is the first screen of our software launch R.layout also see that our components are registered in the R.java
. Net Moving Android 4.4 Daily Notes (3)--Directory structure analysis