-1

enter image description here

How to create picture type of home button which shows for all activities of my project. i have 4 or 5 activities is there.

I want to click that button go back to main window. please give me code

first how to create a home button

Kara
  • 6,115
  • 16
  • 50
  • 57
Satya
  • 340
  • 7
  • 17
  • "please give me code?" how many times do we have to mention that SO is not a site where you get people to code for yor free ? – Ovidiu Latcu May 18 '12 at 13:10
  • [Multiple activity same button](http://stackoverflow.com/questions/5848964/same-button-on-multiple-activities) This above link has discussion about what you want this may help you!!! Welcome – Thiru VT May 18 '12 at 12:51
  • please give me a code ,first how to create a that type of home button – Satya May 19 '12 at 09:04

1 Answers1

1

An Action Bar and a dashboard might be better suited to what your trying to do, or just use an options menu. Have a look at 'Google I/O 2010 - Android UI design patterns' on youtube. That will help you ask clearer questions. Motodev Studio will help getting started with what you learn in the video (but I personally don't like the code generated).

If after watching the video above you still want the home button like your screenshot you could probably use a relative layout with a layout include or fragment aligned to the bottom, with the include or fragment containing a image button.

Actually both methods above require similar code, but action bars are cool.

Seamus Boyle
  • 99
  • 1
  • 3