Skip to content

Commit a012a7e

Browse files
authored
Update README.md
1 parent 01c11df commit a012a7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,8 @@ If we're using Android Studio to build your app, the manifest file is created fo
792792
#### Fragments
793793

794794
* What is `Fragment`?
795-
795+
- A Fragment represents a reusable portion of your app's UI. A fragment defines and manages its own layout, has its own lifecycle, and can handle its own input events. Fragments cannot live on their own--they must be hosted by an activity or another fragment. The fragment’s view hierarchy becomes part of, or attaches to, the host’s view hierarchy.
796+
796797
* What is the difference between a `Fragment` and an `Activity`? Explain the relationship between the two.
797798

798799
* Why is it recommended to use only the default constructor to create a `Fragment`? [StackOverflow](https://stackoverflow.com/a/16042750/2809326)

0 commit comments

Comments
 (0)