Breaking News Layout
Learn to connect the reusable layout with the breaking news fragment xml file.
We'll cover the following
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 1400+ tech skills courses.