360 Mobile Defender Interface Layout learning process continued (ii)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.