How to set header and footer in android?

断了今生、忘了曾经 提交于 2019-12-07 11:39:07

问题


I have an Application in which I want to set header and footer for specific layout.

Can anyone tell me how can I do that?


回答1:


You can use RelativeLayout and attributes as below:

For header: android:layout_alignParentTop="true"

For footer: android:layout_alignParentBottom="true"



来源:https://stackoverflow.com/questions/9372700/how-to-set-header-and-footer-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!