Breaking News Layout

Learn to connect the reusable layout with the breaking news fragment xml file.

The BreakingNewsFragment class

Create a new empty fragment and name it BreakingNewsFragment, and the layout will be created automatically.We’ll need to make some changes to the class file to reduce some boilerplate code. Below is the initial class that will be created before we start making changes.

Get hands-on with 1200+ tech skills courses.