ListView listView = findViewById(R.id.listView); View footerView = getLayoutInflater().inflate(R.layout.footer_view, null); listView.addFooterView(footerView);In this example, we first get a reference to the `ListView` that we want to add the footer view to. Then, we inflate a layout file called `footer_view.xml` to create a `View` object. Finally, we call `addFooterView` on the `ListView` and pass in the `View` object as a parameter. The `addFooterView` method is located in the `android.widget.ListView` package.