Today slightly improve the next interface, or there are a lot of shortcomings, will be in the following to upload the project to record their own process.
1, the color and position slightly adjusted, has not taken into account the configuration of the various resolutions, temporarily do not change the first.
2, the main layout of the use of fragment, of course, is also an example of online search, all changed to my own name.
3, the "Security protection" interface uses a style, the interface is really much simpler. Slowly develop the habit of preparing for the later "refactoring".
4. The "Security Protection" interface uses the GridView. The GridView application also found a solution in the fragment, but it still needs to be perfected. The GridView is of course using the Baseadapter adapter to add pictures.
The following is a Aqfhfragment.java file
Package Com.example.studyfor360;import Android.app.fragment;import Android.os.bundle;import Android.view.layoutinflater;import Android.view.view;import Android.view.viewgroup;import Android.widget.GridView ;p ublic class Aqfhfragment extends Fragment {@Overridepublic View oncreateview (layoutinflater inflater, ViewGroup Container,bundle savedinstancestate) {//TODO auto-generated method Stubview root = Inflater.inflate (R.LAYOUT.AQFH, cont Ainer,false); GridView gv1= (GridView) Root.findviewbyid (R.ID.GRIDVIEW_AQFH); Gv1.setadapter (New Aqfhadapter (Getactivity ())); return root;}}
Project Source name is: 20150413studyfor360
360 Mobile Defender Interface Layout learning process continued (ii)