How to set header and footer in android?

I have an application in which I want to set the header and footer for a specific layout.

Can someone tell me how can I do this?

+4
source share
1 answer

You can use RelativeLayout and attributes as shown below:

For title: android:layout_alignParentTop="true"

For footer: android:layout_alignParentBottom="true"

+3
source

Source: https://habr.com/ru/post/1397549/


All Articles