> For the complete documentation index, see [llms.txt](https://kaleb-is-caleb.gitbook.io/infosys/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kaleb-is-caleb.gitbook.io/infosys/fragments/app-demo.md).

# App Demo

**Static part of UI (in Activity layout):**

**on screen during entire Activity lifecycle**&#x20;

The [FragmentExample1](https://github.com/google-developer-training/android-advanced/tree/master/FragmentExample1) app displays an image and the title and text of a magazine article. It also shows a `Fragment` that enables users to provide feedback for the article. In this case the feedback is very simple: just "Yes" or "No" to the question "Like the article?" Depending on whether the user gives positive or negative feedback, the app displays an appropriate response.

The `Fragment` is skeletal, but it demonstrates how to create a `Fragment` to use in multiple places in your app's UI.

1. Statically adding `Fragment`

<div align="left"><img src="https://3048567368-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtJ1GGrARY0aC3x6rVn%2F-LtJZ3Vxc5sl0a-_D_Vr%2F-LtJZTsvPqOEYsc7Vmiz%2Fimage.png?alt=media&amp;token=3bc62e1d-475e-42e5-a6e1-690ef45a1fc2" alt=""></div>

This Demo will you how to create a FragmentDemo which&#x20;

<div align="left"><img src="https://3048567368-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtJ1GGrARY0aC3x6rVn%2F-LtKS7VN_oPyjn4zLNrP%2F-LtKSPA4Zi9xOqc0bFD8%2Fimage.png?alt=media&amp;token=70214a45-b643-4b9d-a47b-8c2953962155" alt=""></div>
