Fragment learning, fragment

Source: Internet
Author: User

Fragment learning, fragment

A few days ago, I saw the Fragment part in <proficient Android 4>... it is recorded today... because I decided to record the content I learned every day... in this way, you can review what you have done by date... also find out the reason for laziness (low efficiency, high pressure...

The content of this book is hard to read... in fact, there is not much content, but it is very difficult to accept... after reading it, I still did not remember anything...

The impression of this book is that a book with codes is full of Chinese characters...


Fragment class and FragmentLayout container are mainly used. FragmentLayout can switch views...

In addition, you need to use FragmentTransaction and FragmentManager (the class name may be missing...) to switch the view and search...


I remember that Fragment can be used in ViewPager, or does ViewPager use Fragment for switching? In short, It is very convenient to use FragmentLayout for view switching... you only need to call the replace function wherever you think you need it...


Probably I can remember so much...


For android development, do I still need to learn fragment if I only design applications for mobile phones?

Since 4.0, pad and mobile apps are common, and fragment is a good framework. It is recommended to learn.

What is the tutorial video for android fragment?

There are too many examples on the Internet, and video watching is a waste of time.
 

Related Article

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.