Hello everyone I wanna add the header and footer logo of my company profile in each activity it is redirected.. So please help me in designing this...
Asked
Active
Viewed 595 times
-1
-
which layout you are using? past your code. – kosa Jan 09 '12 at 05:39
-
well currently in all activities I have used the listview. But latter it may change... – NullPointerException Jan 09 '12 at 06:08
-
Have you seen this question? http://stackoverflow.com/questions/8471664/using-common-layout-and-its-event-in-all-activities/8471708#8471708 – MKJParekh Jan 09 '12 at 06:39
3 Answers
0
You can use fragments for this purpose, or can search merge/include layout concepts to achieve this.

jeet
- 29,001
- 6
- 52
- 53
0
Just use an ImageView for both the header & footer,dont forget to use alignparenttop & alignparentbottom respectively.

Karthik
- 4,943
- 19
- 53
- 86
-
Thank karthik...But in each layout i have to implement this isn't there another way?? – NullPointerException Jan 09 '12 at 06:14
-
have a image in the top... and have another image is in the bottom – NullPointerException Jan 09 '12 at 06:30
0
rashmi yo have to create a XML file which contains you header logo and after that you have to include that XML file as header in your other XMLs mention below
<include layout="@layout/your XML File">
try this i think it might help you

Harsh Trivedi
- 1,012
- 8
- 25
-
1@Harsh Trivedi if you add the XML file with your answer. then the ratio to accept your answer will increase. – V.J. Dec 25 '12 at 12:01